/* ============================================================
   Deconstructing Expectation — landing page
   Palette pulled from the artwork: charcoal greys, off-white,
   a single warm amber accent (the orange targeting line),
   and a cold "blue-light" undertone used sparingly.
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e11;
  --panel: #141417;
  --panel-2: #1a1a1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e9e6e1;
  --muted: #9a989f;
  --faint: #6c6a72;

  --amber: #cf9b54;
  --amber-soft: #e0b275;
  --amber-dim: rgba(207, 155, 84, 0.14);
  --cold: #6f97b3;

  --maxw: 1120px;
  --player-h: 84px;

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--player-h) + 8px);
  overflow-x: hidden;
}

/* faint fractured texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(207,155,84,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(111,151,179,0.05), transparent 55%);
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> is a passthrough wrapper — let the inner <img> size against the real container */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

em { color: var(--amber-soft); font-style: italic; }
strong { color: #fff; font-weight: 600; }

/* ---------- shared atoms ---------- */
.label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.label--accent { color: var(--amber); }

.kicker {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn--solid {
  background: var(--amber);
  color: #15110a;
  font-weight: 500;
}
.btn--solid:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 0.85rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(10, 10, 11, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
/* Always-on dark scrim fading top→bottom, so the transparent
   topbar stays legible over the hero even at the very top. */
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.55) 45%, rgba(5, 5, 6, 0) 100%);
  transition: opacity 0.35s ease;
}
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.nav__tag {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
}
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--amber); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  filter: grayscale(0.25) contrast(1.05) brightness(0.62);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.7) 0%, rgba(5,5,6,0.18) 16%, transparent 30%),
    linear-gradient(90deg, rgba(8,8,9,0.95) 0%, rgba(8,8,9,0.78) 38%, rgba(8,8,9,0.28) 70%, rgba(8,8,9,0.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 30%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  margin-left: max(0px, calc((100vw - var(--maxw)) / 2));
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.hero__sub {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  margin-bottom: 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__arc {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  max-width: 600px;
}
.hero__arc li {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__arc li span { color: var(--amber); margin-right: 0.4rem; }

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--faint), transparent);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 14px;
  background: var(--amber);
  animation: scrolldot 2.2s infinite ease-in-out;
}
@keyframes scrolldot {
  0% { transform: translateY(-14px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
}
.section__head { max-width: 760px; margin-bottom: 3rem; }
.section__head h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: 1rem;
}
.section__note { color: var(--muted); margin-top: 1rem; font-weight: 300; }

.prose { max-width: 680px; }
.prose p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.04rem; }
.prose p:last-child { margin-bottom: 0; }

/* dividers between major sections */
.section + .section { border-top: 1px solid var(--line); }

/* throughline cards */
.throughlines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.7rem 0 0.8rem;
}
.card p { color: var(--muted); font-weight: 300; }

.pullquote {
  margin: 3.5rem 0 0;
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.8rem;
  max-width: 760px;
}
.pullquote blockquote {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--text);
}
.pullquote figcaption {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 1rem;
}

/* ============================================================
   ALBUM + TRACKLIST
   ============================================================ */
.section--album { scroll-margin-top: 70px; }
.album {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.6rem;
  align-items: start;
}
.album__cover { position: sticky; top: 100px; }
.album__cover img {
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.album__meta { margin-top: 1.2rem; }
.album__name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.album__by {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.3rem;
}

.tracklist { list-style: none; }
.track {
  border-bottom: 1px solid var(--line);
}
.track:first-child { border-top: 1px solid var(--line); }
.track__row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.4rem;
  cursor: pointer;
  transition: background 0.25s ease, padding 0.25s ease;
}
.track__row:hover { background: rgba(255,255,255,0.025); padding-left: 0.9rem; padding-right: 0.9rem; }
.track.is-active .track__row { background: var(--amber-dim); padding-left: 0.9rem; padding-right: 0.9rem; }

.track__num {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--faint);
  position: relative;
}
.track.is-active .track__num { color: var(--amber); }

/* equalizer shown when playing */
.track__eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.track.is-playing .track__eq { display: flex; }
.track.is-playing .track__num span { display: none; }
.track__eq i {
  width: 2px; background: var(--amber); height: 30%;
  animation: eq 0.9s infinite ease-in-out;
}
.track__eq i:nth-child(2) { animation-delay: 0.2s; }
.track__eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.track__main { min-width: 0; }
.track__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.track.is-active .track__title { color: var(--amber-soft); }
.track__stage {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.25rem;
}
.track__actions { display: flex; align-items: center; gap: 0.4rem; }
.track__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.track__btn:hover { border-color: var(--amber); color: var(--amber); }
.track__btn svg { width: 15px; height: 15px; fill: currentColor; }
.track__lyrics-toggle {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}
.track__lyrics-toggle:hover { color: var(--amber); }

.track__soon {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cold);
  border: 1px solid rgba(111,151,179,0.4);
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
}

/* lyrics drawer */
.track__lyrics {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.track__lyrics-inner {
  padding: 0.4rem 0.4rem 2rem 3.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.lyrics__text {
  white-space: pre-wrap;
  font-size: 0.98rem;
  line-height: 1.85;
  color: #cfccd4;
  font-weight: 300;
}
.lyrics__head {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.lyrics__more {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.lyrics__more a { color: var(--amber); }
.lyrics__more a:hover { text-decoration: underline; }
.tracklist-fallback {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.tracklist-fallback a { color: var(--amber); }
.tracklist-fallback a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .track__lyrics-inner { padding-left: 0.4rem; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.process__item {
  background: var(--bg-2);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.process__k {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.process__v { color: var(--muted); font-size: 0.95rem; font-weight: 300; }

/* ============================================================
   COLLABORATE
   ============================================================ */
.section--collab { max-width: none; padding: 0; }
.collab {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(207,155,84,0.10), transparent 65%);
  border-top: 1px solid var(--line);
}
.collab h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 1rem 0 1.8rem;
}
.collab .prose { margin: 0 auto 2.4rem; text-align: left; }
.collab .prose p { font-size: 1.06rem; }
.collab__hint {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 1.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem 4.5rem;
  border-top: 1px solid var(--line);
}
.footer__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.footer__sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; font-weight: 300; }
.footer__credit {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.8rem;
}
.footer__note {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-top: 0.55rem;
}
.footer__note a { color: var(--amber); transition: color 0.2s ease; }
.footer__note a:hover { color: var(--amber-soft); }

/* ============================================================
   STICKY PLAYER
   ============================================================ */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1.4fr);
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(14, 14, 17, 0.92);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  transform: translateY(120%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.player.is-visible { transform: translateY(0); }

.player__track { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.player__art {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: none; padding: 0; cursor: pointer;
}
.player__art img { width: 100%; height: 100%; object-fit: cover; }
.player__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.player__num {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.player__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__stage {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.player__controls { display: flex; align-items: center; gap: 0.6rem; }
.pctrl {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--muted);
  width: 38px; height: 38px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.pctrl:hover { color: var(--text); }
.pctrl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pctrl--play {
  background: var(--amber);
  color: #15110a;
  border-radius: 50%;
  width: 46px; height: 46px;
}
.pctrl--play:hover { background: var(--amber-soft); transform: scale(1.05); color: #15110a; }
.pctrl--play svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }

.player__seek { display: flex; align-items: center; gap: 0.75rem; }
.player__time {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--faint);
  min-width: 34px;
  text-align: center;
}
.seek {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  cursor: pointer;
}
.seek__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--amber);
  border-radius: 2px;
}
.seek__handle {
  position: absolute; top: 50%; left: 0;
  width: 11px; height: 11px;
  background: var(--amber-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.seek:hover .seek__handle { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .album { grid-template-columns: 1fr; }
  .album__cover { position: static; max-width: 320px; }
  .player { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.5rem 1rem; height: auto; padding: 0.7rem clamp(1rem, 3vw, 2rem); }
  .player__seek { grid-column: 1 / -1; }
  body { padding-bottom: 130px; }
}

@media (max-width: 520px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .track__row { grid-template-columns: 1.8rem 1fr auto; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

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