/* =========================================================
   Galaxy Builders – home hero + Aurora Lumiere intro
   Works alongside the site's existing header (.header),
   Bootstrap 5 and style.css. All classes are prefixed gx-.
   ========================================================= */

@font-face {
  font-family: "Neue Montreal";
  src: local("NeueMontreal-Light"),
       url("../fonts/NeueMontreal-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: local("NeueMontreal-Regular"),
       url("../fonts/NeueMontreal-Regular.otf") format("opentype"),
       url("../fonts/NeueMontreal-Light.otf") format("opentype"); /* stand-in until Regular is added */
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: local("NeueMontreal-Medium"),
       url("../fonts/NeueMontreal-Medium.otf") format("opentype"),
       url("../fonts/NeueMontreal-Light.otf") format("opentype"); /* stand-in until Medium is added */
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --gx-cream: #FFFAEF;          /* site's existing Aurora background */
  --gx-ink: #3D2D29;            /* site's existing Aurora text colour */
  --gx-white: #ffffff;
  --gx-font: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gx-gutter: clamp(16px, 4.2vw, 60px);
  --gx-ease: cubic-bezier(.22, .61, .36, 1);
  --gx-vh: 100vh;
}

.gx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------
   HERO  (the site's fixed .header sits on top of this)
   --------------------------------------------------------- */
.gx-hero {
  position: relative;
  height: 100vh;
  height: var(--gx-vh);
  min-height: 560px;
  overflow: hidden;
  background: #e0dbd8;            /* same as the old banner while video loads */
}
@supports (height: 100svh) { .gx-hero { height: 100svh; } }

.gx-hero__video {
  position: absolute; top: 0; left: 0;
  display: block;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
}
.gx-hero__shade {
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,0));
  pointer-events: none;
}
.gx-hero__mark {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.gx-hero__star {
  display: block;
  width: clamp(96px, 11vw, 156px);
  height: auto;
  max-width: none;
}
.gx-hero__line {                  /* "EVOLVING WITH YOU" – phones & tablets only */
  display: none;
  margin: 18px 0 0; padding: 0;
  font-family: var(--gx-font);
  color: var(--gx-white);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.18);
}

/* ---------------------------------------------------------
   AURORA LUMIERE INTRO
   --------------------------------------------------------- */
.gx-aurora {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background-color: var(--gx-cream);
  background-image: url("/assets/web/images/new-sec/star-pattern.svg");
  background-repeat: no-repeat;
  background-position: top center;
}
.gx-aurora__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.gx-aurora__tagline {
  margin: 0; padding: 0 20px;
  font-family: var(--gx-font);
  color: var(--gx-ink);
  font-size: 26px; font-weight: 500; line-height: 1.3;
  letter-spacing: 0; text-transform: none;
  text-align: center;
}
.gx-aurora__title {
  margin: 120px 0 0; padding: 0;
  line-height: 0;
}
.gx-aurora__title img {
  display: block;
  width: clamp(240px, 39.3vw, 556px);
  max-width: none;
  height: auto;
}

/* image box – ratio via padding so it works without aspect-ratio support */
.gx-aurora__media {
  position: relative;
  display: block;
  width: calc(100% - 2 * var(--gx-gutter));
  margin-top: 115px;
  overflow: hidden;
  background: #0b1020;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.gx-aurora__media::before {
  content: ""; display: block;
  padding-top: 56.25%;            /* 16:9 */
}
.gx-aurora__media img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 54% 50%;
  transition: transform 1.4s var(--gx-ease);
}
@media (hover: hover) and (pointer: fine) {
  .gx-aurora__media:hover img { -webkit-transform: scale(1.02); transform: scale(1.02); }
}
.gx-aurora__media:focus-visible { outline: 2px solid var(--gx-ink); outline-offset: 4px; }

/* ---------------------------------------------------------
   Scroll reveal (only when JS is running)
   --------------------------------------------------------- */
.gx-js [data-reveal] {
  opacity: 0;
  -webkit-transform: translateY(28px);
  transform: translateY(28px);
  transition: opacity 1.1s var(--gx-ease), transform 1.1s var(--gx-ease), filter 1.1s var(--gx-ease), -webkit-filter 1.1s var(--gx-ease);
}
.gx-js [data-reveal="blur"] { -webkit-filter: blur(14px); filter: blur(14px); }
.gx-js [data-reveal].is-in { opacity: 1; -webkit-transform: none; transform: none; -webkit-filter: none; filter: none; }

/* ---------------------------------------------------------
   EXPLORE cursor ring – mouse/trackpad only
   --------------------------------------------------------- */
.gx-explore {
  position: fixed; z-index: 2100;          /* above the site's .header (1999) */
  left: 0; top: 0;
  width: 104px; height: 104px;
  margin: -52px 0 0 -52px;
  pointer-events: none;
  will-change: transform;
}
.gx-explore__ring {
  width: 100%; height: 100%;
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  -webkit-transform: scale(.4);
  transform: scale(.4);
  transition: opacity .35s var(--gx-ease), transform .45s var(--gx-ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gx-explore__ring { background: rgba(20,20,30,.35); }
}
.gx-explore__ring span {
  font-family: var(--gx-font);
  color: var(--gx-white);
  font-size: 12px; font-weight: 400; line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-left: .2em;
}
.gx-explore.is-on .gx-explore__ring { opacity: 1; -webkit-transform: none; transform: none; }
@media (hover: none), (pointer: coarse) { .gx-explore { display: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .gx-aurora { padding: 100px 0; }
  .gx-aurora__title { margin-top: 96px; }
  .gx-aurora__media { margin-top: 96px; }
}

/* tablets + phones */
@media (max-width: 991px) {
  .gx-hero__line { display: block; }
  .gx-aurora { padding: 80px 0 64px; background-size: 180% auto; }
  .gx-aurora__tagline { font-size: 19px; }
  .gx-aurora__title { margin-top: 56px; }
  .gx-aurora__title img { width: clamp(240px, 62vw, 420px); }
  .gx-aurora__media { margin-top: 56px; }
  .gx-aurora__media::before { padding-top: 75%; }     /* 4:3 */
}

/* phones: full-bleed, taller image so the tower reads clearly */
@media (max-width: 600px) {
  .gx-hero { min-height: 520px; }
  .gx-hero__star { width: 96px; }
  .gx-hero__line { font-size: 14px; margin-top: 16px; }
  .gx-aurora { padding: 72px 0 48px; background-image: none; }
  .gx-aurora__tagline { font-size: 16px; }
  .gx-aurora__title { margin-top: 48px; }
  .gx-aurora__title img { width: 70vw; max-width: 320px; }
  .gx-aurora__media { width: 100%; margin-top: 52px; }
  .gx-aurora__media::before { padding-top: 125%; }    /* 4:5 */
}

/* phones in landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .gx-hero { min-height: 0; }
  .gx-hero__star { width: 72px; }
  .gx-hero__line { font-size: 12px; margin-top: 10px; }
  .gx-aurora__media::before { padding-top: 56.25%; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-js [data-reveal] { opacity: 1; -webkit-transform: none; transform: none; -webkit-filter: none; filter: none; transition: none; }
  .gx-aurora__media img { transition: none; }
}

/* =========================================================
   AURORA FILM – reveal transition + play once
   (same idea as the old Celeste section: the video sits fixed
   behind the page and is uncovered as the cream section above
   scrolls away)
   ========================================================= */
.gx-film {
  position: relative;
  height: 100vh;
  height: var(--gx-vh);
  background: #000;
}
@supports (height: 100svh) { .gx-film { height: 100svh; } }

.gx-film__clip {                     /* clips the fixed stage to this section */
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  clip: rect(auto, auto, auto, auto);
  overflow: hidden;
}
.gx-film__stage {
  position: fixed; top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: var(--gx-vh);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
@supports (height: 100svh) { .gx-film__stage { height: 100svh; } }

.gx-film__video {
  display: block;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  background: #000;
}

/* EXPLORE button – uses the site's existing .explore-more look */
.gx-film__btn {
  position: absolute; z-index: 2;
  right: 8%; bottom: 34%;
  text-decoration: none;
  opacity: 0; visibility: hidden;
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.gx-film__btn.is-on {
  opacity: 1; visibility: visible;
  -webkit-transform: none;
  transform: none;
  transition: opacity .5s ease, transform .5s ease, visibility 0s;
}

@media (max-width: 991px) {
  .gx-film__btn { right: 6%; bottom: 22%; }
}
@media (max-width: 600px) {
  .gx-film__btn { right: auto; left: 50%; bottom: 14%;
    -webkit-transform: translate(-50%, 40px); transform: translate(-50%, 40px); }
  .gx-film__btn.is-on { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
}

/* no reveal effect when the visitor prefers less motion */
@media (prefers-reduced-motion: reduce) {
  .gx-film__stage { position: absolute; height: 100%; }
  .gx-film__btn { transition: none; }
}

/* intro now ends at the Aurora logo and hands straight over to the film */
.gx-aurora { padding-bottom: 140px; }
@media (max-width: 1180px) { .gx-aurora { padding-bottom: 110px; } }
@media (max-width: 991px)  { .gx-aurora { padding-bottom: 80px; } }
@media (max-width: 600px)  { .gx-aurora { padding-bottom: 64px; } }

/* only paint the fixed film stage while its section is near the viewport
   (stops it flashing over other content during load / refresh) */
.gx-js .gx-film:not(.is-near) .gx-film__stage { visibility: hidden; }

/* reverse scroll: elements re-entering from above drop in instead of rising */
.gx-js [data-reveal][data-from="above"]:not(.is-in) {
  -webkit-transform: translateY(-28px);
  transform: translateY(-28px);
}
