/* ===================================================================
   back2prod — global stylesheet
   Built to match the live Squarespace site, section by section.
   =================================================================== */

:root {
  /* ----- color palette (sampled from real site) ----- */
  --cream:    #ffffff;   /* pure white intro sections (matches logo) */
  --cream-2:  #f7f7f7;   /* barely-there off-white for transitions */
  --black:    #0d0d0d;   /* primary content sections */
  --dark:     #3a3935;   /* mid-gray secondary sections */
  --mid:      #4a4945;   /* mid-tone */
  --white:    #ffffff;
  --ink:      #0d0d0d;   /* primary text on cream */
  --ink-soft: #2a2926;   /* slightly softer dark text */
  --light:    #f3f0e6;   /* primary text on dark sections */
  --muted:    #a8a59c;   /* secondary text on dark */
  --accent:   #ffba08;   /* signature yellow */
  --rule-d:   rgba(255,255,255,0.10);   /* divider on dark */
  --rule-l:   rgba(13,13,13,0.10);      /* divider on cream */

  /* ----- layout ----- */
  --max: 1200px;
  --narrow: 720px;

  /* ----- typography ----- */
  --serif:  'Ovo', Georgia, 'Times New Roman', serif;
  --sans:   'Almarai', 'Helvetica Neue', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  background: var(--black);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
iframe { display: block; border: 0; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

html {
  /* Anchor/deep links scroll to a position that clears the sticky header
     (~84px) PLUS comfortable breathing room above the target. */
  scroll-padding-top: 180px;
}

/* =========================================================
   HEADER — black bar, logo image left, nav right
   ========================================================= */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  padding: 22px 48px;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}
header.site.is-hidden { transform: translateY(-100%); }
header.site .bar {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
header.site .logo { justify-self: start; }
header.site nav { grid-column: 2; justify-self: center; }
.logo {
  display: inline-block;
  line-height: 0;
}
.logo img {
  height: 40px;
  width: auto;
}
header.site nav ul {
  display: flex;
  gap: 44px;
  list-style: none;
}
header.site nav a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
header.site nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
header.site nav a:hover {
  color: var(--white);
}

/* hamburger + close buttons hidden on desktop */
.nav-toggle, .nav-close { display: none; }

@media (max-width: 720px) {
  header.site { padding: 16px 20px; }
  header.site .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  /* clean 2-line hamburger, no box */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 30px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent);
    border-radius: 2px;
  }
  /* hide the 3rd line so it's a 2-line hamburger */
  .nav-toggle span:nth-child(3) { display: none; }

  .logo img { height: 34px; }

  /* fullscreen overlay nav — fixed to viewport, covers everything */
  header.site nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    visibility: hidden;
  }
  header.site nav.open {
    transform: translateX(0);
    visibility: visible;
  }
  header.site nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0;
    margin: 0;
  }
  header.site nav li { list-style: none; }
  header.site nav a {
    font-size: 32px;
    color: var(--white);
    font-weight: 300;
    padding: 4px 0;
  }
  header.site nav a.is-active {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  /* close button top-left, clean × no box */
  .nav-close {
    display: block;
    position: absolute;
    top: 18px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 38px;
    line-height: 40px;
    cursor: pointer;
    padding: 0;
  }
  /* prevent body scroll when menu open */
  body.nav-open { overflow: hidden; }
}

/* =========================================================
   RELEASE GATING — Opus 11th Ave
   JS removes [data-release="post"] before release and
   [data-release="pre"] after. CSS hides both by default to
   prevent any flash before JS runs.
   ========================================================= */
[data-release] { display: none; }
html.released [data-release="post"] { display: block; }
html.prerelease [data-release="pre"] { display: block; }

/* =========================================================
   FOOTER — black, centered yellow links stacked vertically
   ========================================================= */
footer.site {
  background: var(--black);
  padding: 70px 24px 50px;
  text-align: center;
}
footer.site ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
footer.site a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
footer.site a:hover { color: var(--white); }
footer.site .insta {
  margin-top: 16px;
  display: inline-block;
  color: var(--accent);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
footer.site .insta:hover {
  transform: translateY(-2px);
  color: var(--white);
}
footer.site .insta svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* =========================================================
   SECTIONS — full-bleed backgrounds, alternating colors
   ========================================================= */
section {
  width: 100%;
  position: relative;
  padding: 100px 24px;
}
section.cream  { background: var(--cream); color: var(--ink); }
section.black  { background: var(--black); color: var(--light); }
section.dark   { background: var(--dark);  color: var(--light); }
section.white  { background: var(--white); color: var(--ink); }

/* Tighter rhythm between the Immersive section and Instrumental Productions */
section#immersive { padding-bottom: 60px; }
section.instrumental-section { padding-top: 60px; }

section .wrap {
  max-width: var(--max);
  margin: 0 auto;
}
section .wrap.narrow { max-width: var(--narrow); text-align: center; }

/* Diagonal cream→black transition (the triangle cut on reel pages) */
.diagonal-cream-black {
  position: relative;
  background: var(--cream);
  padding-bottom: 0;
}
.diagonal-cream-black::after {
  content: '';
  display: block;
  width: 100%;
  height: 120px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin-top: 30px;
}

/* =========================================================
   TYPOGRAPHY (matching the screenshots — heavier classical serif)
   ========================================================= */
.serif-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
/* Listen intro: smaller + tighter to push reels up */
h1.listen-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 0;
}

h2.section-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 24px;
}
section.black h2.section-h,
section.dark h2.section-h {
  color: var(--accent);
}

h3.sub-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
section.black h3.sub-h,
section.dark h3.sub-h {
  color: var(--accent);
  display: inline-block;
  background: rgba(255,186,8,0.18);
  padding: 3px 10px;
  border-radius: 2px;
}

p.lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 60ch;
}
p.lead.center { margin-left: auto; margin-right: auto; text-align: center; }

p.body {
  font-size: 16px;
  line-height: 1.75;
  max-width: 62ch;
}
section.cream p.body { color: var(--ink-soft); }
section.black p.body,
section.dark  p.body { color: var(--light); }
p.body + p.body { margin-top: 18px; }

a.inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
section.cream a.inline { color: var(--ink); }
a.inline:hover { color: var(--accent); }

/* Yellow emphasis text that is NOT a link */
.accent-text { color: var(--accent); }

/* Yellow highlight on key phrases ("stands out", "Hey there!", etc.) */
.hl {
  color: var(--ink);
  padding: 2px 10px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s 0.25s var(--ease);
}
/* Before sweep: text is ink-colored but no bg; after .lit it gets the yellow sweep */
.hl.lit {
  background-size: 100% 100%;
}
/* Black-highlight variant (yellow text on dark sweep) */
.hl-dark {
  color: var(--accent);
  padding: 2px 10px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.hl-dark.lit { background-size: 100% 100%; }

/* Credit line under title ("Mixed by Chahine") */
.credit {
  text-align: center;
  font-size: 15px;
  margin-top: -8px;
}
.credit .author {
  background: var(--accent);
  color: var(--ink);
  padding: 1px 6px;
}

/* =========================================================
   HOME PAGE — sphere background, centered stack
   ========================================================= */
.home-bg {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: #1a1916;
  /* CSS fallback: static sphere if WebGL/JS unavailable */
  background-image: url('/assets/images/sphere-bg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
}
/* Home page: hide the top nav so the sphere fills the screen above the fold */
body.home header.site { display: none; }
.liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.home-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13,13,13,0.65) 0%, rgba(13,13,13,0.55) 50%, rgba(13,13,13,0.7) 100%);
  pointer-events: none;
}
.home-bg .home-stack { position: relative; z-index: 2; }

.home-stack {
  text-align: center;
  max-width: 520px;
  width: 100%;
}
.home-stack .home-logo {
  width: 340px;
  max-width: 88%;
  margin: 0 auto 32px;
}
.home-stack .tag {
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}
.home-stack .tag .arr {
  color: var(--white);
  margin: 0 0.35em;
}

.home-stack .btn-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.btn-yellow {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 40px;
  text-align: center;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-yellow:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 40px;
  text-align: center;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

/* =========================================================
   STUDIO / STUDIO-DETAILS — fixed-bg banner with yellow title
   ========================================================= */
.banner {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  background-color: #1a1916;
  /* CSS fallback */
  background-image: url('/assets/images/sphere-bg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}
.banner .liquid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.banner .banner-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(13,13,13,0.42);
}
.banner h1 { position: relative; z-index: 2; }
.banner h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
}

/* =========================================================
   STUDIO LAYOUT — two-column (images left, text right)
   ========================================================= */
.studio-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.studio-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.studio-images .img-slot {
  background: #1a1816;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.studio-images figure { margin: 0; }
.studio-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.studio-text h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--light);
  white-space: nowrap;
}
.studio-text h2 .accent {
  color: var(--accent);
}
@media (max-width: 900px) {
  .studio-text h2 { white-space: normal; font-size: 1.1rem; }
}
@media (max-width: 760px) {
  .studio-two { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   SERVICES GRID
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  margin-top: 30px;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--accent);
  display: inline-block;
  padding: 3px 10px;
  background-image: linear-gradient(rgba(160,160,155,0.32), rgba(160,160,155,0.32));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.service h3.lit { background-size: 100% 100%; }
section.dark .service h3,
section.black .service h3 {
  color: var(--accent);
}
.service p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--light);
  max-width: 32ch;
}
section.black .service p { color: rgba(243,240,230,0.85); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; gap: 36px; } }

h2.services-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--accent);
  margin-bottom: 20px;
  text-align: left;
}

/* =========================================================
   GEAR LIST (studio-details)
   ========================================================= */
.gear-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gear-title::before {
  content: '✦';
  color: var(--accent);
  font-size: 1.1rem;
}
ul.gear {
  list-style: none;
  max-width: 700px;
}
ul.gear li {
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--light);
}
ul.gear li::before {
  content: '·';
  display: inline-block;
  width: 12px;
  color: var(--muted);
}
ul.gear li strong {
  font-weight: 700;
  color: var(--light);
}

/* =========================================================
   LISTEN — large mixer card + playlist sub-items
   ========================================================= */
.section-eyebrow {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 30px;
}
.mix-block {
  max-width: 640px;
  margin: 0 auto;
}
.mix-block + .mix-block { margin-top: 40px; }

/* =========================================================
   OPUS FEATURED BLOCK + secondary immersive entry
   Everything centered: heading, artwork, framing, player,
   captions, credits, link buttons.
   Player is responsive: 100% of column with a sane max-width.
   ========================================================= */
.opus-feature, .immersive-secondary {
  max-width: 720px;
  margin: 40px auto 0;
  color: var(--light);
  text-align: center;
}
.opus-art {
  margin: 0 auto 28px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 420px;
}
.opus-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.immersive-secondary {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule-d);
}
.opus-head { margin-bottom: 18px; }
.opus-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 4px;
  line-height: 1.15;
}
.opus-title-secondary {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 0 0 4px;
  line-height: 1.2;
}
.opus-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.opus-frame {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--light);
  margin: 18px auto 24px;
  font-weight: 300;
  max-width: 620px;
}
.opus-frame-tight { margin: 12px auto 20px; font-size: 15px; }
.opus-prerelease {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 22px;
}
.opus-prerelease .release-date {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}
/* Player: responsive, centered, sized to the iframe (no reserved min-height) */
.opus-player {
  margin: 0 auto 16px;
  max-width: 620px;
}
.opus-player .disco-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 235px;
  margin: 0 auto;
  border: none;
  border-radius: 8px;
}
.opus-caption {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  margin: 10px auto 0;
  line-height: 1.5;
  max-width: 540px;
}
.opus-post { margin-top: 26px; }
.opus-howto {
  font-size: 14px;
  line-height: 1.6;
  color: var(--light);
  margin: 0 auto 18px;
  font-weight: 300;
  max-width: 620px;
}
.opus-cta-label,
.opus-stereo-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.opus-stereo-label {
  color: var(--muted);
  margin-top: 22px;
}
.opus-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}
.opus-links li { margin: 0; }
.opus-links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.opus-links a:hover {
  background: var(--accent);
  color: var(--ink);
}
.opus-links-stereo a {
  border-color: var(--muted);
  color: var(--muted);
}
.opus-links-stereo a:hover {
  background: var(--muted);
  color: var(--ink);
  border-color: var(--muted);
}
/* Credits: centered grid, each row centered as a single line where it fits */
.opus-credits {
  margin: 30px auto 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
}
.opus-credits > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.opus-credits dt {
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}
.opus-credits dt::after { content: ':'; }
.opus-credits dd {
  margin: 0;
  color: var(--light);
  font-weight: 300;
}

/* Full credits (released state only) — accordion ----------------------- */
.opus-credits-full {
  margin: 24px auto 0;
  max-width: 560px;
}
/* Hide native disclosure triangle, replace with custom indicator */
.opus-credits-full > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  margin: 0 auto;
  border: 1px solid var(--rule-d);
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.opus-credits-full > summary::-webkit-details-marker { display: none; }
.opus-credits-full > summary::after {
  content: '+';
  display: inline-block;
  margin-left: 8px;
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}
.opus-credits-full[open] > summary::after { content: '−'; }
.opus-credits-full > summary:hover,
.opus-credits-full > summary:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}
/* Wrapper centers the summary as a single inline-block */
.opus-credits-full { text-align: center; }

.opus-credits-body {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}
.opus-credits-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.opus-credits-group li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.opus-credits-group .role {
  color: var(--muted);
  font-weight: 400;
}
.opus-credits-group .role::after { content: ':'; }
.opus-credits-group .who {
  color: var(--light);
  font-weight: 300;
}
.opus-credits-h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.opus-credits-notes {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.55;
}
.opus-credits-notes p { margin: 0 0 6px; }
.opus-credits-notes p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .opus-title { font-size: 1.6rem; }
  .opus-frame { font-size: 15px; }
}

/* =========================================================
   SONGWRITING SECTION — credentials-led on /listen
   ========================================================= */
.sw-intro {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--light);
  max-width: 640px;
  margin: 18px auto 48px;
  text-align: center;
  font-weight: 300;
}
.sw-entry {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.sw-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 6px;
  line-height: 1.15;
}
.sw-credit {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.sw-authors {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 24px;
}
.sw-video {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.sw-video .video-facade {
  width: 100%;
  height: 100%;
}
.sw-closing {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
  margin: 40px auto 0;
  text-align: center;
  font-weight: 300;
}
.sw-closing .inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.sw-closing .inline:hover { color: var(--white); }
@media (max-width: 600px) {
  .sw-title { font-size: 1.6rem; }
  .sw-intro { font-size: 14.5px; }
}

/* =========================================================
   REEL PAGES — title section, dark tracks grid
   ========================================================= */
.reel-intro {
  background: var(--cream);
  padding: 90px 24px 60px;
  text-align: center;
  position: relative;
}
.reel-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* yellow dash accent under the title */
.reel-intro .dash {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 18px auto 0;
}
.reel-intro .credit {
  font-size: 15px;
  margin-top: 16px;
  color: var(--ink-soft);
}
.reel-intro .credit .author {
  color: var(--accent);
  padding: 1px 3px;
  text-decoration: none;
  background-image: linear-gradient(#0d0d0d, #0d0d0d);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.reel-intro .credit .author.lit { background-size: 100% 100%; }
.reel-intro .credit a.author:hover { color: #ffd966; }
/* diagonal cut at bottom of cream intro — shallow wide V pointing down */
.reel-intro::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -55px;
  height: 56px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 5;
}

/* Reel tracks — list of Spotify-like cards on dark bg */
.tracks-section {
  background: var(--dark);
  padding: 80px 24px 80px;
}
.tracks-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}
@media (max-width: 760px) {
  .tracks-grid { grid-template-columns: 1fr; gap: 50px; }
}

.track {
  display: flex;
  flex-direction: column;
}
.track .embed {
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.track:hover .embed {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -20px rgba(0,0,0,0.6);
}
.track .embed iframe {
  width: 100%;
  height: 152px;
  display: block;
}
.track .caption {
  font-style: italic;
  font-size: 14px;
  color: var(--light);
  margin-top: 14px;
  line-height: 1.5;
}

/* Featured Spotify "big" card (top of artpop) */
.feature-tracks {
  background: var(--black);
  padding: 80px 24px;
}
.feature-tracks .tracks-grid { gap: 60px 40px; }
.feature-tracks .track .embed iframe { height: 232px; }

/* =========================================================
   IMMERSIVE FEATURE (bottom of reel pages) — white section
   ========================================================= */
.immersive {
  background: var(--white);
  padding: 100px 24px;
  color: var(--ink);
}
.immersive .wrap {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.immersive h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  margin-bottom: 30px;
  grid-column: 1 / -1;
  color: var(--ink);
}
.immersive .sc-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: #f6f4ec;
}
.immersive .sc-wrap iframe { width: 100%; height: 300px; }
.immersive .side {
  align-self: start;
}
.immersive .side .badge {
  background: #f3f0e6;
  border: 1px solid #e0ddd0;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
}
.immersive .side .badge-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #9d52ff 0%, #6a3dde 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.immersive .side .badge-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.immersive .side .badge-issuer {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}
.atmos-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 28px;
  margin-top: 22px;
  border: none;
  transition: background 0.25s var(--ease);
}
.atmos-btn:hover { background: #e6a700; }
.atmos-soon {
  font-family: var(--sans);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 18px;
}
/* Credly badge card (static version of their embed) */
.credly-badge {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 22px 18px 14px;
  text-align: center;
  max-width: 200px;
  font-family: var(--sans);
}
.credly-badge-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.credly-badge-link img { margin: 0 auto 12px; display: block; }
.credly-badge-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}
.credly-badge-issuer {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  margin-top: 6px;
}
.credly-provided {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #9ca3af;
  text-decoration: none;
  text-transform: uppercase;
}
.credly-provided span { font-weight: 700; color: #6b7280; }

@media (max-width: 760px) {
  .immersive .wrap { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT — white section, full-bleed animated sphere, form
   ========================================================= */
.contact-page {
  background: #e9ebee;
  color: var(--ink);
  padding: 100px 24px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
/* Liquid white-sphere canvas spans the background, washed out via opacity
   so the form & text sit crisply on top without any tint over them */
.contact-page .liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.45;
}
/* No-WebGL fallback is just the solid light background set above */
.contact-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
  z-index: 1;
}
.contact-left h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 32px;
}
.contact-left h1 .hl { padding: 8px 16px; }
.meet-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 28px;
}
.meet-h .hl { padding: 6px 14px; }
.connect-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1.1;
}
.connect-h .hl { padding: 6px 14px; }
.contact-left p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.contact-left p strong {
  color: var(--ink);
  font-weight: 700;
}
.contact-left .small-label {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 60px;
  margin-bottom: 8px;
}
.contact-left .email {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-left .phone {
  font-size: 16px;
  color: var(--ink-soft);
}
.contact-form-r label {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
  margin-top: 24px;
}
.contact-form-r label:first-child { margin-top: 0; }
.contact-form-r label .req {
  color: var(--ink-soft);
  font-size: 13px;
  margin-left: 4px;
  font-weight: 400;
}
.contact-form-r .helper {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  margin-top: -8px;
}
.contact-form-r .checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form-r .checks label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}
.contact-form-r .checks input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.contact-form-r textarea,
.contact-form-r input[type=email],
.contact-form-r input[type=text] {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form-r textarea {
  min-height: 160px;
  resize: vertical;
  font-family: var(--sans);
}
.contact-form-r input:focus,
.contact-form-r textarea:focus {
  border-color: var(--accent);
}
.contact-form-r button.send {
  background: var(--accent);
  color: #0d0d0d;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  margin-top: 32px;
  font-family: var(--sans);
  transition: background 0.2s;
}
.contact-form-r button.send:hover { background: #e6a700; }
@media (max-width: 760px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-left h1 { font-size: 2.2rem; }
}

/* =========================================================
   WATCH — single centered video
   ========================================================= */
.watch-section {
  background: var(--black);
  padding: 80px 24px;
  text-align: center;
}
.watch-entry {
  max-width: 1100px;
  margin: 0 auto;
}
.watch-entry + .watch-entry { margin-top: 70px; }
.watch-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 18px;
  text-align: left;
}
.watch-title .watch-subtitle {
  color: var(--light);
  font-size: 0.85em;
}
.watch-caption {
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
  margin: 14px 0 0;
  text-align: left;
  line-height: 1.55;
}
.watch-caption .inline { color: var(--accent); font-style: normal; }
.watch-video {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #1a1816;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watch-video iframe {
  width: 100%;
  height: 100%;
}
/* Click-to-play facade */
.video-facade {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s var(--ease);
}
.video-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  transition: background 0.3s var(--ease);
}
.video-facade:hover::after { background: rgba(0,0,0,0.05); }
.video-facade .play-btn {
  position: relative;
  z-index: 2;
  transition: transform 0.3s var(--ease);
}
.video-facade:hover .play-btn { transform: scale(1.1); }
.video-facade .play-btn svg { display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

/* Placeholder treatment: when data-id is still a bracketed token like [OPUS_YOUTUBE_ID],
   render a clean preview block instead of a broken-looking facade with a missing thumbnail. */
.video-facade[data-id^="["] {
  background-image: none !important;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  cursor: default;
  border: 1px dashed rgba(255,255,255,0.18);
}
.video-facade[data-id^="["]::after {
  content: 'Opus 11th Ave video — placeholder. Fill in YouTube ID and thumbnail in watch.html to activate.';
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  line-height: 1.6;
}
.video-facade[data-id^="["] .play-btn { display: none; }
.video-facade[data-id^="["]:hover::after { background: transparent; }

/* =========================================================
   GROOVELOCK — white section, square image bleeds left, text right
   ========================================================= */
.gl-hero {
  background: var(--white);
  padding: 60px 0;
  color: var(--ink);
}
.gl-hero .wrap {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 60px;
  align-items: center;
}
.gl-image {
  width: 100%;
  aspect-ratio: 1/1;
  display: block;
  overflow: hidden;
}
.gl-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-text {
  padding: 0 60px 0 0;
  max-width: 560px;
}
.gl-text h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 2px;
  color: #6e6e6e;
}
.gl-text h2.tag {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--ink);
}
.gl-text p.intro {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
  color: var(--ink-soft);
  max-width: 40ch;
}
.gl-text ul {
  list-style: none;
  padding-left: 8px;
}
.gl-text ul li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.gl-text ul li::before {
  content: '·';
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}

.gl-form-section {
  background: var(--white);
  padding: 60px 24px 100px;
}
.gl-form-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #f5f5f4;
  border-radius: 8px;
  padding: 50px;
}
.gl-form-wrap .field { margin-bottom: 24px; }
.gl-form-wrap label {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
}
.gl-form-wrap label .req {
  color: var(--ink-soft);
  font-size: 13px;
  margin-left: 4px;
  font-weight: 400;
}
.gl-form-wrap input[type=email],
.gl-form-wrap input[type=text],
.gl-form-wrap textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  background: var(--white);
  outline: none;
}
.gl-form-wrap textarea { min-height: 100px; resize: vertical; }
.gl-form-wrap .checks { display: flex; flex-direction: column; gap: 10px; }
.gl-form-wrap .checks label, .gl-form-wrap .radios label {
  display: flex; align-items: center; gap: 12px; font-size: 15px;
  margin: 0; cursor: pointer; font-weight: 400;
}
.gl-form-wrap input[type=checkbox],
.gl-form-wrap input[type=radio] {
  width: 18px; height: 18px; accent-color: var(--accent);
}
.gl-form-wrap button.send {
  background: var(--accent);
  color: var(--ink);
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  font-family: var(--sans);
}
.gl-form-wrap .disclaimer {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 18px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .gl-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .gl-text { padding: 0 24px; max-width: 100%; }
  .gl-text h1 { font-size: 2.6rem; }
  .gl-form-wrap { padding: 30px; }
}

/* =========================================================
   PORTFOLIO — sphere banner, then organized track grids
   ========================================================= */
.portfolio-section {
  background: var(--black);
  padding: 70px 24px;
}
.portfolio-section + .portfolio-section { padding-top: 0; }
.portfolio-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--accent);
  max-width: 1180px;
  margin: 0 auto 30px;
}
.portfolio-section .genre-h {
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 1180px;
  margin: 40px auto 20px;
}
.portfolio-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.portfolio-grid .item {
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
}
.portfolio-grid .item iframe {
  width: 100%;
  height: 152px;
}
.portfolio-grid .item.tall iframe { height: 380px; }
@media (max-width: 760px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ENTRANCE ANIMATIONS — subtle by default
   ========================================================= */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s var(--ease) forwards;
}
.fade-in.d2 { animation-delay: 0.2s; }
.fade-in.d3 { animation-delay: 0.4s; }
.fade-in.d4 { animation-delay: 0.6s; }

@keyframes fadeIn { to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in, .reveal { opacity: 1; transform: none; }
  .hl, .hl-dark { background-size: 100% 100% !important; }
}

/* =========================================================
   RESPONSIVE FINE-TUNES
   ========================================================= */
@media (max-width: 760px) {
  section { padding: 60px 20px; }
  .home-bg { background-attachment: scroll; }  /* iOS Safari bug fix */
  .banner { background-attachment: scroll; }
  .home-stack .home-logo { width: 240px; }
}
