/* =====================================================
   Bassline Generation
   Visual reference: lola-young.com / mixpakrecords.com
   White ground, mono body, drifting hero logo,
   strike-through hover signature.
   ===================================================== */

:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --ink-mute: #6a6a6a;
  --rule: rgba(17, 17, 17, 0.18);
  --rule-soft: rgba(17, 17, 17, 0.08);
  --bg-dark: #0a0a0a;
  --bg-dark-soft: #141414;
  --accent: #d83b2a;
  /* Marker silver-grey used for every strike-through (hovers + loader) */
  --strike: #a8a8a8;

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-italic: 'Fraunces', 'Times New Roman', Times, serif;

  --max-w: 1080px;
  --header-h: 132px;
  --logo-progress: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Universal strike-through hover for inline links inside copy blocks */
.bio-body a,
.contact-tag a {
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.18s ease;
  font-weight: 500;
}
.bio-body a:hover,
.bio-body a:focus-visible,
.contact-tag a:hover,
.contact-tag a:focus-visible {
  text-decoration-color: var(--strike);
  outline: none;
}

/* =====================================================
   LOADING OVERLAY
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-line {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 76px);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding: 0 24px;
  text-align: center;
  opacity: 0;
  animation: loaderFade 1.4s ease-out 0.1s forwards;
}
.loader-strike {
  position: relative;
  display: inline-block;
}
.loader-strike::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: 3px;
  width: 0;
  background: var(--strike);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  animation: loaderStrike 0.55s cubic-bezier(0.7, 0, 0.3, 1) 1.4s forwards;
}
@keyframes loaderFade {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes loaderStrike {
  0%   { width: 0; }
  100% { width: 112%; }
}

/* =====================================================
   STICKY MENU + LOGO — scroll-driven
   Initial: menu at top of page, logo BIG below the menu (above the quote).
   Final:   logo small at very top, menu pushed down below it.
   The logo's z-index is higher so its rise visually sweeps past the menu.
   ===================================================== */
.site-nav {
  position: fixed;
  top: calc(var(--logo-progress, 0) * 66px); /* 0 → 66 */
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  transition: top 0.05s linear;
}
.primary-nav {
  display: flex;
  gap: clamp(36px, 7vw, 80px);
  flex-wrap: wrap;
  justify-content: center;
}
.primary-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 2px;
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.18s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  text-decoration-color: var(--strike);
  outline: none;
}

.logo-hero {
  position: fixed;
  /* Initial: top:44 (just below the slim menu at 0–44) */
  /* Final:   top:0  (anchored at the very top, above the docked menu) */
  top: calc(44px - var(--logo-progress, 0) * 44px); /* 44 → 0 */
  left: 0;
  right: 0;
  z-index: 102;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: top 0.05s linear;
  /* White panel that abuts the menu's white panel — no gaps,
     no body content bleeding through above or below the logo. */
  background: var(--white);
  /* Logo sits visibly lower on entry */
  padding-top: calc(130px - var(--logo-progress, 0) * 116px);  /* 130 → 14 */
  padding-bottom: calc(32px - var(--logo-progress, 0) * 18px); /* 32 → 14 */
}
.logo-hero__link {
  display: block;
  pointer-events: auto;
  margin: 0 auto;
  width: calc(440px - var(--logo-progress, 0) * 300px);  /* 440 → 140 */
  max-width: 90vw;
  transition: width 0.05s linear;
}
.logo-hero__img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  /* Stays in lock-step with the symmetric logo paddings:
     final logo panel ends at 0 + 14 + 46 + 14 = 74, menu docks just below. */
}

body {
  /* Initial: menu(44) + pad(130) + img(120) + pad(32) = 326
     Final:   pad(14) + img(38) + pad(14) + menu(44) = 110 */
  padding-top: calc(326px - var(--logo-progress, 0) * 216px); /* 326 → 110 */
}

/* Hero (Douglas Adams quote) — top padding zeroed so the quote begins
   right under the logo panel. */
.section.section--hero {
  padding-top: 0;
}

/* =====================================================
   SECTION SCAFFOLDING
   ===================================================== */
.section {
  padding: clamp(72px, 11vw, 140px) 24px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-inner--narrow {
  max-width: 760px;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 32px;
  color: var(--ink);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}
.section-eyebrow--light {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* =====================================================
   QUOTE (Music section opener)
   ===================================================== */
.quote {
  margin: 0 auto clamp(48px, 7vw, 80px);
  max-width: 760px;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(32px, 5vw, 56px) 16px;
}
.quote p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: 0.005em;
}
.quote cite {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =====================================================
   MUSIC — SoundCloud Track List
   ===================================================== */
.section--music {
  padding-top: clamp(40px, 6vw, 80px);
}

.sc-tabs {
  display: flex;
  gap: clamp(24px, 4vw, 40px);
  margin: 8px 0 0;
  border-bottom: 1px solid var(--rule);
}
.sc-tab {
  background: none;
  border: 0;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease;
}
.sc-tab:hover {
  color: var(--ink);
}
.sc-tab.is-active {
  color: var(--ink);
}
.sc-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

.sc-tracks {
  margin-top: 0;
  border-top: 0;
}
.sc-tracks__loading,
.sc-tracks__error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-mute);
  padding: 24px 4px;
  text-align: center;
}

.sc-track {
  display: grid;
  grid-template-columns: 64px 36px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.2s ease, background 0.2s ease;
}
.sc-track:hover {
  padding-left: 12px;
  background: rgba(0, 0, 0, 0.02);
}
.sc-track.is-active {
  background: rgba(0, 0, 0, 0.04);
}
.sc-track__art {
  width: 64px;
  height: 64px;
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
}
.sc-track__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-track__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  padding: 0;
}
.sc-track__play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.sc-track:hover .sc-track__play,
.sc-track.is-active .sc-track__play {
  background: var(--ink);
  color: var(--white);
}
.sc-track__meta {
  min-width: 0;
}
.sc-track__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-track__artist {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-mute);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.sc-track__time {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* =====================================================
   TICKER — infinite horizontal scroll under the music section
   ===================================================== */
.ticker {
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--white);
  padding: 18px 0;
  margin: clamp(40px, 6vw, 80px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}
.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 32px;
}
.ticker__item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  padding: 0 28px;
}
.ticker__item--lead {
  font-weight: 900;
  letter-spacing: -0.02em;
}
.ticker__sep {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--strike);
}
@keyframes tickerScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* =====================================================
   ABOUT — Bios + portraits
   ===================================================== */
.section--about {
  background: transparent;
  text-align: left;
}
.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin: 0 0 clamp(48px, 7vw, 80px);
  align-items: start;
}
.bio--reverse {
  grid-template-columns: 1fr 220px;
}
.bio--reverse .bio-portrait {
  order: 2;
}
.bio-portrait {
  margin: 0;
}
.bio-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0f0f0;
}
.bio-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
}
.bio-aka {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6em;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-left: 4px;
}
.bio-body p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}
.bio-listen {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.bio-listen__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bio-listen a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.18s ease;
}
.bio-listen a:hover,
.bio-listen a:focus-visible {
  text-decoration-color: var(--strike);
  outline: none;
}

.bio-feature {
  margin: 0 0 clamp(48px, 7vw, 80px);
}
.bio-feature img {
  width: 100%;
  height: auto;
  filter: grayscale(20%) contrast(1.05);
}

/* =====================================================
   CONTACT (dark)
   ===================================================== */
.section--contact {
  background: var(--bg-dark);
  color: var(--white);
  text-align: left;
}
.contact-logo {
  display: block;
  width: 280px;
  max-width: 60%;
  height: auto;
  margin: 40px auto 0;
  filter: invert(1);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 40px;
  margin: 0 0 56px;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}
.contact-value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--white);
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.2s ease;
  word-break: break-word;
}
.contact-value:hover,
.contact-value:focus-visible {
  text-decoration-color: var(--strike);
  outline: none;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.social {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.2s ease;
}
.social:hover,
.social:focus-visible {
  text-decoration-color: var(--strike);
  outline: none;
}
.contact-tag {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  margin: 36px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 28px 24px calc(36px + var(--bar-height, 0px));
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer p { margin: 0; }

/* =====================================================
   HIDDEN SOUNDCLOUD WIDGET (audio source only)
   ===================================================== */
.sc-widget {
  position: fixed;
  width: 1px;
  height: 1px;
  border: 0;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   BAR PLAYER (sticky bottom, dark)
   ===================================================== */
:root {
  --bar-bg: #0a0a0a;
  --bar-height: 70px;
  --bar-text: #ffffff;
  --bar-text-dim: #999999;
  --bar-text-faint: #555555;
  --bar-accent: #ffffff;
  --bar-surface: #181818;
  --wave-unplayed: #2a2a2a;
  --wave-played: #ffffff;
}
.bar-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-height);
  background: var(--bar-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 1000;
  font-family: var(--font-body);
  color: var(--bar-text);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.bar-player[hidden] { display: none; }
.bar-player.is-visible { transform: translateY(0); }

.bar-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  max-width: 280px;
  flex-shrink: 0;
}
.bar-art {
  width: 46px;
  height: 46px;
  background: var(--bar-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--bar-text-dim);
}
.bar-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bar-meta {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bar-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-artist {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--bar-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.bar-btn {
  background: none;
  border: none;
  color: var(--bar-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.bar-btn:hover { color: var(--bar-text); }
.bar-btn:active { transform: scale(0.92); }
.bar-btn-sm { width: 34px; height: 34px; }
.bar-btn-play {
  width: 38px;
  height: 38px;
  background: var(--bar-accent);
  color: #000;
  margin: 0 2px;
}
.bar-btn-play:hover { background: #e6e6e6; color: #000; }

.bar-waveform-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bar-time {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--bar-text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
}
.bar-time--total { text-align: left; }
.bar-waveform {
  flex: 1;
  height: 40px;
  cursor: pointer;
  position: relative;
}
#waveformCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 720px) {
  .site-nav {
    height: 38px;
    top: calc(var(--logo-progress, 0) * 54px);
  }
  .logo-hero {
    top: calc(38px - var(--logo-progress, 0) * 38px); /* 38 → 0 */
    padding-top: calc(110px - var(--logo-progress, 0) * 98px);   /* 110 → 12 */
    padding-bottom: calc(24px - var(--logo-progress, 0) * 12px); /* 24 → 12 */
  }
  .logo-hero__link {
    /* Mobile: 75vw initial, capped at 380, shrinking to 110px when docked. */
    width: calc(75vw - var(--logo-progress, 0) * (75vw - 110px));
    max-width: 380px;
    margin: 0 auto;
  }
  .logo-hero__img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  body {
    padding-top: calc(268px - var(--logo-progress, 0) * 176px); /* 268 → 92 */
  }
  .primary-nav { gap: 22px; }
  .primary-nav a { font-size: 11px; letter-spacing: 0.14em; }

  .ticker { padding: 12px 0; margin: clamp(28px, 5vw, 48px) 0; }
  .ticker__item { padding: 0 16px; }
  .ticker__group { padding-right: 18px; }

  .bio,
  .bio--reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bio--reverse .bio-portrait { order: 0; }
  /* Full-width portraits on mobile (no 280px cap) */
  .bio-portrait {
    width: 100%;
  }
  .bio-portrait img {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .contact-grid { gap: 24px; }

  .bar-track { min-width: 0; max-width: 160px; }
  .bar-artist { display: none; }
  .bar-time--total { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Hold the ticker at a static frame instead of running */
  .ticker__track { animation: none; }
}
