/* ==========================================================================
   nyxcry0n.com · mobile-first, no framework
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0814;
  --violet-1: #2A1650;
  --violet-2: #4B2A8A;
  --ice: #7FD4FF;
  --ice-glow: rgba(127, 212, 255, 0.55);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(42, 22, 80, 0.28);

  --f-display: "Oswald", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --radius: 10px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ice); color: var(--bg); }

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

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-sm { width: 0.9em; height: 0.9em; }

.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: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ice);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Wordmark: NYXCRY0N, zero in icy blue ---------- */
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
.wordmark .zero {
  color: var(--ice);
  text-shadow:
    0 0 0.12em rgba(127, 212, 255, 0.9),
    0 0 0.45em rgba(127, 212, 255, 0.5),
    0 0 1em rgba(127, 212, 255, 0.25);
}

/* ---------- Shared layout ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 12vw, 136px); position: relative; }

.kicker {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  max-width: 52ch;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 4px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-primary {
  background: var(--ice);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--ice-glow);
}
.btn-primary:hover { box-shadow: 0 0 28px -2px var(--ice-glow); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(11, 8, 20, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
}
.brand {
  text-decoration: none;
  font-size: 1.2rem;
  padding: 8px 0;
}
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav-list a:hover { color: var(--ice); }
.nav-list li:last-child a { padding-right: 0; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 80px var(--gutter) 104px;
  text-align: center;
}
/* Blurred copy of the banner fills the screen behind the letterboxed image (phones, portrait) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background: var(--bg) url("../assets/banner-blur.webp") center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(11, 8, 20, 0.5), rgba(11, 8, 20, 0.62) 70%, var(--bg) 100%);
}
.rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.rain.is-on { opacity: 1; }

.hero-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title { margin: 0; line-height: 0; }

/* Letterbox mode (default): the banner sits large in the middle, sides cropped,
   edges feathered into the blurred background so the wordmark stays readable. */
.hero--banner .hero-bg {
  width: min(170vw, 130svh);
  max-width: none;
  height: auto;
  aspect-ratio: 1672 / 941;
  --fade-y: linear-gradient(to bottom, transparent, #000 17%, #000 80%, transparent);
  --fade-x: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-y), var(--fade-x);
  mask-composite: intersect;
}

.tagline {
  margin: 4px auto 0;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 16px rgba(11, 8, 20, 0.8);
}
.hero-actions {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-actions .btn { flex: 1 1 140px; max-width: 220px; white-space: nowrap; }
.eyebrow {
  margin-top: 28px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { white-space: nowrap; }
.hero-content > .eyebrow:first-child { margin: 0 0 14px; }   /* 404 page */
.hero-content > .section-title + .tagline { margin-top: 16px; }

/* Full-bleed mode: wide screens with enough height. The banner covers the hero,
   its wordmark sits just above centre, and the text goes below it on the road. */
@media (min-aspect-ratio: 4/3) and (min-height: 600px) {
  .hero--banner { justify-content: flex-start; padding-top: 61svh; padding-bottom: 88px; }
  .hero--banner::before { background: var(--bg); }
  .hero--banner .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero--banner .hero-overlay {
    background:
      radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(11, 8, 20, 0.55) 100%),
      linear-gradient(to bottom, rgba(11, 8, 20, 0.3) 0%, transparent 22%, transparent 52%, rgba(11, 8, 20, 0.6) 66%, rgba(11, 8, 20, 0.82) 86%, var(--bg) 100%);
  }
  .tagline { margin-top: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: 44px; height: 56px;
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ice));
  opacity: 0.75;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span { animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
  @keyframes cue {
    0% { transform: scaleY(0); opacity: 0; }
    40% { transform: scaleY(1); opacity: .8; }
    100% { transform: scaleY(1) translateY(12px); opacity: 0; }
  }
}

/* ---------- 2. Music / timeline ---------- */
.music::after {
  /* the sky lightens toward sunrise at the end of the timeline */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(75, 42, 138, 0.42), rgba(42, 22, 80, 0.15) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.music { isolation: isolate; }

.music { --road-w: 24px; --road-x: 0px; --time-w: 0px; }
.timeline {
  position: relative;
  margin-top: 56px;
}
/* The road: edge lines + dashed centre line */
.timeline::before {
  content: "";
  position: absolute;
  top: 6px; bottom: -40px;
  left: var(--road-x);
  width: var(--road-w);
  border-inline: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0 14px, transparent 14px 30px) center top / 2px 30px repeat-y,
    linear-gradient(to bottom, rgba(42, 22, 80, 0.2), rgba(75, 42, 138, 0.25));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 80px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 80px), transparent);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--road-w) minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 52px;
}
.tl-node {
  grid-column: 1; grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}
.is-released .tl-node {
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 0 5px rgba(127, 212, 255, 0.14), 0 0 18px 2px var(--ice-glow);
}

.tl-time {
  grid-column: 2; grid-row: 1;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tl-ampm { font-size: 0.5em; letter-spacing: 0.14em; color: var(--muted); margin-left: 2px; }
.is-soon .tl-time { color: rgba(255, 255, 255, 0.62); }
.is-released .tl-time { text-shadow: 0 0 24px rgba(127, 212, 255, 0.35); }

.tl-card { grid-column: 2; grid-row: 2; margin-top: 12px; border-radius: var(--radius); }

/* Released: featured card with click-to-load player */
.tl-card--released {
  padding: 8px;
  background: linear-gradient(160deg, rgba(75, 42, 138, 0.35), rgba(42, 22, 80, 0.18));
  border: 1px solid rgba(127, 212, 255, 0.28);
  box-shadow: 0 24px 70px -28px rgba(127, 212, 255, 0.35);
}
.yt-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.yt {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: #05030a;
  cursor: pointer;
  overflow: hidden;
  color: inherit;
}
.yt:focus-visible { outline: 3px solid var(--ice); outline-offset: -3px; border-radius: 6px; }
.yt-bg {
  position: absolute;
  inset: -12%;
  width: 124%; height: 124%;
  max-width: none;
  object-fit: cover;
  filter: blur(26px) brightness(0.5) saturate(1.2);
}
.yt-cover, .yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.yt-thumb { object-fit: cover; }
.yt-play {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ice);
  background: rgba(11, 8, 20, 0.62);
  border: 1.5px solid var(--ice);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 30px -4px var(--ice-glow);
  transition: background-color .2s, color .2s, scale .2s;
}
.yt-play .icon { width: 22px; height: 22px; margin-left: 3px; }
@media (min-width: 820px) {
  .yt-play { right: 20px; bottom: 20px; width: 68px; height: 68px; }
  .yt-play .icon { width: 28px; height: 28px; margin-left: 4px; }
}
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: var(--ice); color: var(--bg); scale: 1.06; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 6px 4px;
}
.status {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.status--out { background: var(--ice); color: var(--bg); }
.status--soon { color: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.22); }
.tl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(127, 212, 255, 0.5);
  text-underline-offset: 4px;
}
.tl-link:hover { color: var(--ice); }
.yt-note { font-size: 0.78rem; color: var(--faint); padding: 0 6px 6px; }

/* Coming soon: compact, dimmed */
.tl-card--soon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tl-cover {
  position: relative;
  flex: none;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--violet-1), var(--bg));
}
.tl-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(0.5) blur(1.5px);
}
.tl-cover-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.28);
}
.tl-soon-text p { margin-top: 8px; font-size: 0.9rem; color: var(--faint); }

.tl-end {
  position: relative;
  margin-top: 8px;
  padding-left: calc(var(--road-w) + 16px);
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Reveal on scroll (JS adds .will-reveal only when motion is allowed) */
.will-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }

.noscript { margin-top: 32px; color: var(--muted); }

/* ---------- 3. About ---------- */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 32px; }
.about-logo {
  width: 112px; height: 112px;
  border-radius: 14px;
  box-shadow: 0 0 60px -16px var(--ice-glow);
}
.about .section-title { font-size: clamp(2.25rem, 8vw, 3.5rem); }
.about-text {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 4. Contact ---------- */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .lead { margin-inline: auto; }
.email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 6px 2px;
  font-size: clamp(1.25rem, 5.4vw, 2.25rem);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 212, 255, 0.6);
  overflow-wrap: anywhere;
  transition: color .2s, border-color .2s, text-shadow .2s;
}
.email .icon { color: var(--ice); }
.email:hover { color: var(--ice); border-color: var(--ice); text-shadow: 0 0 18px rgba(127, 212, 255, 0.45); }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.socials a[href=""], .socials li:has(> a[href=""]) { display: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.socials a:hover { color: var(--ice); border-color: var(--ice); box-shadow: 0 0 22px -4px var(--ice-glow); }
.socials .icon { width: 22px; height: 22px; }

/* ---------- 5. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* Very small phones */
@media (max-width: 379px) {
  :root { --gutter: 16px; }
  .brand { font-size: 1.02rem; }
  .nav-list a { padding: 0 7px; font-size: 0.66rem; letter-spacing: 0.12em; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .tl-cover { width: 104px; }
}

@media (min-width: 820px) {
  :root { --gutter: 40px; }
  .brand { font-size: 1.35rem; }
  .nav-list a { font-size: 0.78rem; padding: 0 14px; }
  .eyebrow { font-size: 0.74rem; letter-spacing: 0.3em; }

  /* Timeline: [time] [road] [card] */
  .music { --road-w: 44px; --time-w: 236px; --road-x: calc(var(--time-w) + 28px); }
  .tl-item {
    grid-template-columns: var(--time-w) var(--road-w) minmax(0, 1fr);
    column-gap: 28px;
    padding-bottom: 72px;
  }
  .tl-time {
    grid-column: 1; grid-row: 1;
    text-align: right;
    font-size: 3.4rem;
    line-height: 1;
    align-self: start;
  }
  .tl-node { grid-column: 2; grid-row: 1; align-self: start; margin-top: 20px; width: 16px; height: 16px; }
  .tl-card { grid-column: 3; grid-row: 1; margin-top: 0; }
  .tl-card--released { max-width: 720px; padding: 10px; }
  .tl-card--soon { max-width: 520px; }
  .tl-end { padding-left: calc(var(--time-w) + var(--road-w) + 56px); }

  .about-grid { grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
  .about-logo { width: 220px; height: 220px; border-radius: 20px; }
}

@media (min-width: 1100px) {
  .tl-time { font-size: 3.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .rain { display: none; }
}
