/* =========================================================================
   CrossNexus — site styles
   Palette is sampled from the emblem: cyan through blue into violet.
   No webfonts, no external resources; the system stack keeps it instant.
   ========================================================================= */

:root {
  --bg:        #05070f;
  --bg-2:      #080b16;
  --panel:     #0b0f1d;
  --text:      #f2f5ff;
  --muted:     #a7b0c8;
  --faint:     #7d879f;

  --cyan:      #53f4f6;
  --blue:      #6791ff;
  --violet:    #b24dff;

  --line:      rgba(125, 165, 255, .16);
  --line-soft: rgba(125, 165, 255, .09);
  --grad:      linear-gradient(100deg, var(--cyan), var(--blue) 52%, var(--violet));

  --shell:     min(1200px, 100% - 2.5rem);
  --radius:    18px;
  --ease:      cubic-bezier(.22, .61, .36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* the sticky header would otherwise cover the top of every anchored section */
:target, section[id] { scroll-margin-top: 6rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--cyan); color: #04121a; font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--cyan);
  font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}

.fineprint { color: var(--faint); font-size: .85rem; line-height: 1.6; }

/* ---------- header ------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; }
.brand img { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(83, 244, 246, .35)); }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a { color: #cfd7ec; font-size: .92rem; font-weight: 500; transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--cyan); }
.nav-cta {
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { border-color: rgba(83, 244, 246, .5); background: rgba(83, 244, 246, .08); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; justify-items: center; }
.nav-toggle-bars i {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero -------------------------------------------------------- */

.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: min(92svh, 900px);
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem) clamp(5rem, 9vw, 7rem);
  text-align: center;
  overflow: hidden;
}

/* Soft drifting colour fields. The anthem "video" is a still frame, so the
   motion on this page comes from CSS rather than from a 7 MB download. */
.aurora { position: absolute; inset: -20% -10%; z-index: 0; filter: blur(70px); opacity: .55; }
.aurora span { position: absolute; display: block; border-radius: 50%; }
.aurora span:nth-child(1) {
  width: 52vw; height: 52vw; left: 4%; top: 6%;
  background: radial-gradient(circle, rgba(16, 150, 168, .62), transparent 68%);
  animation: drift-a 22s var(--ease) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 48vw; height: 48vw; right: 2%; top: 18%;
  background: radial-gradient(circle, rgba(129, 44, 195, .58), transparent 68%);
  animation: drift-b 27s var(--ease) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 40vw; height: 40vw; left: 32%; bottom: -6%;
  background: radial-gradient(circle, rgba(60, 96, 210, .45), transparent 70%);
  animation: drift-c 31s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9%, 7%, 0)  scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-8%, 10%, 0) scale(1.09); } }
@keyframes drift-c { to { transform: translate3d(5%, -9%, 0)  scale(1.17); } }

.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero-mark {
  width: clamp(104px, 15vw, 168px); margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  filter: drop-shadow(0 0 36px rgba(83, 244, 246, .32))
          drop-shadow(0 0 70px rgba(178, 77, 255, .26));
  animation: float 7s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translateY(-11px); } }

.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); letter-spacing: -.045em; }
.hero .lead {
  max-width: 620px; margin: 1.5rem auto 0;
  color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .92rem 1.6rem; border-radius: 999px;
  font-size: .95rem; font-weight: 650; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  background: var(--grad); color: #050a14;
  box-shadow: 0 10px 34px rgba(103, 145, 255, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(103, 145, 255, .42); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .035); color: var(--text); }
.btn-ghost:hover { border-color: rgba(83, 244, 246, .45); background: rgba(83, 244, 246, .09); transform: translateY(-2px); }

.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 1.7rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .55rem;
  color: var(--faint); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 30px;
  background: linear-gradient(var(--cyan), transparent);
  animation: cue 2.1s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .25; transform: scaleY(.55); transform-origin: top; }
                 50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; } }

/* ---------- sections ---------------------------------------------------- */

.section { width: var(--shell); margin-inline: auto; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section > h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.prose { display: grid; gap: 1.15rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.8; }
.prose p:first-child { color: #dbe2f4; }

/* principle cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.75rem; }
.card {
  position: relative; overflow: hidden;
  min-height: 260px; padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 28, 52, .85), rgba(7, 9, 17, .9));
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: var(--grad); opacity: .55;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(83, 244, 246, .32);
  box-shadow: 0 18px 50px rgba(83, 130, 255, .14);
}
.card .num { color: var(--violet); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; letter-spacing: .1em; }
.card h3 { margin-top: auto; padding-top: 3rem; font-size: 1.3rem; }
.card p { margin-top: .7rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* pull-quote band */
.statement {
  border-block: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 120% at 18% 50%, rgba(13, 133, 150, .17), transparent 62%),
    radial-gradient(60% 120% at 82% 50%, rgba(129, 44, 195, .17), transparent 62%),
    var(--bg-2);
}
.statement-inner { width: var(--shell); margin-inline: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.statement-big {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.12;
}
.statement-big .grad { display: inline-block; max-width: 30ch; }

/* ---------- anthem + player -------------------------------------------- */

.anthem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.anthem-copy h2 { margin-bottom: 1.1rem; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.anthem-copy > p { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.75; }

/* Two links, each on its own line, each only as wide as its own text. */
.downloads { display: grid; justify-items: start; gap: .9rem; margin-top: 1.8rem; }

.download {
  display: inline-flex; align-items: baseline; gap: .55rem;
  padding-bottom: .3rem; border-bottom: 1px solid var(--line);
  font-size: .93rem; font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.download span { color: var(--faint); font-size: .8rem; font-weight: 400; }
.download:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.player {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(6, 10, 26, .75);
}
.stage { position: relative; background: #000; }
.player-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* Captions sit clear of the control bar. */
.player-video::cue { background: rgba(4, 6, 14, .8); color: #fff; font-size: .9em; }

.big-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.big-play-ring {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--grad); color: #050a14;
  box-shadow: 0 10px 40px rgba(6, 10, 26, .6), 0 0 0 10px rgba(83, 244, 246, .1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.big-play-ring svg { width: 34px; height: 34px; margin-left: 3px; fill: currentColor; }
.big-play:hover .big-play-ring { transform: scale(1.07); box-shadow: 0 14px 50px rgba(6, 10, 26, .7), 0 0 0 14px rgba(83, 244, 246, .13); }
.player.is-playing .big-play { opacity: 0; visibility: hidden; }
.player-ui {
  display: grid; gap: 1rem;
  padding: 1.15rem 1.25rem 1.3rem;
  background: linear-gradient(0deg, rgba(5, 7, 15, .97), rgba(10, 14, 28, .9));
  border-top: 1px solid var(--line-soft);
}
.player-meta { display: grid; gap: .15rem; }
.player-meta strong { font-size: 1.02rem; letter-spacing: -.01em; }
.player-meta span { color: var(--faint); font-size: .82rem; }

.player-controls { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .7rem; }

.play, .mute, .full {
  display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 50%; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.play { width: 52px; height: 52px; background: var(--grad); color: #050a14; box-shadow: 0 8px 26px rgba(103, 145, 255, .34); }
.play:hover { transform: scale(1.06); box-shadow: 0 12px 34px rgba(103, 145, 255, .48); }
.play svg { width: 24px; height: 24px; fill: currentColor; }
.icon-pause { display: none; }
.player.is-playing .icon-play  { display: none; }
.player.is-playing .icon-pause { display: block; }

.mute, .full { width: 40px; height: 40px; border-color: var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); }
.mute:hover, .full:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.mute svg, .full svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.full svg { fill: none; stroke-width: 2; stroke-linejoin: round; }
.mute .wave { fill: none; }
.mute .slash { fill: none; opacity: 0; transition: opacity .18s var(--ease); }
.mute[aria-pressed="true"] .wave  { opacity: .25; }
.mute[aria-pressed="true"] .slash { opacity: 1; }

.track { display: grid; gap: .35rem; }
.times { display: flex; justify-content: space-between; color: var(--faint); font-size: .76rem; font-variant-numeric: tabular-nums; }

/* the filled part of the scrubber is driven by --p, set from JS */
#seek {
  --p: 0%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer;
}
#seek::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 / var(--p) 100% no-repeat,
              rgba(255, 255, 255, .13);
}
#seek::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .13); }
#seek::-moz-range-progress { height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
#seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; margin-top: -4px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(83, 244, 246, .22);
  transition: box-shadow .2s var(--ease);
}
#seek::-moz-range-thumb {
  width: 13px; height: 13px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(83, 244, 246, .22);
}
#seek:hover::-webkit-slider-thumb, #seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(83, 244, 246, .32); }

.player-note:empty { display: none; }
.player-note { color: #ffb4b4; font-size: .82rem; }

/* Sits under the controls, next to the play button it actually describes. */
.player-hint { color: var(--faint); font-size: .8rem; line-height: 1.5; }
.player.is-playing .player-hint { visibility: hidden; }

/* ---------- lyrics ------------------------------------------------------ */

.lyrics-section {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-top: 1px solid var(--line-soft);
}
.lyrics-head { position: sticky; top: 7rem; }
.lyrics-head h2 { margin-bottom: .9rem; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }

.lyrics { display: grid; gap: .1rem; counter-reset: none; }
.lyrics li {
  padding: .42rem .9rem;
  border-radius: 10px;
  color: var(--faint);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  transition: color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.lyrics li.chorus { color: #9fa9c4; font-weight: 600; }
/* the line currently being sung */
.lyrics li.is-now {
  color: var(--text);
  background: linear-gradient(90deg, rgba(83, 244, 246, .13), rgba(178, 77, 255, .07) 65%, transparent);
  transform: translateX(5px);
}
.lyrics li.is-past { color: #5d6780; }
/* clicking a line jumps the anthem to it, but only when the player is wired up */
.js .lyrics li { cursor: pointer; }
.js .lyrics li:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

/* ---------- footer ------------------------------------------------------ */

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: var(--shell); margin-inline: auto; padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line-soft);
}
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand img { width: 34px; }
.foot-brand strong { display: block; font-size: .98rem; }
.foot-brand span { color: var(--faint); font-size: .84rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-nav a { color: var(--muted); font-size: .88rem; transition: color .2s var(--ease); }
.foot-nav a:hover { color: var(--cyan); }
.foot-legal { color: var(--faint); font-size: .82rem; }

/* ---------- reveal on scroll ------------------------------------------- */

/* Sections start visible. Only once the inline head script has marked the
   document as scripted do they hide, so a JS failure can never blank the page. */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card h3 { padding-top: 2.2rem; }
}

@media (max-width: 860px) {
  :root { --shell: min(1200px, 100% - 2rem); }
  .nav-toggle { display: grid; place-items: center; }

  .site-nav {
    position: fixed; inset: 0 0 auto; z-index: 45;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5.2rem 1.25rem 1.5rem;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-101%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility .34s var(--ease);
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav a { padding: .95rem .25rem; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-cta { margin-top: 1rem; border-bottom: 1px solid var(--line); text-align: center; }

  .split, .anthem, .lyrics-section { grid-template-columns: 1fr; }
  .anthem { gap: 2.5rem; }
  .lyrics-head { position: static; }
  .statement-big { max-width: none; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { padding-top: 1.5rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

/* ---------- motion & contrast preferences ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .aurora { opacity: .4; }
}

@media (prefers-contrast: more) {
  :root { --muted: #ccd4e8; --faint: #aab3c8; --line: rgba(160, 195, 255, .4); }
}

@media print {
  .site-header, .aurora, .scroll-cue, .player, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .grad { -webkit-text-fill-color: #000; color: #000; }
}
