/* ==========================================================================
   D Planet — page chrome: stage lighting, preloader, page wipe, cursor,
   header, navigation, page hero, dot nav, closing call-to-action, footer
   ========================================================================== */

/* The canvas is painted by <html>; body stays transparent so the fixed
   lighting layer below can sit between the two. */
body { background-color: transparent; }

/* Ambient stage light — two slow washes of colour that never move with the
   page, so every section appears to sit under the same rig. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 8% -5%, rgba(58, 215, 255, .10), transparent 62%),
    radial-gradient(55vmax 45vmax at 105% 105%, rgba(255, 61, 200, .09), transparent 60%),
    radial-gradient(40vmax 30vmax at 70% 40%, rgba(138, 92, 255, .05), transparent 70%);
}

/* Film grain over everything. A tiny SVG noise tile, nudged a few pixels on
   a stepped timer so it shimmers like projected film. */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(5) infinite;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}
.site-content { flex: 1 0 auto; }
.site-content > .container-fluid { position: relative; }

/* Scroll progress: a neon filament along the very top of the viewport */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: calc(var(--z-header) + 1);
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(58, 215, 255, .6);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  pointer-events: none;
}

/* ==========================================================================
   Preloader
   First visit: the logo switches on like a neon sign, then the curtain lifts.
   Return visits (flagged in <head> before first paint) skip the sign and use
   the curtain alone, so it doubles as the second half of the page wipe.
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg-deep);
  transition: transform 1000ms var(--ease-in-out);
  /* Failsafe: never let a stalled script leave the curtain down */
  animation: preloaderFailsafe 1ms linear 7s forwards;
}
.preloader::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(255, 61, 200, .7), 0 0 36px rgba(58, 215, 255, .5);
}
.preloader.is-done { transform: translateY(-102%); }

.preloader__logo {
  width: min(52vw, 13.5rem);
  height: auto;
  mix-blend-mode: screen;
  animation: neonFlicker 1500ms linear both;
}
.preloader__tag {
  margin: 0;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .6em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 700ms var(--ease-out) 900ms forwards;
}
.preloader__eq { opacity: 0; animation: fadeIn 500ms ease 700ms forwards; }

.is-return .preloader__logo,
.is-return .preloader__tag,
.is-return .preloader__eq { display: none; }
.is-return .preloader { transition-duration: 750ms; }

/* ==========================================================================
   Page wipe — the curtain drops before an internal link navigates away
   ========================================================================== */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: var(--z-wipe);
  background: var(--bg-deep);
  transform: translateY(102%);
  transition: transform 650ms var(--ease-in-out);
  pointer-events: none;
}
.page-wipe::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(255, 61, 200, .7), 0 0 36px rgba(58, 215, 255, .5);
}
.is-leaving .page-wipe { transform: translateY(0); pointer-events: auto; }

/* ==========================================================================
   Custom cursor — a neon ring that trails the pointer (fine pointers only;
   the native cursor stays, the ring is an accent rather than a replacement)
   ========================================================================== */
.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
}
/* JS moves these two wrappers; CSS owns the transforms of what is inside */
.cursor__follow,
.cursor__pin {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
}
.cursor__ring {
  position: absolute;
  top: -1.25rem; left: -1.25rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(58, 215, 255, .7);
  box-shadow: 0 0 12px rgba(58, 215, 255, .35), inset 0 0 12px rgba(58, 215, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 350ms var(--ease-out), background-color 300ms, border-color 300ms, opacity 300ms;
}
.cursor__label {
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(.4);
  transition: opacity 250ms, transform 350ms var(--ease-out);
}
.cursor__dot {
  position: absolute;
  top: -3px; left: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}
.cursor.is-link .cursor__ring {
  transform: scale(1.6);
  border-color: var(--magenta);
  background: rgba(255, 61, 200, .08);
  box-shadow: 0 0 16px rgba(255, 61, 200, .45);
}
.cursor.is-view .cursor__ring {
  transform: scale(2.2);
  border-color: transparent;
  background: rgba(255, 61, 200, .85);
  box-shadow: 0 0 30px rgba(255, 61, 200, .6);
}
.cursor.is-view .cursor__label { opacity: 1; transform: scale(.45); }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor { transition: opacity 300ms; }
.cursor.is-hidden { opacity: 0; }

/* ==========================================================================
   Header — transparent over the hero, frosted once the page moves, and it
   ducks out of the way while you scroll down.
   Nothing on the header itself may carry a transform, filter or
   backdrop-filter at rest: any of those would trap the full-screen menu,
   which is position:fixed inside it. The glass lives on ::before instead.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  color: var(--text);
  transition: transform 550ms var(--ease-in-out);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 11, .62);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden.is-open { transform: none; }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}
@media (min-width: 768px) {
  .site-header__bar { padding-left: 2rem; padding-right: 2rem; max-width: none; }
}

.site-logo {
  position: relative;
  z-index: 2;
  display: inline-block;
  flex: 0 0 auto;
}
.site-logo img {
  display: block;
  width: auto;
  height: 64px;
  transition: filter 400ms var(--ease);
}
.site-logo:hover img { filter: drop-shadow(0 0 10px rgba(58, 215, 255, .55)); }
@media (max-width: 575.98px) { .site-logo img { height: 46px; } }

.site-header__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  transition: border-color 300ms, box-shadow 300ms, color 300ms;
}
.header-call:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); color: #fff; }
.header-call svg { width: 15px; height: 15px; }

/* ==========================================================================
   Primary navigation
   ========================================================================== */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  height: 2.625rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 100rem;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #fff;
  transition: border-color 300ms, box-shadow 300ms;
}
.nav-toggle:hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.nav-toggle__bars { display: block; width: 18px; height: 8px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  height: 1.5px;
  background: currentcolor;
  transition: transform 400ms var(--ease-out), width 400ms var(--ease-out);
}
.nav-toggle__bars::before { top: 0; width: 100%; }
.nav-toggle__bars::after  { bottom: 0; width: 60%; }
.nav-toggle__bars span { display: none; }
.nav-toggle:hover .nav-toggle__bars::after { width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-3.25px) rotate(-45deg); width: 100%; }

.main-nav__list,
.main-nav__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Chevron marking an item that opens a submenu */
.nav-chevron {
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  transition: transform 300ms var(--ease);
}
.nav-chevron svg { width: 9px; height: 6px; display: block; }

.main-nav__extra { display: none; }

/* --- Mobile & tablet: full-screen overlay (below 1200px) ----------------- */
@media (max-width: 1199.98px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    overflow-y: auto;
    background:
      radial-gradient(70vmax 50vmax at 100% 0%, rgba(255, 61, 200, .16), transparent 60%),
      radial-gradient(70vmax 50vmax at 0% 100%, rgba(58, 215, 255, .14), transparent 60%),
      #030408;
    clip-path: circle(0% at calc(100% - 3.5rem) 2.5rem);
    visibility: hidden;
    transition: clip-path 800ms var(--ease-in-out), visibility 0s linear 800ms;
  }
  .main-nav.is-open {
    clip-path: circle(150% at calc(100% - 3.5rem) 2.5rem);
    visibility: visible;
    transition: clip-path 800ms var(--ease-in-out), visibility 0s linear 0s;
  }

  .main-nav__list { counter-reset: nav; }
  .main-nav__list > li {
    position: relative;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .main-nav.is-open .main-nav__list > li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 60ms + 280ms);
  }
  .main-nav__list > li:nth-child(1) { --i: 0; }
  .main-nav__list > li:nth-child(2) { --i: 1; }
  .main-nav__list > li:nth-child(3) { --i: 2; }
  .main-nav__list > li:nth-child(4) { --i: 3; }
  .main-nav__list > li:nth-child(5) { --i: 4; }
  .main-nav__list > li:nth-child(6) { --i: 5; }
  .main-nav__list > li:nth-child(7) { --i: 6; }

  .main-nav__list > li > a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: .85rem 3rem .85rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 6.5vw, 2.5rem);
    letter-spacing: -.02em;
    color: #fff;
  }
  .main-nav__list > li > a::before {
    counter-increment: nav;
    content: '0' counter(nav);
    font-family: var(--font-sans);
    font-size: .6875rem;
    letter-spacing: .15em;
    color: var(--magenta);
  }
  .main-nav__list > li > a:hover,
  .main-nav__list .is-current > a,
  .main-nav__list .is-ancestor > a { color: var(--cyan); text-shadow: 0 0 22px rgba(58, 215, 255, .5); }

  .main-nav__list ul {
    max-height: 0;
    overflow: hidden;
    padding-left: 2.1rem;
    transition: max-height 450ms var(--ease);
  }
  .main-nav__list li.is-expanded > ul { max-height: 30rem; padding-bottom: .75rem; }
  .main-nav__list ul a {
    display: block;
    padding: .45rem 0;
    font-size: .9375rem;
    color: var(--text);
  }
  .main-nav__list ul a:hover { color: var(--magenta); }

  /* The tap target carries the chevron on touch layouts */
  .main-nav__list a > .nav-chevron { display: none; }

  .submenu-toggle {
    position: absolute;
    top: .6rem; right: 0;
    width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 300ms, color 300ms;
  }
  .submenu-toggle svg { width: 11px; height: 7px; transition: transform 300ms var(--ease); }
  .main-nav__list li.is-expanded > .submenu-toggle { border-color: var(--cyan); color: var(--cyan); }
  .main-nav__list li.is-expanded > .submenu-toggle svg { transform: rotate(180deg); }

  .main-nav__extra {
    display: grid;
    gap: .35rem;
    margin-top: auto;
    padding-top: 2rem;
    font-size: .875rem;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 600ms var(--ease) 0s;
  }
  .main-nav.is-open .main-nav__extra { opacity: 1; transition-delay: 700ms; }
  .main-nav__extra a { color: #fff; }
  .main-nav__extra strong {
    display: block;
    margin-bottom: .35rem;
    font-size: .6875rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--magenta);
  }

  html.nav-open { overflow: hidden; }
}

/* --- Desktop: horizontal bar with hover dropdowns (1200px and up) -------- */
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav { position: relative; z-index: 2; margin-left: auto; }
  .main-nav__list { display: flex; align-items: center; gap: 2rem; }
  .main-nav__list > li { position: relative; }
  .main-nav__list > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: .6rem 0;
    font-weight: 700;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--text);
  }
  /* Neon underline that draws in from the left */
  .main-nav__list > li > a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: .2rem;
    height: 1.5px;
    background: var(--neon);
    box-shadow: 0 0 8px rgba(58, 215, 255, .6);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 450ms var(--ease-out);
  }
  .main-nav__list > li > a:hover,
  .main-nav__list > li:focus-within > a,
  .main-nav__list > .is-current > a,
  .main-nav__list > .is-ancestor > a { color: #fff; }
  .main-nav__list > li:hover > a::after,
  .main-nav__list > li:focus-within > a::after,
  .main-nav__list > .is-current > a::after,
  .main-nav__list > .is-ancestor > a::after { transform: scaleX(1); transform-origin: left center; }

  /* The last item is the call to action, dressed as a neon pill */
  .main-nav__list > li.nav-cta > a {
    padding: .7rem 1.35rem;
    border-radius: 100rem;
    color: #fff;
    background:
      linear-gradient(var(--bg), var(--bg)) padding-box,
      var(--neon) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 0 18px rgba(255, 61, 200, .25);
    transition: box-shadow 350ms, background 350ms;
  }
  .main-nav__list > li.nav-cta > a::after { display: none; }
  .main-nav__list > li.nav-cta > a:hover {
    background: var(--neon) padding-box, var(--neon) border-box;
    box-shadow: 0 0 26px rgba(255, 61, 200, .55), 0 0 50px rgba(58, 215, 255, .25);
  }

  .main-nav__list ul {
    position: absolute;
    top: calc(100% + .5rem);
    left: -1.25rem;
    min-width: 15rem;
    padding: .75rem 0;
    background: rgba(9, 10, 20, .92);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(58, 215, 255, .05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transform-origin: top left;
    transition: opacity 300ms var(--ease), transform 400ms var(--ease-out), visibility 300ms;
    z-index: 20;
  }
  /* Invisible bridge so the pointer can travel from link to panel */
  .main-nav__list ul::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -.75rem;
    height: .75rem;
  }
  .main-nav__list li:hover > ul,
  .main-nav__list li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav__list ul a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1.35rem;
    font-size: .875rem;
    color: var(--text);
    white-space: nowrap;
    transition: color 250ms, padding-left 350ms var(--ease-out);
  }
  .main-nav__list ul a::before {
    content: '';
    position: absolute;
    left: .75rem; top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 8px var(--magenta);
    transform: translateY(-50%) scale(0);
    transition: transform 300ms var(--ease-out);
  }
  .main-nav__list ul a:hover { color: #fff; padding-left: 1.75rem; }
  .main-nav__list ul a:hover::before { transform: translateY(-50%) scale(1); }
  .submenu-toggle { display: none; }

  .main-nav__list > li:hover > a > .nav-chevron,
  .main-nav__list > li:focus-within > a > .nav-chevron { transform: rotate(180deg); }
}

/* ==========================================================================
   Page hero (every page but home) — a full-bleed, tinted photograph with the
   title rising out of a mask
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(34rem, 82vh);
  min-height: max(34rem, 82svh);
  padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: -10% 0 0;
  z-index: -2;
  isolation: isolate;
}
/* Photo and veil both fade to nothing at the foot of the hero, so the page's
   own lighting shows through rather than meeting a hard edge. */
.page-hero__media,
.page-hero__veil {
  -webkit-mask: linear-gradient(180deg, #000 62%, transparent 100%);
          mask: linear-gradient(180deg, #000 62%, transparent 100%);
}
.page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  filter: grayscale(1) contrast(1.15) brightness(.62);
  animation: kenBurns 2800ms var(--ease-out) both;
}
/* Colour grade: the photograph's light, the rig's colours */
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--cyan) 0%, var(--violet) 48%, var(--magenta) 100%);
  mix-blend-mode: color;
  opacity: .8;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 6, 11, .78) 34%, rgba(5, 6, 11, .15) 72%, rgba(5, 6, 11, .35) 100%),
    linear-gradient(180deg, rgba(5, 6, 11, .7) 0%, rgba(5, 6, 11, 0) 25%);
  overflow: hidden;
}
/* A single light sweep across the frame as the page opens */
.page-hero__veil::after {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  left: -40%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), rgba(58, 215, 255, .12), transparent);
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
}
.is-loaded .page-hero__veil::after { animation: lightSweep 2200ms var(--ease-in-out) 500ms both; }

.page-hero__inner { position: relative; }
.page-hero__eyebrow { margin-bottom: 1.5rem; }
.page-hero__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 7rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.page-hero__title .line:last-child .line__in {
  background: var(--neon);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__excerpt {
  max-width: 32rem;
  margin: 2rem 0 0;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: #d9ddeb;
}

/* Masked line reveal, shared with the home hero. Each word rises out of its
   own clipping box. Hidden only once <head> has flagged JS, and only until
   the curtain lifts; with no JS the words simply sit in place. */
.line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.line__in { display: inline-block; }
.js .line__in { transform: translateY(115%); }
.js.is-loaded .line__in {
  animation: lineUp 1200ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 250ms);
}
.js [data-intro] { opacity: 0; }
.js.is-loaded [data-intro] {
  animation: fadeUp 1000ms var(--ease-out) forwards;
  animation-delay: var(--d, 600ms);
}

/* Scroll cue: a line that keeps dropping down the page */
.scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--text-dim);
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 4.5rem;
  background: linear-gradient(var(--cyan), var(--magenta));
  transform-origin: top;
  animation: cueDrop 2200ms var(--ease-in-out) infinite;
}
.scroll-cue:hover { color: #fff; }
@media (max-width: 767.98px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Section dot navigator — only on very wide viewports
   ========================================================================== */
.section-dots {
  display: none;
  position: fixed;
  top: 50%;
  right: 1.75rem;
  transform: translateY(-50%);
  z-index: 500;
}
@media (min-width: 1367px) {
  .section-dots { display: block; }
}
.section-dots ul { list-style: none; margin: 0; padding: 0; }
.section-dots li { margin: .9rem 0; text-align: right; }
.section-dots a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-dim);
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
}
.section-dots__label {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  white-space: nowrap;
  color: #fff;
}
.section-dots a:hover .section-dots__label,
.section-dots a:focus-visible .section-dots__label { opacity: 1; transform: translateX(0); }
.section-dots__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentcolor;
  transition: background-color 300ms, transform 300ms var(--ease-out), box-shadow 300ms, color 300ms;
  flex: 0 0 auto;
}
.section-dots a:hover .section-dots__dot { color: #fff; }
.section-dots .is-active .section-dots__dot {
  color: var(--magenta);
  background: currentcolor;
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--magenta);
}

/* ==========================================================================
   Closing call-to-action — the last scene before the credits
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6rem, 14vw, 11rem) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 25% 55%, rgba(58, 215, 255, .22), transparent 70%),
    radial-gradient(38% 45% at 75% 45%, rgba(255, 61, 200, .22), transparent 70%);
  animation: washDrift 14s ease-in-out infinite alternate;
}
/* Sound-wave rings pulsing out from behind the button */
.cta-band__pulse {
  position: absolute;
  left: 50%; top: 50%;
  z-index: -1;
  width: 20rem; height: 20rem;
  margin: -10rem 0 0 -10rem;
  pointer-events: none;
}
.cta-band__pulse span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(58, 215, 255, .35);
  animation: pulseRing 4.5s var(--ease-out) infinite;
}
.cta-band__pulse span:nth-child(2) { animation-delay: 1.5s; border-color: rgba(255, 61, 200, .35); }
.cta-band__pulse span:nth-child(3) { animation-delay: 3s; border-color: rgba(138, 92, 255, .35); }

.cta-band__title {
  margin: 0 auto 1.75rem;
  max-width: 16ch;
  font-size: clamp(2.5rem, 8.5vw, 7.25rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.cta-band__title .text-outline { -webkit-text-stroke-color: var(--magenta); filter: drop-shadow(0 0 14px rgba(255, 61, 200, .45)); }
.cta-band__sub {
  max-width: 30rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: #d9ddeb;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  flex-grow: 0;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-dim);
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 20px rgba(58, 215, 255, .5);
  opacity: .8;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cyan); }

/* The studio's name, stage-sized, filling the width of the footer */
.footer-mega {
  margin: 0;
  padding: 3.5rem 0 0;
  font-family: var(--font-outline);
  font-weight: 800;
  font-size: 15.2vw;
  line-height: .8;
  letter-spacing: -.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  background: var(--neon);
  -webkit-background-clip: text;
          background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1600ms var(--ease-in-out);
  user-select: none;
}
.footer-mega.is-visible,
.no-js .footer-mega { background-size: 100% 100%; }

.site-footer__logo {
  position: relative;
  text-align: center;
  padding: 3.5rem 0 3rem;
}
.site-footer__logo img { width: auto; height: 104px; }

.footer-nav {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.scroll-top {
  float: right;
  margin-left: 2rem;
  margin-top: .1em;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--cyan) !important;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.scroll-top svg { width: 10px; height: 10px; transition: transform 300ms var(--ease-out); }
.scroll-top:hover svg { transform: translateY(-4px); }

.footer-widgets { padding: 3rem 0 1.5rem; font-size: .875rem; }
.footer-widgets p { margin-bottom: .5rem; }

.footer-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--magenta);
  margin-bottom: 1rem;
}

.footer-social { display: flex; gap: .75rem; justify-content: center; }
@media (min-width: 768px) { .footer-social { justify-content: flex-start; } }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 300ms, box-shadow 300ms, color 300ms;
}
.footer-social a:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); color: var(--cyan); }
.footer-social svg { width: 16px; height: 16px; }

.footer-rating {
  margin-top: 1.25rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
}
.footer-rating svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: .3rem; color: #ffd166; }

.footer-legal {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--text-faint);
}
.footer-legal p { margin: 0; }
.footer-legal .footer-legal__credit { margin-top: .375rem; opacity: .8; }

@media (max-width: 767.98px) {
  .footer-nav__list { justify-content: center; }
  .scroll-top { float: none; margin: 1.5rem 0 0; justify-content: center; width: 100%; }
  .footer-widgets { text-align: center; }
  .footer-widgets [class*="col-"] + [class*="col-"] { margin-top: 1.5rem; }
  .footer-social { justify-content: center; }
}
