/* Michael Eastwood – Refreshed Site */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Palette matched to logo: gold #a67c2e for MICHAEL EASTWOOD, blue-grey #5a6f8c for subtitle, light staff grey #d1d5db for M/E */
  --bg: #fbf9f5;
  --bg-2: #ffffff;
  --text: #141412;
  --text-muted: #6b6a63;
  --line: #e8ddd0;
  --line-strong: #d5c9b6;
  --accent: #a67c2e; /* logo gold */
  --accent-dark: #7a5c20;
  --accent-light: #f6ead0; /* light gold wash */
  --accent-blue: #5a6f8c; /* composer subtitle blue */
  --charcoal: #11110f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(23,16,8,0.06);
  --shadow-lg: 0 20px 50px rgba(23,16,8,0.1);
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

h1,h2,h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 .4em;
  line-height: 1.1;
}
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

.container {
  width: min(var(--max-w), 92vw);
  margin: 0 auto;
}

/* Header - logo overhangs as before, but hides on scroll when it would block content */
.site-header {
  position: sticky; top:0; z-index:50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.header-inner {
  display:flex; align-items:flex-start; justify-content:space-between;
  height: 88px;
  overflow: visible;
  padding-top: 10px;
  gap: 24px;
}
.brand {
  display:flex; align-items:flex-start; gap:14px;
  text-decoration:none;
  overflow: visible;
  position: relative;
  z-index: 10;
  margin-right: auto;
  flex-shrink: 0;
}
.brand-logo {
  height: 112px;
  width: auto;
  object-fit: contain;
  display:block;
  max-width: min(72vw, 360px);
  background: rgba(255,255,255,0.82);
  padding: 4px 10px 5px 10px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  margin-top: -6px;
  margin-bottom: -52px;
  border: 1px solid rgba(232,221,208,0.9);
  opacity: 0.92;
  backdrop-filter: blur(6px) saturate(140%);
  will-change: transform, opacity;
  /* No transform transition - moves progressively with scroll */
  transition: opacity 0.15s linear;
}
.site-header.logo-hidden .brand-logo {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1100px){
  .brand-logo { max-width: 340px; }
}
@media (max-width: 960px){
  .header-inner { height: 78px; gap: 16px; }
  .brand-logo { height: 92px; max-width: 58vw; margin-bottom: -44px; padding: 3px 8px 4px; }
}
@media (max-width: 600px){
  .header-inner { height: 72px; }
  .brand-logo { height: 78px; max-width: 68vw; margin-bottom: -38px; padding: 2px 6px 3px; }
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--charcoal);
  color: var(--bg);
  display:grid; place-items:center;
  font-family: "Instrument Serif", serif;
  font-size: 20px;
}
.brand-text strong {
  font-family: "Instrument Serif", serif;
  font-size: 20px; font-weight:400; display:block; line-height:1;
}
.brand-text span {
  font-size: 11px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--text-muted);
}

.nav {
  display:flex; gap: 6px; align-items:center;
}
.nav a {
  font-size: 13.5px; letter-spacing:.02em;
  text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px;
  color: var(--text-muted);
  transition: .18s ease;
  font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--bg-2); box-shadow: var(--shadow); }
.nav a.active { background: var(--accent); color: white; border-color: var(--accent); }

.nav-toggle {
  display:none;
  width: 40px; height: 40px; border-radius: 999px;
  border:1px solid var(--line);
  background: var(--bg-2);
  cursor:pointer;
}
.nav-toggle span { display:block; width:16px; height:1.5px; background: var(--text); margin:4px auto; transition:.2s; }

@media (max-width: 960px){
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--bg);
    border-bottom:1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 18px;
    gap: 2px;
    transform: translateY(-120%);
    opacity:0; pointer-events:none;
    transition: .28s cubic-bezier(.2,.8,.2,1);
  }
  .nav.open {
    transform: translateY(0); opacity:1; pointer-events:auto;
  }
  .nav a { padding:16px 18px; border-radius:12px; font-size:15px; }
  .nav-toggle { display:grid; place-items:center; }
}

/* Hero */
.hero {
  position:relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content:"";
  position:absolute;
  right: -8%;
  top: -15%;
  width: 62%;
  height: 130%;
  background: url('../images/logo.png') no-repeat right top / contain;
  opacity: 0.045;
  filter: grayscale(0.2) sepia(0.2);
  pointer-events:none;
  z-index:0;
}
.hero-media {
  position:absolute; inset:0;
  z-index:0;
}
.hero-media img {
  width:100%; height:100%; object-fit:cover;
  filter: saturate(.9) contrast(1.05);
}
.hero-media::after {
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 55%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 60%);
}
.hero-content {
  position:relative; z-index:1;
  padding: clamp(32px, 6vw, 72px) 0 clamp(32px, 5vw, 64px);
  display:grid; grid-template-columns: 1.15fr .85fr; gap:40px; align-items:end;
}
@media (max-width: 860px){
  .hero-content { grid-template-columns: 1fr; }
  .hero-media::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 85%);
  }
}
.kicker {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px; display:inline-block;
  border:1px solid var(--line); padding:6px 12px; border-radius:999px;
  background: var(--bg-2);
}
.hero h1 { max-width: 14ch; }
.hero p.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-muted); max-width: 52ch;
  line-height:1.6;
  margin: 0;
}
.hero-card {
  background: var(--bg-2); border:1px solid var(--line);
  border-radius: var(--radius-lg); padding:22px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom:8px; font-size:18px; }
.hero-card p { margin:0; color: var(--text-muted); font-size:14.5px; line-height:1.6; }

/* Sections */
.section { padding: clamp(36px, 6vw, 80px) 0; }
.section + .section { border-top:1px solid var(--line); }

.two-col {
  display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px,5vw,60px);
}
@media (max-width:860px){ .two-col { grid-template-columns: 1fr; } }

.prose p { margin: 0 0 1.2em; max-width: 66ch; }
.prose a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-dark); }

.card {
  background: var(--bg-2);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* Gallery - Film */
.film-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap:16px;
}
.film-card {
  background: var(--bg-2); border:1px solid var(--line);
  border-radius: 16px; overflow:hidden;
  transition:.2s ease; box-shadow: var(--shadow);
}
.film-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.film-card img {
  aspect-ratio: 2/3; object-fit:cover; width:100%;
  background:#eee;
}
.film-meta { padding:12px 14px; }
.film-meta .role { font-size:12px; letter-spacing:.02em; text-transform:uppercase; color: var(--text-muted); display:block; }
.film-meta .title { font-family:"Instrument Serif", serif; font-size:17px; line-height:1.2; }

/* Audio players */
.audio-list {
  display:grid; gap:10px;
}
.audio-track {
  display:grid; grid-template-columns: auto 1fr auto;
  gap:14px; align-items:center;
  background: var(--bg-2); border:1px solid var(--line);
  border-radius: 12px; padding:12px 14px;
  transition:.18s;
}
.audio-track:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.audio-track.playing { border-color: var(--accent); background: var(--accent-light); }
.play-btn {
  width:42px; height:42px; border-radius:999px;
  border:1px solid var(--line); background:white;
  display:grid; place-items:center; cursor:pointer;
  transition:.18s;
}
.play-btn:hover { background: var(--charcoal); color:white; border-color: var(--charcoal); }
.play-btn svg { width:14px; height:14px; margin-left:1px; }
.audio-info { min-width:0; }
.audio-info .t { font-weight:600; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.audio-info .m { font-size:12.5px; color: var(--text-muted); }
.audio-progress {
  width: 110px; height:8px; background: var(--line);
  border-radius: 999px; overflow:hidden; position:relative;
  cursor: pointer;
  padding: 2px 0;
  background-clip: content-box;
}
.audio-progress:hover { height:10px; }
.audio-progress i { position:absolute; inset:0 auto 0 0; width:0%; background: var(--charcoal); transition: width .1s linear; pointer-events:none; }
.time { font-size:11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.table-head {
  display:flex; justify-content:space-between; align-items:end; gap:16px; flex-wrap:wrap; margin-bottom:20px;
}
.pill { display:inline-block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; padding:6px 10px; border-radius:999px; background: var(--accent-light); border:1px solid var(--line); }

/* Production tracks */
.prod-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
@media (max-width:860px){ .prod-grid { grid-template-columns: 1fr; } }
.spotify-embed iframe { border-radius:16px; border:1px solid var(--line); display:block; width:100%; }

.track-meta {
  display:flex; gap:10px; flex-wrap:wrap; font-size:12px; color: var(--text-muted);
}
.track-meta span { background: var(--bg); border:1px solid var(--line); padding:3px 8px; border-radius:999px; }

/* Releases player */
.releases-layout {
  display:grid; grid-template-columns: 460px 1fr; gap:28px; align-items:start;
}
@media (max-width:980px){ .releases-layout { grid-template-columns:1fr; } }

.artwork-stage {
  position:sticky; top:20px;
  background: var(--bg-2); border:1px solid var(--line);
  border-radius: var(--radius-lg); padding:14px;
  box-shadow: var(--shadow);
}
.artwork-wrap {
  position:relative; aspect-ratio:1; background:#111; border-radius:14px; overflow:hidden;
  display:grid; place-items:center;
}
.artwork-wrap img {
  width:100%; height:100%; object-fit:cover; transition:.45s cubic-bezier(.2,.8,.2,1);
}
.artwork-controls {
  position:absolute; inset:12px 12px auto 12px;
  display:flex; justify-content:space-between; gap:8px;
}
.icon-btn {
  width:40px; height:40px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45); color:white;
  backdrop-filter: blur(10px);
  display:grid; place-items:center; cursor:pointer;
  transition:.18s;
}
.icon-btn:hover { background: rgba(0,0,0,.7); transform: translateY(-1px); }
.icon-btn svg { width:16px; height:16px; }

.artwork-bottom {
  position:absolute; inset:auto 12px 12px 12px;
  display:flex; justify-content:space-between; align-items:center;
}
.play-main {
  width:54px; height:54px; border-radius:999px;
  background: white; color: black;
  border:0; display:grid; place-items:center; cursor:pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  transition:.18s;
}
.play-main:hover { transform: scale(1.05); }
.play-main svg { width:18px; height:18px; }

.progress-large {
  flex:1; height:10px; background: rgba(255,255,255,.22);
  border-radius:999px; overflow:hidden; margin:0 14px;
  backdrop-filter: blur(4px);
  cursor: pointer;
  padding: 3px 0;
  background-clip: content-box;
}
.progress-large:hover { height:12px; }
.progress-large i { display:block; height:100%; width:0%; background:white; transition: width .1s linear; pointer-events:none; }

.release-info {
  padding:18px 6px 4px;
}
.release-info h3 { font-size: 28px; margin:0; }
.release-info .date { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--text-muted); margin:10px 0 14px; }
.release-desc { font-size:14.5px; color: var(--text-muted); line-height:1.7; }
.release-links {
  display:flex; flex-wrap:wrap; gap:8px; margin-top:16px;
}
.release-links a {
  font-size:12.5px; letter-spacing:.02em;
  border:1px solid var(--line); background: var(--bg);
  padding:8px 12px; border-radius:999px; transition:.18s;
}
.release-links a:hover { background: var(--charcoal); color:white; border-color: var(--charcoal); }

.tracklist {
  background: var(--bg-2); border:1px solid var(--line);
  border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow);
}
.tracklist-header {
  padding:18px 22px; border-bottom:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center;
}
.track-row {
  display:grid; grid-template-columns: 44px 1fr;
  gap:12px; align-items:center;
  padding:14px 18px; border-bottom:1px solid var(--line);
  transition:.15s;
  cursor:pointer;
  text-align:right;
}
.track-row:last-child { border-bottom:0; }
.track-row:hover { background: var(--bg); }
.track-row.active { background: var(--accent-light); }
.track-row .num { font-size:11px; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align:left; font-weight:600; }
.track-row .title { font-weight:600; font-size:14px; text-align:right; line-height:1.3; }
.track-row .meta { font-size:11.5px; color: var(--text-muted); text-align:right; letter-spacing:.02em; text-transform:uppercase; margin-top:2px; }
.thumb { width:44px; height:44px; border-radius:8px; object-fit:cover; background:#eee; display:none; } /* hide thumb to keep right aligned clean */
#tracklist-body .track-row { justify-items:end; }
#tracklist-body .track-row > div { text-align:right; width:100%; }

/* Studio */
.image-frame {
  border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow: var(--shadow-lg);
}
.image-frame img { width:100%; }

/* Footer */
.site-footer {
  border-top:1px solid var(--line);
  padding:36px 0 56px; margin-top:40px;
  color: var(--text-muted); font-size:13.5px;
}
.footer-inner { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }

/* Utilities */
.muted { color: var(--text-muted); }
.grid { display:grid; gap:18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width:700px){ .grid-2 { grid-template-columns:1fr; } }
