/* ==========================================================================
   PAGES — homepage hero, about band, world page, about page
   ========================================================================== */

/* ==========================================================================
   HOMEPAGE HERO
   Desktop  ≥1024: photo bleeds in from the right, fades into charcoal on the left
   Tablet 640–1023: full-bleed landscape crop, type in the lower third
   Phone    <640: portrait crop of the whole fireplace, type at the bottom
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  height: clamp(460px, 62vh, 640px);
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
.hero__media::after {   /* readability overlays */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(14 12 10 / 0.6) 0%, transparent 22%),
    linear-gradient(0deg, var(--ink) 0%, rgb(14 12 10 / 0.72) 26%, transparent 62%);
}

/* A very faint ember glow over the firebox that slowly breathes. */
.hero__glow {
  position: absolute; z-index: 1; pointer-events: none;
  left: 50%; top: 66%; width: 44%; aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(217 119 43 / 0.28), rgb(217 119 43 / 0.08) 55%, transparent);
  mix-blend-mode: screen;
  animation: ember 7s ease-in-out infinite alternate;
}
@keyframes ember { from { opacity: 0.45; } to { opacity: 0.9; } }

.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(2.25rem, 1rem + 4vh, 4.5rem);
}
.hero__text { max-width: 38rem; }

.hero h1 { font-weight: 300; }
.hero__eyebrow { display: block; margin-bottom: var(--space-4); }
.hero__title {
  display: block;
  font-size: var(--text-hero); line-height: 0.94; letter-spacing: -0.015em;
  color: var(--parchment);
}
.hero__title em { font-style: italic; color: #F3E7CC; }
.hero__lede {
  margin-top: var(--space-5); max-width: 30rem;
  font-size: var(--text-lede); line-height: 1.45; color: var(--ash);
}
.hero__cta { margin-top: var(--space-5); }

/* Desktop composition */
@media (min-width: 1024px) {
  .hero__media {
    left: auto; width: min(64%, 1240px);
  }
  .hero__media img { object-position: 50% 78%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgb(14 12 10 / 0.86) 14%, rgb(14 12 10 / 0.38) 40%, transparent 64%),
      linear-gradient(180deg, rgb(14 12 10 / 0.55) 0%, transparent 24%),
      linear-gradient(0deg, var(--ink) 0%, rgb(14 12 10 / 0.35) 12%, transparent 30%);
  }
  .hero__glow { left: auto; right: 32%; top: 72%; width: 26%; translate: 50% -50%; }
  .hero__content { justify-content: center; padding-top: var(--header-h); padding-bottom: var(--space-6); }
}

/* Phones: portrait crop */
@media (max-width: 639px) {
  .hero { height: 72svh; min-height: 520px; max-height: 720px; }
  .hero__media img { object-position: 50% 30%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgb(14 12 10 / 0.55) 0%, transparent 18%),
      linear-gradient(0deg, var(--ink) 0%, var(--ink) 8%, rgb(14 12 10 / 0.82) 30%, rgb(14 12 10 / 0.25) 52%, transparent 64%);
  }
  .hero__glow { top: 46%; width: 80%; }
  .hero__lede { font-size: 1.125rem; }
}

/* ==========================================================================
   HOMEPAGE LIBRARY
   ========================================================================== */
.library { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

/* About band */
.about-band {
  margin-top: var(--section-gap);
  padding-block: clamp(3.5rem, 2rem + 5vw, 7rem);
  background: var(--charcoal);
  border-block: 1px solid var(--line);
}
.about-band__grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) {
  .about-band__grid { grid-template-columns: 1fr 2fr; column-gap: var(--grid-col-gap); align-items: start; }
}
.about-band__statement {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); font-weight: 300; line-height: 1.18;
  max-width: 24em; color: var(--parchment);
}
.about-band__uses { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.about-band__uses li { font-family: var(--font-ui); font-size: var(--text-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--stone); }
.about-band__cta { margin-top: var(--space-6); }
.page--home .site-footer { margin-top: 0; border-top: 0; }

/* ==========================================================================
   WORLD (VIDEO) PAGE
   ========================================================================== */
.world { --tone: var(--bronze); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--stone); }
.breadcrumb a { color: var(--bronze); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--parchment); }
.breadcrumb [aria-current="page"] { color: var(--stone); }

.world__head { margin-top: var(--space-6); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: 60rem; }
.world__head h1 { font-size: var(--text-h1); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; }
.world__sub {
  margin-top: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline;
  font-family: var(--font-ui); font-size: var(--text-small); color: var(--ash);
}

/* Player with a soft glow taken from the world's tone */
.player-wrap { position: relative; isolation: isolate; }
.player-wrap::before {
  content: ""; position: absolute; inset: -6% -4% -10%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 42%, transparent), transparent);
  filter: blur(30px); opacity: 0.75;
}
.player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--soot); border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade { position: absolute; inset: 0; display: block; color: var(--parchment); text-decoration: none; }
.player__facade img, .player__facade .art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.82); transition: filter var(--dur-slow) var(--ease);
}
.player__button {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
}
.player__circle {
  width: clamp(64px, 5vw + 40px, 92px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgb(236 227 208 / 0.7);
  background: rgb(14 12 10 / 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease);
}
.player__circle svg { width: 22%; margin-left: 6%; }
.player__hint { color: var(--parchment); text-shadow: 0 1px 12px rgb(0 0 0 / 0.6); }
.player__facade:hover img, .player__facade:focus-visible img,
.player__facade:hover .art, .player__facade:focus-visible .art { filter: brightness(0.95); }
.player__facade:hover .player__circle, .player__facade:focus-visible .player__circle {
  transform: scale(1.06); border-color: var(--bronze); background: rgb(14 12 10 / 0.55);
}
.player__facade:focus-visible { outline-offset: -4px; }
.player__notice {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: var(--space-4) var(--space-5);
  background: rgb(14 12 10 / 0.85); color: var(--ash);
  font-family: var(--font-ui); font-size: var(--text-small);
}

.world__details {
  display: grid; gap: var(--space-7);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (min-width: 1024px) {
  .world__details { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-col-gap); }
  .world__about { grid-column: 1 / span 7; }
  .world__facts { grid-column: 9 / span 4; }
}
.world__about .lede { font-size: var(--text-lede); line-height: 1.45; color: var(--parchment); max-width: 40ch; }
.world__about .prose { margin-top: var(--space-5); }
.world__about h2, .world__facts h2 { margin-bottom: var(--space-4); }
.world__sounds { margin-top: var(--space-7); }
.world__sounds ul { list-style: none; padding: 0; color: var(--ash); }
.world__sounds li { padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.world__sounds li:first-child { border-top: 1px solid var(--line); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.facts dt, .facts dd { padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: var(--space-5); padding-top: 1.05rem; }
.facts dd { color: var(--parchment); }
.facts dd a { color: var(--parchment); text-decoration-color: var(--bronze); }
.facts dd a:hover { color: var(--bronze); }
.world__facts .text-link { margin-top: var(--space-6); }

.related { margin-top: var(--section-gap); }
.related__more { margin-top: var(--space-7); }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-page .statement {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); line-height: 1.2; max-width: 26em;
}
.about-page .prose { margin-top: var(--space-6); font-size: var(--text-lede); }
.about-grid { display: grid; gap: var(--space-7); margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: var(--space-7); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-col-gap); } }
.about-grid h2 { margin-bottom: var(--space-4); }
.about-grid p { color: var(--ash); }
.about-grid a { color: var(--parchment); text-decoration-color: var(--bronze); }

/* 404 */
.not-found { min-height: 70vh; display: grid; align-content: center; }
