/* ==========================================================================
   Pirre — design skeleton
   Palette derives from the "You Better Save Me" cover: a dark, nocturnal
   duotone in teal/coral. Signature moves, all fully automatic (no pointer
   needed, since most visitors are on phone/tablet):
     — Drift:      embers drift upward through the page, all the time.
     — Blur edge:  the bottom of the viewport is permanently a little soft;
                    content sharpens as it scrolls up clear of it.
     — Scramble:   headlines decode from random characters into the real
                    word as they scroll into view. Reads as a signal
                    tuning in, which is the same word the copy uses.
   ========================================================================== */

:root {
  /* Color — named for what each does, not just the client-supplied hex */
  --ink:        #150f1c;   /* deepest shadow, layered under --dusk for depth */
  --dusk:       #261e32;   /* primary background */
  --dusk-soft:  #322843;   /* raised surfaces: cards, embed slot, outlines */
  --teal:       #18b3a6;   /* primary accent — CTAs, links, interactive */
  --cyan-glow:  #54fff8;   /* "You better save me" — bright glow accent */
  --coral:      #fe5858;   /* secondary accent — hover/emphasis */
  --pink-glow:  #ff9292;   /* "Pirre" — bright glow accent, focus rings */
  --paper:      #ede8f4;   /* body text, warm-cool white to sit in the purple */
  --paper-dim:  rgb(237 232 244 / 70%);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(5rem, 12vw, 9rem);
  --max-w: 74rem;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dusk);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

.mono { font-family: var(--font-mono); }

/* Visible, high-contrast focus ring everywhere */
:focus-visible {
  outline: 2px solid var(--pink-glow);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--paper);
  color: var(--dusk);
  padding: .6rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .85rem;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ==========================================================================
   Signature element 1/2 — Drift: embers rising through the dark
   ========================================================================== */

.embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(160deg, var(--ink) 0%, var(--dusk) 55%, var(--dusk-soft) 100%);
}

.embers i {
  position: absolute;
  bottom: -5%;
  left: var(--x, 50%);
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: var(--c, var(--teal));
  box-shadow: 0 0 10px 2px var(--c, var(--teal));
  /* Base (non-animated) state — what shows under prefers-reduced-motion,
     since the blanket override below neutralizes the animation itself. */
  opacity: var(--peak, .55);
  animation: emberRise var(--dur, 20s) linear var(--delay, 0s) infinite;
}

@keyframes emberRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: var(--peak, .55); }
  88%  { opacity: var(--peak, .55); }
  100% { transform: translate(var(--dx, 30px), -112vh); opacity: 0; }
}

/* Faint film grain over everything, echoing the cover's own photographic
   texture. Always on — it's texture, not motion, so it's exempt from the
   reduced-motion rule below (it doesn't move, just sits there). */
.grain {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Signature element 2/3 — permanent blur along the bottom edge. Fixed to
   the viewport, so as the page scrolls, content passes through it and
   sharpens above it. A .scroll-spacer at the end of the page (see below)
   keeps the very last content from ever being stuck inside it.
   ========================================================================== */

.blur-edge {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: clamp(90px, 16vh, 200px);
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 85%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 85%);
}

.scroll-spacer {
  /* Matches .blur-edge's max height, so the footer always clears it
     before you hit the bottom of the page. */
  height: clamp(90px, 16vh, 200px);
}

/* ==========================================================================
   Signature element 3/3 — Scramble: headlines decode from random
   characters into the real word as they scroll into view (js/main.js).
   The element's own text is mutated directly, so an aria-label (mirroring
   data-text, set in JS) keeps it exact for assistive tech throughout.
   ========================================================================== */

.scramble-text {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.topbar__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}

.topbar__quicklinks {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.topbar__quicklinks a {
  text-decoration: none;
  color: var(--paper-dim);
  transition: color .2s ease;
}
.topbar__quicklinks a:hover,
.topbar__quicklinks a:focus-visible { color: var(--cyan-glow); }

.topbar__quicklinks a.topbar__quicklinks-all {
  background: var(--teal);
  color: var(--ink);
  padding: .3rem .7rem;
  border-radius: 999px;
  font-weight: 600;
}
.topbar__quicklinks a.topbar__quicklinks-all:hover,
.topbar__quicklinks a.topbar__quicklinks-all:focus-visible { background: var(--cyan-glow); }

/* ==========================================================================
   Jump nav — a numbered dot-rail down the right edge on wide screens;
   collapses into a hamburger + slide-in drawer below --nav-breakpoint.
   ========================================================================== */

:root { --nav-breakpoint: 860px; }

.menu-toggle {
  display: none;
  position: fixed;
  top: 1.15rem;
  right: var(--gutter);
  z-index: 31;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.jumpnav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgb(0 0 0 / 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.jumpnav-backdrop.is-open { opacity: 1; }

.jumpnav {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 3vw, 2.25rem);
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.15rem;
}

.jumpnav__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color .2s ease;
}
.jumpnav__link:hover,
.jumpnav__link:focus-visible,
.jumpnav__link.is-active { color: var(--paper); }

.jumpnav__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  transition: color .2s ease, text-shadow .2s ease;
}
.jumpnav__link.is-active .jumpnav__num {
  color: var(--cyan-glow);
  text-shadow: 0 0 12px color-mix(in srgb, var(--cyan-glow) 60%, transparent);
}

.jumpnav__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .2s ease, max-width .3s ease;
}
.jumpnav__link:hover .jumpnav__label,
.jumpnav__link:focus-visible .jumpnav__label,
.jumpnav__link.is-active .jumpnav__label {
  opacity: 1;
  max-width: 10rem;
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  /* Leave room so the quicklinks cluster doesn't run under the fixed
     hamburger button. */
  .topbar { padding-right: calc(var(--gutter) + 52px); }
  .topbar__quicklinks { gap: .6rem; }

  .jumpnav {
    top: 0; right: 0; bottom: 0;
    transform: translateX(100%);
    width: min(80vw, 320px);
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
    background: var(--dusk-soft);
    box-shadow: -20px 0 60px rgb(0 0 0 / 35%);
    z-index: 30;
    transition: transform .35s ease;
  }
  .jumpnav.is-open { transform: translateX(0); }

  .jumpnav__num { font-size: .85rem; }
  .jumpnav__label {
    font-size: .95rem;
    opacity: 1;
    max-width: none;
  }
}

/* ==========================================================================
   Layout scaffolding
   ========================================================================== */

main, .footer { position: relative; z-index: 2; }

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid rgb(237 232 244 / 10%);
}

.eyebrow {
  display: block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-glow);
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.body-text {
  max-width: 38rem;
  color: var(--paper-dim);
}
.body-text + .body-text { margin-top: 1rem; }
.body-text em { color: var(--paper); font-style: normal; opacity: .8; }

.epk-link a {
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.epk-link a:hover,
.epk-link a:focus-visible { color: var(--paper); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(6rem, 10vw, 8rem) var(--gutter) 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__mark { display: flex; flex-direction: column; gap: .35em; }

.hero__name,
.hero__release {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.01em;
}

.hero__name {
  font-size: clamp(3.25rem, 13vw, 7.5rem);
  color: var(--pink-glow);
  text-shadow: 0 0 46px color-mix(in srgb, var(--pink-glow) 55%, transparent);
}

.hero__release {
  font-size: clamp(2rem, 8vw, 4.25rem);
  color: var(--cyan-glow);
  text-shadow: 0 0 40px color-mix(in srgb, var(--cyan-glow) 45%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn--primary {
  background: var(--teal);
  color: var(--ink);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--teal) 50%, transparent);
}
.btn__icon { flex-shrink: 0; }

/* ==========================================================================
   Release
   ========================================================================== */

.release {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
}

.release__art {
  margin: 0;
  flex: 0 1 clamp(220px, 32vw, 340px);
}
.release__art img {
  width: 100%;
  height: auto; /* without this, the img's own width/height HTML attributes
                   (used to reserve space before load) win over aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 45%);
}

.release__info {
  flex: 1 1 20rem;
  min-width: 0;
}

.release__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: .98;
  letter-spacing: -0.01em;
  margin-bottom: .75rem;
}

.release__by {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 2rem;
}

.embed-slot {
  border: 1px dashed rgb(237 232 244 / 25%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dusk-soft) 60%, transparent);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.embed-slot__label { font-size: .8rem; color: var(--paper-dim); letter-spacing: .04em; }

.platforms, .socials {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.platform {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid rgb(237 232 244 / 25%);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.platform:hover,
.platform:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

/* ==========================================================================
   Follow
   ========================================================================== */

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--cyan-glow);
}

.newsletter {
  margin-top: 2rem;
  max-width: 30rem;
}

.newsletter__label {
  display: block;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: .9rem;
}

.newsletter__row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.newsletter__input {
  flex: 1 1 14rem;
  background: color-mix(in srgb, var(--dusk-soft) 60%, transparent);
  border: 1px solid rgb(237 232 244 / 25%);
  border-radius: 999px;
  padding: .8rem 1.2rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .95rem;
}
.newsletter__input::placeholder { color: var(--paper-dim); }
.newsletter__input:disabled { opacity: .5; cursor: not-allowed; }

.newsletter__submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hint { font-size: .75rem; color: var(--paper-dim); opacity: .7; margin-top: .75rem; }
.hint:empty { display: none; }
.hint.is-success { color: var(--cyan-glow); opacity: 1; font-size: .8rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  font-size: .75rem;
  color: var(--paper-dim);
}
.footer__press { margin-top: .5rem; }
.footer__press a {
  color: var(--paper-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__press a:hover,
.footer__press a:focus-visible { color: var(--cyan-glow); }

/* ==========================================================================
   Scroll-reveal (progressive enhancement, see js/main.js)
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
