/* Beyond Blue Sky */
:root {
  --bg: #000;
  --surface: #0c1322;
  --line: #1c2740;
  --text: #e8edf5;
  --muted: #a3afc4;
  --accent: #2ea8ff;
  --accent-dark: #0b6fbf;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, 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.125rem/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; }

/* Headings match the original site: bold Helvetica, white, capitals */
h1, h2, h3 {
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: .12em; }
h2 { font-size: clamp(1.35rem, 2vw, 1.625rem); letter-spacing: .14em; }
h3 { font-size: 1.125rem; letter-spacing: .02em; }

.wrap { width: min(1300px, 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: menu centered, social icons on the right (matches the original site) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  min-height: 90px; padding: 0 clamp(1.25rem, 3vw, 3rem);
  background: rgba(0, 0, 0, .92);
}
#site-nav { grid-column: 2; }
#site-nav ul { list-style: none; display: flex; gap: clamp(1.25rem, 2.1vw, 1.9rem); margin: 0; padding: 0; }
#site-nav a {
  font: 700 .75rem/1 "Work Sans", var(--body); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: .4rem 0; transition: color .15s;
}
#site-nav a:hover { color: var(--accent); }
.header-social { grid-column: 3; justify-self: end; list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.header-social a { display: flex; color: #fff; transition: color .15s; }
.header-social a:hover { color: var(--accent); }
.header-social svg { width: 14px; height: 14px; }
.nav-toggle { display: none; }

/* Large desktop screens: menu and icons 50% bigger */
@media (min-width: 1300px) {
  #site-nav ul { gap: clamp(1.9rem, 3.1vw, 2.85rem); }
  #site-nav a { font-size: 1.125rem; }
  .header-social { gap: 2.25rem; }
  .header-social svg { width: 21px; height: 21px; }
}

/* Once the page scrolls (and on every page except Home) the bar is white */
.site-header { background: #fff; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header #site-nav a, .site-header .header-social a { color: #000; }
.site-header #site-nav a[aria-current="page"] { color: #6e6e6e; }
.site-header #site-nav a:hover, .site-header .header-social a:hover { color: var(--accent-dark); }
.site-header .bars, .site-header .bars::before, .site-header .bars::after { background: #000; }
.site-header .nav-toggle { border-color: rgba(0,0,0,.25); }

/* Pages with a picture at the top: the menu floats over it with no background until you scroll */
.overlay .site-header { position: fixed; left: 0; right: 0; }
.overlay .site-header:not(.scrolled) { background: transparent; }
.overlay .site-header:not(.scrolled) #site-nav a,
.overlay .site-header:not(.scrolled) .header-social a { color: #fff; }
.overlay .site-header:not(.scrolled) #site-nav a[aria-current="page"] { color: rgba(255,255,255,.6); }
.overlay .site-header:not(.scrolled) #site-nav a:hover,
.overlay .site-header:not(.scrolled) .header-social a:hover { color: var(--accent); }
.overlay .site-header:not(.scrolled) .bars,
.overlay .site-header:not(.scrolled) .bars::before,
.overlay .site-header:not(.scrolled) .bars::after { background: #fff; }
.overlay .site-header:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,.3); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; min-height: 0; padding: .9rem 1.25rem; }
  .nav-toggle {
    grid-column: 1; grid-row: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 20px; height: 2px; background: #fff; position: relative; content: "";
  }
  .bars::before { position: absolute; top: -6px; }
  .bars::after { position: absolute; top: 6px; }
  .header-social { grid-column: 2; grid-row: 1; gap: 1.25rem; }
  #site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid #ddd;
  }
  #site-nav.open { display: block; }
  #site-nav.open a { color: #000 !important; }
  #site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  #site-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid #e5e5e5; }
}

/* Home hero */
.hero { position: relative; background: #000; }
.hero picture img { width: 100%; height: 100vh; height: 100svh; object-fit: cover; object-position: center; }
.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 (Buy/Rent) */
.buy-hero { position: relative; overflow: hidden; isolation: isolate; }
.section-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}

/* Home synopsis: plain black, centered heading, wide column (as on the original site) */
.synopsis { background: #000; padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.synopsis .wrap { width: min(1296px, 100% - 2.5rem); }
.synopsis h2 {
  font: 500 clamp(1.6rem, 2.6vw, 1.95rem)/1.2 var(--body); letter-spacing: .1em;
  color: #fff; text-align: center; margin-bottom: 2rem;
}
.synopsis p { margin: 0 0 1.75rem; color: #fff; font-size: 1.125rem; line-height: 1.7; }

/* Home gallery: the current photo in the middle, the previous and next photos
   smaller and partly hidden behind it on either side */
.gallery { background: #000; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.carousel { position: relative; width: min(1100px, 53vw); margin: 0 auto; }
.slides { list-style: none; margin: 0; padding: 0; position: relative; aspect-ratio: 3 / 2; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; }
.slide.is-active, .slide.is-prev, .slide.is-next, .slide.is-far-prev, .slide.is-far-next {
  transition: transform .8s ease, opacity .8s ease, visibility .8s, filter .8s ease;
}
.slide.is-far-prev { transform: translateX(-90%) scale(.6); }
.slide.is-far-next { transform: translateX(90%) scale(.6); }
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; transform: none; }
.slide.is-prev, .slide.is-next { opacity: 1; visibility: visible; z-index: 1; filter: brightness(.85); }
.slide.is-prev { transform: translateX(-48%) scale(.836); }
.slide.is-next { transform: translateX(48%) scale(.836); }
.slide-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.is-prev .slide-open, .is-next .slide-open { cursor: pointer; }
.slide-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel > button {
  position: absolute; z-index: 3; cursor: pointer; border: 0; color: #fff; background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .2s ease, background-color .2s ease;
}
.carousel:hover > button, .carousel > button:focus-visible { opacity: 1; }
.carousel > button:hover { background: rgba(0,0,0,.75); }
.carousel .prev, .carousel .next { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 2.4rem; line-height: 1; }
.carousel .prev { left: 0; }
.carousel .next { right: 0; }
.carousel .pause {
  bottom: .75rem; right: .75rem; padding: .45rem .9rem; border-radius: 4px;
  font: 500 .95rem var(--display); letter-spacing: .12em; text-transform: uppercase;
}
@media (hover: none) {
  .carousel > button { opacity: .5; }
  .carousel .pause { display: none; }
}
@media (max-width: 700px) {
  .carousel { width: 78vw; }
  .slide.is-prev { transform: translateX(-20%) scale(.836); }
  .slide.is-next { transform: translateX(20%) scale(.836); }
}

.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 (the menu floats over them) */
.banner { background: #000; }
.banner img { width: 100%; height: clamp(180px, 26.6vw, 420px); object-fit: cover; }
/* Dark fade at the top of a bright banner so the white menu and icons stay readable.
   Phones get a shorter, slightly softer fade; desktop (wider than 900px) gets the taller one. */
.banner-shade { position: relative; }
.banner-shade::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, 0));
}
@media (min-width: 901px) {
  .banner-shade::after {
    height: 150px;
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, 0));
  }
}

/* People (About page) */
.people { padding: 2.5rem 0 1rem; }
.people + .people { padding-top: 2rem; }
.people h2 { text-align: center; margin-bottom: 2.25rem; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 20px; }
.people-list { display: grid; gap: 4.8rem; }
@media (max-width: 820px) { .people-grid { grid-template-columns: 1fr; row-gap: 4.8rem; } }
.person { text-align: center; }
.person-media { display: grid; }
.person-media.duo { grid-template-columns: 1fr 1fr; gap: 10px; }
.photo { position: relative; overflow: hidden; background: #000; outline: none; -webkit-tap-highlight-color: transparent; }
.photo img { width: 100%; aspect-ratio: 420 / 375; object-fit: cover; }
.duo .photo img { aspect-ratio: 645 / 392; }
.person-name { margin: 1.75rem 0 .5rem; }
.person-role { margin: 0; font-weight: 300; color: #ccc; line-height: 1.2; }
@media (max-width: 900px) { .desktop-only { display: none; } }
/* Hover box: the photo darkens, a thin frame appears just inside the edge,
   and the bio sits in the middle (matches the original site). Phones: tap a photo. */
.person-bio {
  list-style: none; margin: 0; padding: 1.5rem;
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); color: #fff; text-align: center;
  font-size: 1.125rem; line-height: 1.75; letter-spacing: .1em;
  opacity: 0; transition: opacity .35s ease;
}
.person-bio::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .45); pointer-events: none;
}
.photo.show .person-bio, .photo:focus-visible .person-bio { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .photo:hover .person-bio { opacity: 1; } }
@media (max-width: 700px) {
  .person-media.duo { grid-template-columns: 1fr; }
  .person-bio { font-size: 1rem; padding: 1rem; }
}

/* Trailer */
.video-section { padding: 30px 0 45px; }
.video { position: relative; aspect-ratio: 16 / 9; width: min(1300px, 100% - 2.5rem); margin: 0 auto; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Buy / Rent: full-screen film strip with the two buttons in the middle */
.buy-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; }
.buy-hero .stream { gap: 2rem clamp(2rem, 8.3vw, 120px); }
.buy-hero .stream-btn { width: clamp(150px, 17.4vw, 250px); border-radius: 0; }
.buy-hero .stream a { border-radius: 0; }
.motto { font-family: var(--display); font-size: 1.4rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.support { padding: 4.5rem 0 3.5rem; }
.support .wrap { width: min(1164px, 100% - 2.5rem); }
.support h2 { text-align: center; margin-bottom: 4.25rem; }
.support p { margin: 0 0 .6rem; }

/* Contact */
.contact { padding: 4.25rem 0 4.4rem; }
.contact h2 { margin-bottom: 1.6rem; }
.contact-form { display: grid; gap: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; height: 55px; padding: 0 1rem; font: 300 1rem var(--body); color: #fff;
  background: transparent; border: 1px solid #5a5a5a; border-radius: 0;
}
.contact-form textarea { height: 262px; padding: 1rem; resize: vertical; }
.contact-form ::placeholder { color: #ccc; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #fff; outline: none; }
.contact-form button {
  justify-self: start; width: 190px; height: 57px; margin-top: 2px; cursor: pointer;
  font: 700 1rem var(--body); letter-spacing: .35em; text-transform: uppercase;
  color: #fff; background: transparent; border: 2px solid #fff; border-radius: 0;
  transition: background-color .15s, color .15s;
}
.contact-form button:hover { background: #fff; color: #000; }
.button {
  display: inline-block; padding: .85rem 1.8rem; text-decoration: none;
  font: 700 1rem var(--body); letter-spacing: .3em; text-transform: uppercase;
  color: #fff; border: 2px solid #fff;
}
.button:hover { background: #fff; color: #000; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; }
.form-status.ok { color: #6fdc8c; }
.form-status.error { color: #ff8a80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

/* Footer (dark grey panel, left aligned, with a black copyright strip) */
.site-footer { margin-top: 0; background: #1e1e1e; color: #fff; }
.home .site-footer { margin-top: 0; }
.footer-inner {
  width: min(1196px, 100% - 2.5rem); margin: 0 auto; padding: 2.5rem 0 2.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 20px;
}
.footer-support { grid-column: 1 / -1; }
.site-footer h2 {
  font: 700 1.125rem/1.3 var(--body); letter-spacing: .02em; text-transform: uppercase; color: #2ea8ff; margin: 0 0 .9rem;
}
.site-footer p { font-weight: 300; font-size: 1.125rem; line-height: 1.7; color: #ccc; margin: 0 0 1rem; }
.logos {
  list-style: none; margin: 1rem 0 0; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap;
  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; gap: 2rem; }
.social a { display: flex; color: #fff; transition: color .15s; }
.social a:hover { color: var(--accent); }
.social svg { width: 22px; height: 22px; }
.newsletter { display: grid; grid-template-columns: 1fr auto; margin-top: .5rem; }
.newsletter input[type=email] {
  min-width: 0; padding: 1rem 1.5rem; font: italic 300 1.1rem var(--body); color: #fff;
  background: transparent; border: 1px solid #8a8a8a; border-right: 0; border-radius: 0;
}
.newsletter input[type=email]::placeholder { color: #d8d8d8; }
.newsletter input[type=email]:focus { outline: none; border-color: #fff; }
.newsletter button {
  width: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; color: #bbb; border: 1px solid #8a8a8a;
}
.newsletter button:hover, .newsletter button:focus-visible { color: #fff; border-color: #fff; }
.newsletter button svg { width: 16px; height: 16px; }
.newsletter .form-status { grid-column: 1 / -1; font-size: .95rem; margin: .5rem 0 0; }
.footer-bottom { background: #000; text-align: center; padding: 1.75rem 1rem 1.5rem; }
.footer-bottom p { margin: 0 0 .9rem; font-size: 1.125rem; color: #878787; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }

/* Back-to-top arrow (bottom right, appears after scrolling down) */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.25rem; z-index: 40; width: 60px; height: 34px;
  color: #bbb; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, color .15s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; }
.to-top svg { width: 100%; height: 100%; }
@media (max-width: 700px) { .to-top { width: 40px; height: 22px; right: .75rem; bottom: .75rem; } }

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

/* Footer on desktop: three full-width bands, each
   running from margin to margin. Heading and text on the left; the social
   icons or the email box on the right of the same band. */
@media (min-width: 821px) {
  .footer-inner { width: min(1296px, 100% - 2.5rem); grid-template-columns: 1fr; gap: 0; padding-top: 1.5rem; }
  .footer-inner > section {
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
    column-gap: 4rem; align-items: center; padding: 1.75rem 0;
    border-top: 1px solid #333;
  }
  .footer-inner > section:first-child { border-top: 0; }
  .footer-inner > section > h2 { grid-column: 1; grid-row: 1; margin-bottom: .4rem; }
  .footer-inner > section > p { grid-column: 1; grid-row: 2; margin: 0; }
  .footer-inner .social,
  .footer-inner .newsletter { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .footer-inner .newsletter { width: 420px; }
}

/* Phones and small tablets */
@media (max-width: 820px) {
  /* Footer: double the space between Social network and News & film updates */
  .footer-inner > section:nth-child(2) { padding-bottom: 1.6rem; }
}
@media (max-width: 700px) {
  /* Trailer: video runs edge to edge, with black bars above and below */
  .video-section { padding: 2.5rem 0; }
  .video-section .wrap, .video { width: 100%; }
  /* Buy/Rent: Apple TV on top, Prime Video underneath */
  .buy-hero .stream { flex-direction: column; align-items: center; gap: 110px; }
  .buy-hero .stream-btn { width: 200px; }
}
