/* Beyond Blue Sky */
:root {
  --bg: #05070d;
  --surface: #0c1322;
  --line: #1c2740;
  --text: #e8edf5;
  --muted: #a3afc4;
  --accent: #2ea8ff;
  --accent-dark: #0b6fbf;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #7cc8ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--accent); }
h3 { font-size: 1.35rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #000; padding: .6rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(5, 7, 13, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display); font-size: 1.45rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; text-decoration: none; color: var(--accent);
  white-space: nowrap;
}
.wordmark:hover { color: #7cc8ff; }
#site-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); margin: 0; padding: 0; }
#site-nav a {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent;
}
#site-nav a:hover, #site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 20px; height: 2px; background: var(--text); position: relative; content: "";
  }
  .bars::before { position: absolute; top: -6px; }
  .bars::after { position: absolute; top: 6px; }
  #site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; padding: .5rem clamp(1.25rem, 4vw, 3rem) 1rem; }
  #site-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  #site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .wordmark { font-size: 1.2rem; letter-spacing: .2em; }
}

/* Home hero */
.hero { position: relative; background: #000; }
.hero picture img { width: 100%; max-height: calc(100vh - 60px); object-fit: cover; object-position: center; }
.hero-watch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem;
  padding: 1.5rem 1rem 2.5rem; background: linear-gradient(#000, var(--bg));
}
.eyebrow {
  margin: 0; font-family: var(--display); font-size: 1.2rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.stream { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; justify-content: center; }
.stream a { display: block; border-radius: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.stream a:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent); }
.stream-btn { width: 150px; border-radius: 10px; }

/* Sections with a background photo */
.synopsis, .buy-hero { position: relative; overflow: hidden; isolation: isolate; }
.section-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.synopsis::after, .buy-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,7,13,.94) 0%, rgba(5,7,13,.86) 55%, rgba(5,7,13,.55) 100%);
}
.synopsis { padding: clamp(4rem, 9vw, 7rem) 0; }
.synopsis p { margin: 0 0 1.25rem; }
.motto { font-family: var(--display); font-size: 1.4rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.synopsis .narrow { margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2)); }

/* Gallery carousel */
.gallery { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--bg); }
.carousel { position: relative; }
.slides {
  list-style: none; margin: 0; padding: 0; position: relative;
  aspect-ratio: 3 / 2; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.slide-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.carousel-controls button {
  min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 6px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font: 500 1rem var(--display); letter-spacing: .12em; text-transform: uppercase;
}
.carousel-controls .prev, .carousel-controls .next { font-size: 1.8rem; line-height: 1; }
.carousel-controls button:hover { border-color: var(--accent); color: var(--accent); }
.counter { font-family: var(--display); letter-spacing: .12em; color: var(--muted); min-width: 4.5rem; text-align: center; }

.lightbox { max-width: 96vw; max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox-caption { text-align: center; color: var(--muted); margin: .75rem auto 0; max-width: 70ch; }
.lightbox form { text-align: right; }
.lightbox-close {
  background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: .25rem .6rem;
}

/* Page banners */
.banner { background: #000; border-bottom: 1px solid var(--line); }
.banner img { width: 100%; max-height: 420px; object-fit: cover; }

/* People (About page) */
.people { padding: clamp(3rem, 6vw, 5rem) 0 1rem; }
.people h2 { text-align: center; margin-bottom: 2rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem 1.75rem; }
.person { outline: none; }
.person-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #000; border: 1px solid var(--line);
}
.person-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .6s ease; }
.person-name { margin: 1rem 0 .15rem; color: var(--text); }
.person-role { margin: 0; color: var(--accent); font-family: var(--display); font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; }
.person-bio {
  list-style: none; margin: 0; padding: 1.25rem 1.4rem;
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(5,7,13,.95) 0%, rgba(5,7,13,.75) 55%, rgba(5,7,13,.1) 100%);
  opacity: 0; transition: opacity .35s ease;
  font-size: .98rem; line-height: 1.5;
}
.person-bio li { padding-left: 1rem; position: relative; margin-top: .25rem; }
.person-bio li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.alt-photo { opacity: 0; }

@media (hover: hover) {
  .person:hover .person-bio, .person:focus-visible .person-bio, .person:focus-within .person-bio { opacity: 1; }
  .person:hover .alt-photo, .person:focus-visible .alt-photo { opacity: 1; }
  .person:focus-visible .person-media { outline: 2px solid var(--accent); outline-offset: 3px; }
}
/* Touch screens: show the bullet points under the photo instead of on hover */
@media (hover: none) {
  .person-media { overflow: visible; aspect-ratio: auto; border: 0; background: none; }
  .person-media > img:first-child { position: static; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); }
  .alt-photo { display: none; }
  .person-bio { position: static; opacity: 1; background: none; padding: .75rem 0 0; }
}

/* Trailer */
.video-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Buy / Rent */
.buy-hero { padding: clamp(5rem, 11vw, 8rem) 0; text-align: center; }
.buy-hero::after { background: rgba(5, 7, 13, .78); }
.buy-hero .lead { font-size: 1.2rem; margin: 0 auto 2rem; max-width: 46ch; }
.buy-hero .stream-btn { width: 200px; }
.support { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

/* Contact */
.contact { padding: clamp(3rem, 6vw, 5rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: .35rem; }
.contact-form label { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .65rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(46,168,255,.35); }
.contact-form button, .button {
  justify-self: start; margin-top: 1.25rem; padding: .85rem 1.8rem; cursor: pointer; text-decoration: none; display: inline-block;
  font: 500 1.15rem var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--accent-dark); border: 0; border-radius: 6px;
}
.contact-form button:hover, .button:hover { background: var(--accent); color: #000; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5em; margin: .5rem 0 0; }
.form-status.ok { color: #6fdc8c; }
.form-status.error { color: #ff8a80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) brightness(.9); }

/* 404 */
.not-found { padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; }

/* Footer */
.site-footer {
  margin-top: 3rem; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
  background: var(--surface); border-top: 1px solid var(--line); text-align: center;
}
.site-footer section { max-width: 820px; margin: 0 auto 2.75rem; }
.site-footer h2 { font-size: 1.5rem; }
.site-footer p { color: var(--muted); margin: 0 0 1rem; }
.logos {
  list-style: none; margin: 1.5rem auto 0; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: .75rem 1.75rem; background: #eef2f7; border-radius: 8px;
}
.logos img { width: 120px; }
.social { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; justify-content: center; gap: .9rem; }
.social a {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: color .15s, border-color .15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 20px; height: 20px; }
.copyright { font-size: .9rem; margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
