/* ============================================================
   REMORSELESS — dark cinematic archive
   ============================================================ */

:root {
  --black: #050505;
  --charcoal: #111111;
  --midnight: #0D1118;
  --steel: #5B7188;
  --ash: #9DA3AA;
  --bone: #E8E4E0;
  --ember: #9E3E1D;
  --blood: #5C1414;

  --font-head: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  background: var(--black);
  color: var(--ash);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blood); color: var(--bone); }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--bone);
  letter-spacing: .06em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5.5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); text-transform: uppercase; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; letter-spacing: .08em; }

a { color: var(--steel); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--bone); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-narrow { max-width: 780px; }
.center { text-align: center; }

/* assets/logo.png is a pre-processed transparent bone-white version of the
   original black-on-white scan (generated from IMG-1498.jpg, untouched). */
.logo-invert { filter: drop-shadow(0 2px 18px rgba(0,0,0,.55)); }

/* ---------- atmosphere: fog + ash ---------- */
.fog {
  position: fixed; inset: -20%;
  pointer-events: none; z-index: 1; opacity: .5;
  background: radial-gradient(ellipse 60% 45% at 25% 30%, rgba(91,113,136,.05), transparent 65%),
              radial-gradient(ellipse 50% 40% at 75% 65%, rgba(158,62,29,.03), transparent 60%);
  animation: fog-drift 90s linear infinite alternate;
}
.fog-b {
  background: radial-gradient(ellipse 55% 40% at 70% 20%, rgba(232,228,224,.025), transparent 60%),
              radial-gradient(ellipse 45% 50% at 20% 80%, rgba(91,113,136,.04), transparent 65%);
  animation-duration: 130s; animation-direction: alternate-reverse;
}
@keyframes fog-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

#ash { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; opacity: .55; }

main, #site-header, #site-footer { position: relative; z-index: 3; }

/* ---------- header ---------- */
/* The bar stays hidden on the hero and slides in once the visitor scrolls. */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 5, 5, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(157, 163, 170, .08);
  transform: translateY(-100%);
  transition: transform .55s var(--ease), background .4s var(--ease);
}
#site-header.scrolled { transform: none; }

.header-inner {
  max-width: 1400px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .logo-img { height: 44px; width: auto; }
.logo-fallback {
  display: none;
  font-family: var(--font-head); color: var(--bone);
  letter-spacing: .28em; font-size: .95rem;
}
.brand.logo-missing .logo-img { display: none; }
.brand.logo-missing .logo-fallback { display: inline; }

#main-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; }
#main-nav a {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--ash); padding: 6px 2px; position: relative;
}
#main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--steel), transparent);
  transition: width .4s var(--ease);
}
#main-nav a:hover { color: var(--bone); }
#main-nav a:hover::after, #main-nav a.active::after { width: 100%; }
#main-nav a.active { color: var(--bone); }

.header-right { display: flex; align-items: center; gap: 18px; }

.header-social { display: flex; gap: 12px; }
.s-icon svg { width: 17px; height: 17px; fill: var(--ash); transition: fill .3s var(--ease), filter .3s var(--ease); }
.s-icon:hover svg { fill: var(--bone); filter: drop-shadow(0 0 6px rgba(91,113,136,.6)); }

#menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 110;
}
#menu-toggle span {
  display: block; height: 1px; background: var(--bone); margin: 7px 0;
  transition: transform .35s var(--ease), opacity .3s;
}
#menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .26em;
  padding: 15px 34px; border: 1px solid; border-radius: 2px;
  cursor: pointer; background: transparent;
  transition: all .45s var(--ease);
  font-family: var(--font-body); font-weight: 400;
}
.btn-ember { color: var(--bone); border-color: rgba(158,62,29,.55); }
.btn-ember:hover {
  color: var(--bone);
  border-color: var(--ember);
  box-shadow: 0 0 22px rgba(158,62,29,.28), inset 0 0 14px rgba(158,62,29,.12);
  background: rgba(158,62,29,.08);
}
.btn-steel { color: var(--ash); border-color: rgba(91,113,136,.4); }
.btn-steel:hover {
  color: var(--bone);
  border-color: var(--steel);
  box-shadow: 0 0 20px rgba(91,113,136,.25), inset 0 0 12px rgba(91,113,136,.1);
  background: rgba(91,113,136,.07);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 20px 80px;
  text-align: center;
}
.hero-bg { position: absolute; inset: -8% 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .55; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 90% 60% at 50% 45%, transparent 30%, rgba(5,5,5,.75) 100%),
    linear-gradient(to bottom, rgba(5,5,5,.55), rgba(5,5,5,.15) 40%, var(--black) 96%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; margin-bottom: 10vh; }

/* Bright glowing shading behind the black logo — like on the
   Reincarnated cover: dark strokes on a soft shaft of light. */
.hero-logo-halo { position: relative; display: inline-block; margin: 0 auto 2.6rem; }
.hero-logo-halo::before {
  content: ""; position: absolute; inset: -60% -30%; z-index: -1;
  background: radial-gradient(ellipse 50% 50% at center,
    rgba(232, 228, 224, .34), rgba(232, 228, 224, .16) 45%, transparent 72%);
  animation: halo-fade 2.4s var(--ease) .5s both;
}
@keyframes halo-fade { from { opacity: 0; } to { opacity: 1; } }

/* Logo intro: grows from small, flares up briefly, then settles
   with a white glow hugging the strokes. */
.hero-logo {
  display: block;
  height: clamp(150px, 27vw, 270px); width: auto;
  animation: logo-intro 3.2s cubic-bezier(.19, 1, .22, 1) both;
}
@keyframes logo-intro {
  0%   { opacity: 0; transform: scale(.14);
         filter: drop-shadow(0 0 0 rgba(232,228,224,0)); }
  45%  { opacity: 1; transform: scale(1.03);
         filter: drop-shadow(0 0 2px rgba(232,228,224,.3)); }
  62%  { filter: drop-shadow(0 0 5px rgba(255,255,255,.95)) drop-shadow(0 0 40px rgba(232,228,224,.7)); }
  100% { opacity: 1; transform: scale(1);
         filter: drop-shadow(0 0 4px rgba(232,228,224,.75)) drop-shadow(0 0 22px rgba(232,228,224,.3)); }
}

/* Headline, text and button follow the logo with a staggered fade-up. */
.hero h1, .hero-sub, .hero-cta { animation: hero-fade 1.3s var(--ease) both; }
.hero h1 { animation-delay: 1.1s; }
.hero-sub { animation-delay: 1.35s; }
.hero-cta { animation-delay: 1.6s; }
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.hero h1 { margin-bottom: 1.6rem; text-shadow: 0 4px 40px rgba(0,0,0,.9); }
.hero-sub {
  max-width: 640px; margin: 0 auto 2.8rem;
  color: var(--ash); font-size: .98rem;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-scrollhint {
  position: absolute; bottom: 34px; left: 50%; z-index: 2;
  width: 1px; height: 52px; background: linear-gradient(to bottom, transparent, var(--steel));
  animation: scrollhint 2.8s var(--ease) infinite;
}
@keyframes scrollhint {
  0%, 100% { opacity: .2; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: .8; transform: scaleY(1); }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-alt { background: linear-gradient(to bottom, var(--black), var(--midnight) 30%, var(--midnight) 70%, var(--black)); }

.section-label {
  font-size: .68rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 1rem;
}
.section-sub { color: var(--steel); font-size: 1rem; letter-spacing: .04em; margin-bottom: 2.5rem; }

/* metallic line under headings */
h2::after {
  content: ""; display: block; width: 64px; height: 1px; margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--steel), rgba(91,113,136,0));
}
.center h2::after, .container.center h2::after { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, rgba(91,113,136,0), var(--steel), rgba(91,113,136,0)); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legacy split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 2.5rem; }
.split-text p { margin-bottom: 1.4rem; }
.split-text p:first-child { color: var(--bone); font-size: 1.08rem; }

.art-frame {
  position: relative; overflow: hidden; background: var(--charcoal);
  border: 1px solid rgba(157,163,170,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.art-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.art-frame.missing { min-height: 320px; background:
  radial-gradient(ellipse at 50% 40%, rgba(91,113,136,.12), transparent 70%), var(--charcoal); }
.art-frame.missing img { display: none; }
.art-frame.missing::after {
  content: "ARTWORK"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); letter-spacing: .4em; font-size: .7rem; color: rgba(157,163,170,.35);
}
.slow-zoom img { animation: slowzoom 30s var(--ease) infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.09); } }

/* band sigil in the legacy section: soft edges, scale-in with a
   metallic flare once it scrolls into view */
.legacy-logo { margin: 0 auto; max-width: 420px; }
.legacy-logo img {
  width: 100%; display: block;
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 58% 55% at center,
    #000 48%, rgba(0,0,0,.5) 72%, transparent 95%);
  mask-image: radial-gradient(ellipse 58% 55% at center,
    #000 48%, rgba(0,0,0,.5) 72%, transparent 95%);
}
.legacy-logo.lit img { animation: sigil-intro 3s var(--ease) both; }
@keyframes sigil-intro {
  0%   { opacity: 0; transform: scale(.8); filter: brightness(1); }
  45%  { opacity: 1; transform: scale(1.03); filter: brightness(1); }
  62%  { filter: brightness(2.1); }
  74%  { filter: brightness(1.25); }
  84%  { filter: brightness(1.7); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) { .legacy-logo img { opacity: 1; } }

/* ---------- timeline ---------- */
.timeline {
  list-style: none; margin-top: clamp(60px, 8vw, 100px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  position: relative; padding-top: 34px;
}
.timeline::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,113,136,.5) 15%, rgba(91,113,136,.5) 85%, transparent);
}
.timeline li { position: relative; }

/* ember line that draws itself towards TODAY once the timeline is in view */
.timeline::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 12%, #c05a2e);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.timeline.lit::after { animation: tl-draw 2.4s var(--ease) .2s forwards; }
@keyframes tl-draw { to { transform: scaleX(1); } }

/* markers ignite one by one as the line passes them */
.timeline.lit li:nth-child(1)::before { animation: tl-ignite .8s ease .25s both; }
.timeline.lit li:nth-child(2)::before { animation: tl-ignite .8s ease .75s both; }
.timeline.lit li:nth-child(3)::before { animation: tl-ignite .8s ease 1.25s both; }
.timeline.lit li:nth-child(4)::before { animation: tl-ignite .8s ease 1.75s both; }
@keyframes tl-ignite {
  0%   { border-color: var(--steel); box-shadow: none; }
  45%  { border-color: #c05a2e; box-shadow: 0 0 10px rgba(158,62,29,.7); }
  100% { border-color: rgba(192,90,46,.8); box-shadow: 0 0 4px rgba(158,62,29,.25); }
}

/* the TODAY endpoint flares up when the line arrives, then keeps a soft glow */
.timeline.lit li:last-child::before { animation: tl-endpoint 1.8s ease 2.4s both; }
@keyframes tl-endpoint {
  0%   { transform: rotate(45deg) scale(1); background: var(--black); border-color: var(--steel); box-shadow: none; }
  35%  { transform: rotate(45deg) scale(1.7); background: #c05a2e; border-color: var(--bone);
         box-shadow: 0 0 18px rgba(192,90,46,.95), 0 0 44px rgba(158,62,29,.55); }
  60%  { transform: rotate(45deg) scale(1.25); box-shadow: 0 0 8px rgba(192,90,46,.5); }
  80%  { transform: rotate(45deg) scale(1.45); box-shadow: 0 0 14px rgba(192,90,46,.8), 0 0 30px rgba(158,62,29,.4); }
  100% { transform: rotate(45deg) scale(1.2); background: rgba(158,62,29,.9); border-color: rgba(232,228,224,.75);
         box-shadow: 0 0 7px rgba(192,90,46,.5); }
}
.timeline li::before {
  content: ""; position: absolute; top: -37px; left: 0;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--black); border: 1px solid var(--steel);
}
.tl-year { font-family: var(--font-head); color: var(--bone); font-size: 1.05rem; letter-spacing: .12em; display: block; margin-bottom: .5rem; }
.timeline p { font-size: .85rem; line-height: 1.6; }

/* ---------- members ---------- */
.members {
  list-style: none; margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.member {
  padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px);
  border-left: 1px solid rgba(157,163,170,.12);
  transition: background .5s var(--ease);
  position: relative;
}
.member:last-child { border-right: 1px solid rgba(157,163,170,.12); }
.member::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--ember), transparent); transition: width .6s var(--ease);
}
.member:hover { background: rgba(91,113,136,.05); }
.member:hover::after { width: 100%; }
.member-name { display: block; font-family: var(--font-head); color: var(--bone); font-size: 1.12rem; letter-spacing: .07em; margin-bottom: .4rem; }
.member-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .24em; color: var(--steel); }

/* old band photo — edges dissolve softly into the page background */
.bandphoto {
  max-width: 980px;
  margin: clamp(56px, 8vw, 96px) auto 0;
}
.bandphoto img {
  width: 100%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at center,
    #000 55%, rgba(0,0,0,.55) 74%, transparent 96%);
  mask-image: radial-gradient(ellipse 62% 58% at center,
    #000 55%, rgba(0,0,0,.55) 74%, transparent 96%);
}
.bandphoto figcaption {
  text-align: center; margin-top: .6rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel);
}

/* ---------- music player ---------- */
.player {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  background: linear-gradient(145deg, var(--charcoal), var(--midnight));
  border: 1px solid rgba(157,163,170,.1);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
}
.player-cover { aspect-ratio: 1; }
.player-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.player-album { font-size: .68rem; letter-spacing: .34em; color: var(--steel); margin-bottom: .5rem; }
.player-track { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.4rem; }

.waveform { height: 56px; margin-bottom: 1rem; opacity: .9; }
.waveform canvas { width: 100%; height: 100%; display: block; }

.player-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; font-size: .76rem; color: var(--steel); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 2px;
  background: rgba(157,163,170,.2); outline: none; cursor: pointer; border-radius: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bone); border: 1px solid var(--steel);
  box-shadow: 0 0 8px rgba(91,113,136,.5); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bone); border: 1px solid var(--steel); cursor: pointer;
}

.player-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-btn {
  background: none; border: 1px solid rgba(157,163,170,.2); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  transition: all .35s var(--ease);
}
.p-btn svg { width: 18px; height: 18px; fill: var(--ash); transition: fill .3s; }
.p-btn:hover { border-color: var(--steel); box-shadow: 0 0 14px rgba(91,113,136,.25); }
.p-btn:hover svg { fill: var(--bone); }
.p-play { width: 58px; height: 58px; border-color: rgba(158,62,29,.5); }
.p-play:hover { border-color: var(--ember); box-shadow: 0 0 18px rgba(158,62,29,.3); }
.p-play .ic-pause { display: none; }
.p-play.playing .ic-play { display: none; }
.p-play.playing .ic-pause { display: block; }

.p-volume { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 120px; max-width: 180px; margin-left: auto; }
.p-volume svg { width: 18px; height: 18px; fill: var(--steel); flex-shrink: 0; }

.player-note { font-size: .72rem; color: rgba(157,163,170,.5); margin-top: 1.2rem; letter-spacing: .04em; }
.player-note a { color: rgba(157,163,170,.7); letter-spacing: .08em; text-transform: uppercase; }
.player-note a:hover { color: var(--bone); }

/* SoundCloud click-to-load facade */
.sc-embed { min-height: 560px; display: grid; }
.sc-facade {
  display: grid; place-content: center; gap: 22px; text-align: center;
  padding: 32px; border: 1px solid rgba(157,163,170,.14);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(158,62,29,.06), transparent 60%),
    rgba(5,5,5,.5);
}
.sc-facade p { max-width: 420px; margin: 0 auto; font-size: .82rem; color: var(--ash); }
.sc-facade .btn { justify-self: center; }
/* custom dark player driven by the (hidden) SoundCloud widget */
.scp {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(157,163,170,.14);
  background: radial-gradient(ellipse at 50% 0%, rgba(158,62,29,.05), transparent 60%), rgba(5,5,5,.55);
  display: flex; flex-direction: column; justify-content: center;
}
.scp-now { display: flex; align-items: center; gap: 18px; margin-bottom: 1.3rem; }
.scp-cover {
  width: 84px; height: 84px; flex-shrink: 0;
  border: 1px solid rgba(157,163,170,.18);
  box-shadow: 0 8px 26px rgba(0,0,0,.55);
  overflow: hidden;
}
.scp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scp-title {
  font-family: var(--font-head); color: var(--bone);
  font-size: 1.1rem; letter-spacing: .06em;
  min-height: 1.5em; text-align: left;
}
@media (max-width: 860px) {
  .scp-now { flex-direction: column; gap: 12px; }
  .scp-title { text-align: center; }
}
.scp .playlist { max-height: 280px; overflow-y: auto; margin-top: 1.4rem; scrollbar-width: thin; scrollbar-color: rgba(91,113,136,.5) transparent; }
.scp .playlist::-webkit-scrollbar { width: 6px; }
.scp .playlist::-webkit-scrollbar-thumb { background: rgba(91,113,136,.4); }
.pl-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.playlist {
  grid-column: 1 / -1; list-style: none;
  border-top: 1px solid rgba(157,163,170,.12);
  margin-top: .5rem; padding-top: .5rem;
  max-height: 0; overflow: hidden; transition: max-height .6s var(--ease);
}
.playlist.open { max-height: 320px; }
.playlist li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 8px; font-size: .92rem; color: var(--ash); cursor: pointer;
  border-bottom: 1px solid rgba(157,163,170,.06);
  transition: color .3s, background .3s;
}
.playlist li:hover { color: var(--bone); background: rgba(91,113,136,.05); }
.playlist li.current { color: var(--bone); }
.playlist li.current .pl-no { color: var(--ember); }
.pl-no { font-size: .7rem; color: var(--steel); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.pl-time { margin-left: auto; font-size: .74rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.pl-placeholder { opacity: .45; cursor: default; font-style: italic; }

.music-tagline {
  text-align: center; margin: clamp(48px, 6vw, 72px) auto 2rem;
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .12em;
  color: var(--bone); line-height: 2;
}

/* ---------- artifacts ---------- */
.art-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px); margin-top: 2.5rem;
}
.art-card { cursor: pointer; }
.art-card .art-frame { aspect-ratio: 1; }
.art-card:hover .art-frame img { transform: scale(1.06); }
.art-card:hover .art-frame { border-color: rgba(91,113,136,.35); }
.art-meta { padding: 20px 4px 0; }
.art-meta h3 { margin-bottom: .3rem; }
.art-year { font-size: .68rem; text-transform: uppercase; letter-spacing: .28em; color: var(--ember); margin-bottom: .6rem; }
.art-meta p:last-child { font-size: .88rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,5,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: var(--ash); font-size: 2.4rem;
  cursor: pointer; line-height: 1; transition: color .3s;
}
.lb-close:hover { color: var(--bone); }
.lb-body {
  display: grid; grid-template-columns: minmax(280px, 560px) minmax(260px, 360px);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  max-width: 1100px; max-height: 88vh; overflow-y: auto;
}
.lb-image img { max-height: 76vh; object-fit: contain; }
.lb-info h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.lb-year { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ember); margin-bottom: 1.2rem; }
.lb-hint { margin-top: 1.6rem; font-size: .74rem; color: rgba(157,163,170,.45); font-style: italic; }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 2.5rem; }
.video-card h3 { margin-top: 18px; }
.video-year { font-size: .68rem; letter-spacing: .28em; color: var(--steel); text-transform: uppercase; margin: .3rem 0 .5rem; }
.video-card > p:last-child { font-size: .88rem; }

.video-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--charcoal); border: 1px solid rgba(157,163,170,.1);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease), opacity .5s; }
.video-card:hover .video-thumb img { transform: scale(1.05); opacity: .75; }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px;
  border-radius: 50%; border: 1px solid rgba(232,228,224,.4);
  background: rgba(5,5,5,.45); cursor: pointer; display: grid; place-items: center;
  transition: all .4s var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-play svg { width: 26px; height: 26px; fill: var(--bone); margin-left: 3px; }
.video-play:hover { border-color: var(--ember); box-shadow: 0 0 26px rgba(158,62,29,.35); transform: scale(1.06); }

/* ---------- archive ---------- */
.archive-list { margin-top: 2.5rem; border-top: 1px solid rgba(157,163,170,.14); }
.archive-item { border-bottom: 1px solid rgba(157,163,170,.14); }
.archive-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 8px;
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .1em;
  color: var(--bone); text-transform: uppercase;
  transition: color .3s, padding-left .4s var(--ease);
}
.archive-item summary::-webkit-details-marker { display: none; }
.archive-item summary:hover { color: var(--steel); padding-left: 16px; }
.arc-marker { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.arc-marker::before, .arc-marker::after {
  content: ""; position: absolute; background: var(--steel); transition: transform .4s var(--ease);
}
.arc-marker::before { top: 50%; left: 0; right: 0; height: 1px; }
.arc-marker::after { left: 50%; top: 0; bottom: 0; width: 1px; }
.archive-item[open] .arc-marker::after { transform: scaleY(0); }
.archive-item p { padding: 0 8px 28px; max-width: 640px; font-size: .95rem; }

/* ---------- forms ---------- */
.dark-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dark-form label { display: block; margin-bottom: 20px; }
.dark-form label > span {
  display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .26em;
  color: var(--steel); margin-bottom: 8px;
}
.dark-form input[type="text"],
.dark-form input[type="email"],
.dark-form input[type="url"],
.dark-form textarea {
  width: 100%; background: rgba(17,17,17,.7);
  border: 1px solid rgba(157,163,170,.18); border-radius: 2px;
  color: var(--bone); font-family: var(--font-body); font-size: .95rem;
  padding: 13px 14px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.dark-form textarea { resize: vertical; }
.dark-form input:focus, .dark-form textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 12px rgba(91,113,136,.2);
}

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex !important; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--ember); flex-shrink: 0; }
.consent span { font-size: .82rem !important; text-transform: none !important; letter-spacing: .02em !important; color: var(--ash) !important; line-height: 1.6; }

.form-status { margin-top: 16px; font-size: .85rem; color: var(--steel); min-height: 1.4em; }
.form-status.ok { color: var(--bone); font-weight: 700; letter-spacing: .04em; }
.form-status.err { color: #b06a55; }
.privacy-note { margin-top: 14px; font-size: .72rem; color: rgba(157,163,170,.5); line-height: 1.6; }

/* ---------- guestbook entries ---------- */
.gb-entries { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 22px; }
.gb-entry {
  background: linear-gradient(145deg, rgba(17,17,17,.85), rgba(13,17,24,.85));
  border: 1px solid rgba(157,163,170,.1); border-left: 2px solid rgba(158,62,29,.5);
  padding: 26px 30px;
}
.gb-entry p { font-family: var(--font-head); color: var(--bone); font-size: 1.02rem; letter-spacing: .03em; margin-bottom: .8rem; }
.gb-entry footer { font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--steel); }

/* ---------- social big ---------- */
.social-big { display: flex; justify-content: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin: 3rem 0; }
.sb {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--ash); font-size: .7rem; text-transform: uppercase; letter-spacing: .3em;
  padding: 28px 34px; border: 1px solid rgba(157,163,170,.1);
  transition: all .5s var(--ease); min-width: 150px;
}
.sb svg { width: 34px; height: 34px; fill: var(--ash); transition: all .5s var(--ease); }
.sb:hover { color: var(--bone); }
.sb-silver:hover { border-color: rgba(232,228,224,.4); box-shadow: 0 0 30px rgba(232,228,224,.12); }
.sb-silver:hover svg { fill: var(--bone); filter: drop-shadow(0 0 10px rgba(232,228,224,.55)); }
.sb-ember:hover { border-color: rgba(158,62,29,.6); box-shadow: 0 0 30px rgba(158,62,29,.2); }
.sb-ember:hover svg { fill: #c9663f; filter: drop-shadow(0 0 10px rgba(158,62,29,.6)); }
.sb-metal:hover { border-color: rgba(91,113,136,.6); box-shadow: 0 0 30px rgba(91,113,136,.2); }
.sb-metal:hover svg { fill: var(--steel); filter: drop-shadow(0 0 10px rgba(91,113,136,.7)); transform: skewX(-4deg); }
.sb-smoke:hover { border-color: rgba(157,163,170,.4); box-shadow: 0 0 36px rgba(157,163,170,.14); }
.sb-smoke:hover svg { fill: var(--bone); filter: blur(.4px) drop-shadow(0 0 12px rgba(157,163,170,.5)); }

.social-quote {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--steel); letter-spacing: .18em; text-transform: uppercase; line-height: 2.2;
}

/* ---------- contact ---------- */
.mail-link { color: var(--bone); border-bottom: 1px solid rgba(91,113,136,.4); padding-bottom: 1px; }
.mail-link:hover { border-color: var(--ember); }
.legal-links { margin-top: 3rem; display: flex; gap: 28px; font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; }
.legal-links a { color: rgba(157,163,170,.6); }
.legal-links a:hover { color: var(--bone); }

/* ---------- footer ---------- */
#site-footer {
  background: var(--black); border-top: 1px solid rgba(157,163,170,.08);
  padding: clamp(60px, 8vw, 90px) 0 40px;
}
.footer-logo { height: 54px; width: auto; margin: 0 auto 1.8rem; opacity: .55; filter: grayscale(1) brightness(.85); }
.footer-text { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); line-height: 2.4; margin-bottom: 2rem; }
.footer-social { justify-content: center; margin-bottom: 2rem; gap: 20px; }
.footer-legal { font-size: .68rem; letter-spacing: .12em; color: rgba(157,163,170,.4); }
.footer-legal a { color: rgba(157,163,170,.55); }
.footer-legal a:hover { color: var(--bone); }

/* ---------- legal pages ---------- */
.legal-page { padding: calc(var(--header-h) + 60px) 0 100px; }
.legal-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.1rem; margin-top: 2.5rem; }
.legal-page h2::after { display: none; }
.legal-page p { margin-bottom: 1rem; max-width: 720px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding-top: 0; }
  .timeline::before { top: 0; bottom: 0; left: 3px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(91,113,136,.5) 10%, rgba(91,113,136,.5) 90%, transparent); }
  .timeline { display: block; }
  .timeline li { padding: 0 0 30px 30px; }
  .timeline::after { top: 0; bottom: 0; left: 3px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--ember) 12%, #c05a2e);
    transform: scaleY(0); transform-origin: top; }
  .timeline.lit::after { animation: tl-draw-v 2.4s var(--ease) .2s forwards; }
  .timeline li::before { top: 6px; left: 0; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .member:nth-child(even) { border-right: 1px solid rgba(157,163,170,.12); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-body { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 860px) {
  #main-nav {
    /* header's backdrop-filter makes it the containing block for this
       fixed element, so size against the viewport explicitly */
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    z-index: 105;
    background: rgba(5,5,5,.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  #main-nav.open { opacity: 1; visibility: visible; }
  #main-nav ul { flex-direction: column; text-align: center; gap: 30px; }
  #main-nav a { font-size: 1rem; letter-spacing: .34em; }
  #menu-toggle { display: block; }
  .header-social { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-art { order: -1; }
  .player { grid-template-columns: 1fr; }
  .player-cover { max-width: 320px; margin: 0 auto; }
  .player-main { text-align: center; }
  .player-controls { justify-content: center; }
  .p-volume { margin: 0 auto; }
  .video-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand .logo-img { height: 36px; }
  .art-grid { grid-template-columns: 1fr; }
  .members { grid-template-columns: 1fr; }
  .member { border-right: 1px solid rgba(157,163,170,.12); }
  .hero-cta .btn { width: 100%; text-align: center; }
  .social-big { gap: 14px; }
  .sb { min-width: calc(50% - 8px); padding: 22px 10px; }
}

/* ============================================================
   PREMIUM LAYER — grain, lightning, metal sheen, cursor,
   tilt, EQ, progress line, scrollbar, back-to-top
   ============================================================ */

/* film grain over everything — the cinematic glue */
.grain {
  position: fixed; inset: -100%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .045;
  animation: grain-shift .9s steps(5) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-8%, 6%); }
  40%  { transform: translate(5%, -9%); }
  60%  { transform: translate(-4%, -5%); }
  80%  { transform: translate(9%, 4%); }
  100% { transform: translate(0, 0); }
}

/* distant storm light in the hero sky */
.hero-lightning {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 42% at 50% 16%,
    rgba(232,228,224,.55), rgba(91,113,136,.18) 55%, transparent 78%);
  opacity: 0;
  transition: opacity 140ms ease-out;
}

/* brushed-metal headlines with a one-time light sweep on reveal */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h2 {
    background: linear-gradient(100deg,
      #b9b3aa 0%, #f0ece6 20%, #a49e96 42%, #ddd8d1 64%, #c4beb5 85%, #b0aaa1 100%);
    background-size: 220% 100%; background-position: 0% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  h2.reveal.visible { animation: metal-sheen 2.2s var(--ease) .25s both; }
}
@keyframes metal-sheen {
  from { background-position: 130% 0; }
  to   { background-position: 0% 0; }
}

/* ember cursor glow (desktop only, element removed on touch) */
#cursor-glow {
  position: fixed; left: 0; top: 0; width: 340px; height: 340px;
  border-radius: 50%; pointer-events: none; z-index: 60;
  background: radial-gradient(circle,
    rgba(158,62,29,.13), rgba(158,62,29,.05) 45%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .5s ease, scale .45s var(--ease);
  will-change: transform;
}
#cursor-glow.hot { scale: 1.45; background: radial-gradient(circle,
    rgba(158,62,29,.2), rgba(158,62,29,.07) 45%, transparent 70%); }

/* 3D tilt with specular glare on covers and video cards */
.tilt { transition: transform .4s var(--ease); transform-style: preserve-3d; position: relative; }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.video-play { z-index: 3; }

/* equalizer bars on the playing track + pulsing play button */
.eq { display: none; align-items: flex-end; gap: 2px; height: 12px; flex-shrink: 0; }
.eq i { width: 3px; background: var(--ember); transform-origin: bottom; animation: eqbar .9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 8px;  animation-delay: -.32s; }
.eq i:nth-child(2) { height: 12px; animation-delay: -.62s; }
.eq i:nth-child(3) { height: 6px; }
@keyframes eqbar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.scp.playing .playlist li.current .eq { display: inline-flex; }
.scp.playing .p-play { border-color: rgba(158,62,29,.8); animation: playpulse 2.6s ease-in-out infinite; }
@keyframes playpulse {
  0%, 100% { box-shadow: 0 0 0 rgba(158,62,29,0); }
  50%      { box-shadow: 0 0 22px rgba(158,62,29,.42); }
}

/* reading progress line under the header bar */
#scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blood), var(--ember));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* page scrollbar in theme colors */
html { scrollbar-color: rgba(91,113,136,.45) #070707; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #070707; }
::-webkit-scrollbar-thumb { background: #2a3542; border-radius: 5px; border: 2px solid #070707; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

/* back to top */
#to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(157,163,170,.25); background: rgba(5,5,5,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ash); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .45s var(--ease);
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top svg { width: 16px; height: 16px; fill: currentColor; }
#to-top:hover { color: var(--bone); border-color: var(--steel); box-shadow: 0 0 16px rgba(91,113,136,.3); }

@keyframes tl-draw-v { to { transform: scaleY(1); } }

/* mobile fix: allow the custom player to shrink inside its grid cell —
   range inputs & flex rows otherwise enforce a min-content width that
   overflows narrow screens */
.scp { min-width: 0; max-width: 100%; }
.scp input[type="range"] { min-width: 0; width: 100%; }
.scp-title { min-width: 0; overflow-wrap: anywhere; }
.scp-now { min-width: 0; }
.player-progress { min-width: 0; }
@media (max-width: 560px) {
  .scp { padding: 18px 14px; }
  .p-volume { margin-left: 0; }
}
