/* ========================================
   WALTER LAWRENCE — WalterLawrence.com
   Design System: Modern with nostalgic warmth
   ======================================== */

/* --- DESIGN TOKENS --- */
:root {
  --bg-deep:      #0a0e17;
  --bg-surface:   #111827;
  --navy:         #1a3a5c;
  --navy-light:   #1e4976;
  --paper:        #f5e6d3;
  --paper-dim:    #d4c4b0;
  --cherry:       #ff4757;
  --cherry-glow:  rgba(255, 71, 87, 0.15);
  --amber:        #ffa502;
  --amber-glow:   rgba(255, 165, 2, 0.12);
  --aim-green:    #5fd3bc;
  --ink:          #f0ece4;
  --ink-muted:    #9ca3af;
  --ink-dim:      #6b7280;
  --line:         rgba(255, 255, 255, 0.08);
  --line-warm:    rgba(245, 230, 211, 0.1);

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-hand:    'Caveat', cursive;
  --font-pixel:   'VT323', monospace;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.wrap {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

/* --- FILM GRAIN OVERLAY --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* --- NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-smooth),
              background 300ms var(--ease-smooth);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 23, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: opacity 200ms;
}

.brand-icon {
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.8;
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 200ms;
}

.menu a:hover {
  color: var(--ink);
}

.btn-nav {
  background: var(--cherry);
  color: var(--ink) !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: transform 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--cherry-glow);
  color: var(--ink) !important;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.7) brightness(0.35);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 14, 23, 0.4) 0%,
      rgba(10, 14, 23, 0.2) 40%,
      rgba(10, 14, 23, 0.6) 70%,
      rgba(10, 14, 23, 1) 100%
    ),
    radial-gradient(ellipse at 50% 80%, var(--amber-glow), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0 80px;
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--aim-green);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--ink) 40%, var(--paper-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--paper-dim);
  max-width: 42ch;
  margin: 0 auto 36px;
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--cherry);
  color: #fff;
}

.btn.primary:hover {
  box-shadow: 0 8px 32px var(--cherry-glow);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--ink-muted), transparent);
  animation: scrollPulse 2s var(--ease-smooth) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- PULL QUOTE DIVIDER --- */
.quote-divider {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.quote-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
  pointer-events: none;
}

.pull-quote {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--paper);
  position: relative;
  font-weight: 500;
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.polaroid {
  background: var(--paper);
  padding: 12px 12px 40px 12px;
  border-radius: 2px;
  transform: rotate(-2deg);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    0 1px 4px rgba(0,0,0,0.2);
  transition: transform 500ms var(--ease-out);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid img {
  width: 100%;
  border-radius: 1px;
  filter: saturate(0.85) contrast(1.05);
}

.about-text .eyebrow {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-text p {
  color: var(--ink-muted);
  margin-bottom: 16px;
  max-width: 56ch;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-cta-text {
  color: var(--paper) !important;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 8px !important;
}

/* --- MUSIC SECTION --- */
.music {
  padding: 100px 0 120px;
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 30%, var(--bg-surface) 70%, var(--bg-deep) 100%);
}

.album-feature {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 64px;
  align-items: start;
}

.album-art-wrap {
  position: sticky;
  top: 100px;
}

.album-art {
  width: 100%;
  border-radius: 4px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 400ms var(--ease-out),
              box-shadow 400ms var(--ease-out);
}

.album-art:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.album-info .eyebrow {
  margin-bottom: 12px;
}

.album-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.album-desc {
  color: var(--ink-muted);
  margin-bottom: 36px;
  max-width: 60ch;
  font-size: 1.05rem;
}

/* Tracklist */
.tracklist {
  list-style: none;
  counter-reset: track;
  border-top: 1px solid var(--line);
}

.tracklist li {
  counter-increment: track;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 200ms;
  user-select: none;
}

.tracklist li:hover {
  color: var(--ink);
}

.tracklist li::before {
  content: counter(track, decimal-leading-zero);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.track-title {
  transition: color 200ms;
}

.track-arrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-dim);
  transition: transform 300ms var(--ease-out), color 200ms;
  justify-self: end;
}

.tracklist li.open .track-arrow {
  transform: rotate(45deg);
  color: var(--cherry);
}

.tracklist li.open {
  color: var(--ink);
}

.track-desc {
  grid-column: 2 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 1.5rem;
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--paper-dim);
  line-height: 1.5;
  margin: 0;
  transition: max-height 400ms var(--ease-out),
              opacity 300ms var(--ease-out),
              margin 300ms var(--ease-out);
}

.tracklist li.open .track-desc {
  max-height: 240px;
  opacity: 1;
  margin-top: 8px;
}

.tracklist .hidden-track {
  color: var(--ink-dim);
}

.tracklist .hidden-track .track-title {
  font-style: italic;
}

.track-note {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--aim-green);
  grid-column: 2;
  margin-top: -4px;
}

/* --- LISTEN / STREAMING SECTION --- */
.listen {
  padding: 100px 0;
  text-align: center;
}

.listen .eyebrow {
  margin-bottom: 12px;
}

.listen h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 40px;
}

.streaming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.stream-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-muted);
  transition: border-color 200ms,
              color 200ms,
              background 200ms,
              transform 200ms var(--ease-out);
}

.stream-link:hover {
  border-color: var(--cherry);
  color: var(--ink);
  background: var(--cherry-glow);
  transform: translateY(-2px);
}

.stream-link span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Secondary streaming links */
.streaming-secondary {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.stream-link-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 200ms;
}

.stream-link-sm:hover {
  color: var(--ink);
}

/* --- SKYLINE DIVIDER --- */
.skyline-divider {
  width: 100%;
  overflow: hidden;
  margin: -1px 0;
  line-height: 0;
}

.skyline-img {
  width: 100%;
  height: auto;
  opacity: 0.6;
  filter: saturate(0.8);
}

/* --- FOOTER --- */
.footer {
  padding: 48px 0 32px;
  background: var(--bg-deep);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--ink-dim);
  transition: color 200ms, transform 200ms var(--ease-out);
}

.footer-socials a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-label {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.footer-label a {
  color: var(--aim-green);
  font-weight: 600;
  transition: opacity 200ms;
}

.footer-label a:hover {
  opacity: 0.8;
}

.footer-contact a {
  font-size: 0.85rem;
  color: var(--ink-dim);
  transition: color 200ms;
}

.footer-contact a:hover {
  color: var(--ink);
}

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal.in-view .about-image { transition-delay: 0ms; }
.reveal.in-view .about-text { transition-delay: 150ms; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .album-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .album-art-wrap {
    position: relative;
    top: auto;
    max-width: 400px;
    margin: 0 auto;
  }

  .streaming-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .streaming-secondary {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav {
    height: 60px;
  }

  .menu {
    gap: 18px;
  }

  .menu a:not(.btn-nav) {
    font-size: 0.82rem;
  }

  .btn-nav {
    padding: 6px 16px;
    font-size: 0.8rem !important;
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .section {
    padding: 72px 0;
  }

  .about, .music, .listen {
    padding: 72px 0;
  }

  .quote-divider {
    padding: 56px 0;
  }

  .polaroid {
    padding: 8px 8px 28px 8px;
  }

  .streaming-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stream-link {
    padding: 20px 12px;
  }

  .streaming-secondary {
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .tracklist li {
    font-size: 0.88rem;
    padding: 12px 0;
  }
}

@media (max-width: 400px) {
  .streaming-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 300px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .menu a:not(.btn-nav) {
    display: none;
  }
}

/* --- SELECTION COLOR --- */
::selection {
  background: var(--cherry);
  color: #fff;
}
