:root {
  --black: #02030a;
  --navy: #050a24;
  --blue: #1a3fa8;
  --blue-bright: #6fa8ff;
  --gold: #d4a62a;
  --gold-bright: #f6d77a;
  --gold-deep: #a8791a;
  --text: #ece8dc;
  --muted: #b4bddb;
  --line: rgba(212, 166, 42, 0.38);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(26, 63, 168, 0.55), transparent 62%),
    radial-gradient(ellipse 55% 45% at 92% 38%, rgba(18, 50, 140, 0.4), transparent 65%),
    radial-gradient(ellipse 55% 45% at 6% 72%, rgba(30, 24, 110, 0.45), transparent 65%),
    radial-gradient(ellipse 70% 35% at 50% 108%, rgba(168, 121, 26, 0.22), transparent 70%),
    linear-gradient(180deg, var(--black) 0%, var(--navy) 50%, var(--black) 100%);
  background-attachment: fixed;
}

/* Sparkles are drawn on a fixed canvas behind everything (see site.js). */
#sparkles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.nav, main, .footer { position: relative; z-index: 1; }

a { color: var(--gold-bright); }
img { max-width: 100%; display: block; }

.gold-text {
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-bright) 28%, var(--gold) 62%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(2, 3, 10, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(212, 166, 42, 0.45);
}
.nav nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.15s; }
.nav nav a:hover { color: var(--gold-bright); }

/* Hero */
.hero {
  min-height: min(82vh, 44rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.hero--full { min-height: 100vh; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-bright);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-shadow: 0 0 12px rgba(111, 168, 255, 0.55);
}
h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 26px rgba(212, 166, 42, 0.38));
}
.tagline {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--text);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}
.cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-bright);
  background: rgba(2, 3, 10, 0.55);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { background: rgba(212, 166, 42, 0.16); box-shadow: 0 0 22px rgba(212, 166, 42, 0.35); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #130e04;
  font-weight: 700;
  border-color: var(--gold-bright);
}
.btn-primary:hover { background: linear-gradient(180deg, #fff0b8, var(--gold-bright) 60%, var(--gold)); }
.note { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; }

/* Ornamental divider: gold rules with a diamond in the middle */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.divider > * { display: none; }
.divider { position: relative; height: 1px; }
.divider::before { margin-right: 1.5rem; }
.divider::after { margin-left: 1.5rem; }
.divider {
  background:
    linear-gradient(45deg, transparent 38%, var(--gold-bright) 38%, var(--gold-bright) 62%, transparent 62%) center / 11px 11px no-repeat;
  height: 11px;
  filter: drop-shadow(0 0 6px rgba(246, 215, 122, 0.8));
}

/* Sections */
.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.07em;
}
.lede { max-width: 46rem; color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }

.prose { max-width: 50rem; }
.prose .lede { color: var(--text); font-size: 1.15rem; }
.prose p { margin: 0 0 1.2rem; color: #d8d6cc; }

/* The trailer is a portrait (9:16) video, so it sits beside its timeline on wide screens. */
.trailer {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(26, 63, 168, 0.35);
}
.video video { width: 100%; height: 100%; object-fit: contain; }
.trailer-text .lede { margin-bottom: 1.25rem; }
.timeline { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.timeline li {
  padding: 0.55rem 0 0.55rem 4rem;
  position: relative;
  border-bottom: 1px solid rgba(212, 166, 42, 0.18);
  color: #d8d6cc;
}
.timeline li span {
  position: absolute;
  left: 0;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.fine { margin: 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 52rem) {
  .trailer { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .trailer .video { max-width: 24rem; }
  .trailer-text { width: 100%; }
}

.subhead {
  margin: 2rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.subhead:first-of-type { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.1rem;
}
.card {
  padding: 1.35rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, rgba(16, 36, 104, 0.55), rgba(3, 6, 22, 0.8));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(111, 168, 255, 0.07), 0 10px 30px rgba(0, 0, 30, 0.5);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(111, 168, 255, 0.12), 0 12px 36px rgba(26, 63, 168, 0.4), 0 0 22px rgba(212, 166, 42, 0.22);
}
.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-bright);
}
.card h3::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  vertical-align: 0.12em;
  background: var(--gold-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold-bright);
}
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
}
/* The latest-build captures are portrait frames, so they get tall tiles. */
.shots.shots--portrait { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.shots.shots--portrait img { aspect-ratio: 9 / 16; object-position: top; }
.shots figure { margin: 0; }
.shots a { display: block; }
.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.shots a:hover img { border-color: var(--gold-bright); box-shadow: 0 0 26px rgba(111, 168, 255, 0.35); }
.shots figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(3, 6, 22, 0.6); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(212, 166, 42, 0.18); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { color: var(--gold-bright); font-family: var(--serif); letter-spacing: 0.05em; }
tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Footer */
.footer {
  padding: 1rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer .divider { margin-bottom: 2rem; }
.footer p { margin: 0.3rem 0; }
.visitors { color: var(--text); letter-spacing: 0.06em; }
.visitors strong { color: var(--gold-bright); font-family: var(--serif); font-size: 1.15rem; text-shadow: 0 0 12px rgba(212, 166, 42, 0.45); }
.footer-brand {
  font-family: var(--serif);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(212, 166, 42, 0.4);
}

/* Screenshot lightbox */
dialog#lightbox {
  max-width: min(94vw, 80rem);
  padding: 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: rgba(2, 3, 10, 0.97);
  color: var(--text);
  box-shadow: 0 0 60px rgba(26, 63, 168, 0.55);
}
dialog#lightbox::backdrop { background: rgba(0, 0, 12, 0.82); }
dialog#lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox-caption { margin: 0.7rem 0.25rem 0.25rem; color: var(--muted); font-size: 0.92rem; }
.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(2, 3, 10, 0.85);
  color: var(--gold-bright);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(212, 166, 42, 0.2); }

@media (max-width: 36rem) {
  .nav nav { gap: 0.9rem; }
  .brand { font-size: 1rem; }
  .section { padding: 2.75rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .shots img { transition: none; }
  .card:hover { transform: none; }
}
