/* =============================================
   Global: Base, Variables, Resets
   ============================================= */
html,
body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
  color: #ffffff;
}
/* Reserve scrollbar gutter to prevent horizontal layout shift between pages with/without vertical overflow without forcing a visible scrollbar */
html {
  scrollbar-gutter: stable;
}
body.layout-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--nav-height); /* offset content for fixed navbar */
}
main.page-main {
  flex: 1 1 auto;
  width: 100%;
  display: block;
  padding-top: 0; /* hero will provide its own offset */
  padding-bottom: calc(var(--footer-height) + 2.75rem);
  box-sizing: border-box;
}
@supports (height: 100dvh) {
  main.page-main {
    min-height: calc(100dvh - var(--footer-height, 82px));
  }
}

/* CSS Custom Properties (shared site palette).
   Keep in sync with album.css variables; consider extracting to a dedicated tokens file later. */
:root {
  --color-bg-deep: #011826; /* primary site background */
  --color-bg-accent: #5e6a75; /* slate accent */
  --color-accent-contrast: #9bafc2; /* user-provided contrast accent */
  --color-surface-translucent: rgba(0, 0, 0, 0.45);
  --color-border-subtle: #222;
  --color-text-muted: #aaa;
  --color-text-on-dark: #ffffff;
  --bg-pos-y: 30%;
  --nav-height: 68px; /* refined sticky navbar height including subtle shadow */
  --footer-height: 82px; /* fixed footer approximate height */
}

/* Album grid title links */
.album-title-link {
  display: block;
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.album-title-link:focus-visible,
.album-title-link:hover {
  color: var(--color-accent-contrast);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

body {
  background-color: var(--color-bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   Index Feature (Reel to Reel) & No-Scroll Layout
   ============================================= */
/* Removed legacy no-scroll behavior */

/* Ensure hero + footer fit viewport: hero takes remaining height minus footer fixed height (approx 72px) */
body.index-no-scroll .hero {
  height: calc(100vh - 80px);
  max-height: none;
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

/* Simplified release spotlight layout */
.simple-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-top: calc(var(--nav-height) + 1.25rem);
}
.release-spotlight {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.1rem;
}
.release-cover {
  width: clamp(220px, 42vw, 480px);
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.65),
    0 4px 18px -6px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: brightness(0.97) saturate(0.96);
  transition: transform 1.1s ease, filter 0.9s ease;
}
.release-cover:hover,
.release-cover:focus-visible {
  transform: scale(1.03);
  filter: brightness(1.05) saturate(1.05) contrast(1.02);
}
.out-now-tag {
  font-size: clamp(1.4rem, 2.2vw + 0.6rem, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffb27b, #ff9966 55%, #ff7a1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

/* Home site title near top */
.home-site-title {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: clamp(2.4rem, 3.6vw + 0.55rem, 4.4rem);
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #ffffff, #d7dde1 60%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
  margin: 0 0 2.4rem;
  scroll-margin-top: calc(var(--nav-height) + 1.25rem);
  z-index: 2;
}

/* Player container simplified */
.release-player {
  width: min(72vw, 640px);
  max-width: 100%;
  margin-top: 2.75rem;
}
.release-player .sc-player {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55);
}

/* Inline partner logo (MyVOD) */
.release-partner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
}
.partner-logo-inline {
  height: 130px;
  width: auto;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.6)) brightness(1.05);
  transition: transform 0.7s ease, filter 0.7s ease;
  margin-top: 2.9rem;
}
.partner-logo-link {
  display: inline-flex;
  text-decoration: none;
}
.partner-logo-link:focus-visible img {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
  border-radius: 12px;
}
.partner-logo-inline:hover,
.partner-logo-inline:focus-visible {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.65)) brightness(1.1);
}
@media (max-width: 768px) {
  .partner-logo-inline {
    height: 100px;
  }
}
@media (max-width: 575.98px) {
  .partner-logo-inline {
    height: 80px;
  }
}

/* Second partner logo (human-created badge) can be slightly smaller */
.partner-logo-human {
  height: 120px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55)) brightness(1.08);
}
@media (max-width: 768px) {
  .partner-logo-human {
    height: 84px;
  }
}
@media (max-width: 575.98px) {
  .partner-logo-human {
    height: 66px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 58px;
  }
  .home-site-title {
    font-size: clamp(1.75rem, 5.2vw + 0.4rem, 3rem);
    margin-bottom: 1.2rem;
  }
  .release-player {
    width: min(82vw, 520px);
  }
  .simple-hero {
    padding-top: calc(var(--nav-height) + 1rem) !important;
  }
}
@media (max-width: 575.98px) {
  :root {
    --nav-height: 56px;
  }
  .home-site-title {
    font-size: clamp(1.6rem, 6vw + 0.35rem, 2.4rem);
    margin-bottom: 1.1rem;
  }
  .release-player {
    width: 86vw;
  }
  .simple-hero {
    padding-top: calc(var(--nav-height) + 0.85rem) !important;
  }
}

@media (max-width: 768px) {
  .release-cover {
    width: min(62vw, 340px);
    border-radius: 16px;
  }
  .hnh-logo-floating-img {
    height: 60px;
  }
}
@media (max-width: 575.98px) {
  .release-cover {
    width: 68vw;
  }
  .hnh-logo-floating {
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.6rem 0.4rem;
  }
  .hnh-logo-floating-img {
    height: 54px;
  }
}

.feature-album {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 28px;
  position: relative;
  min-height: 360px;
  box-shadow: 0 14px 38px -16px rgba(0, 0, 0, 0.5),
    0 4px 14px -8px rgba(0, 0, 0, 0.45);
}
.feature-album::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 15%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

.feature-art {
  width: 340px;
  max-width: 50vw;
  aspect-ratio: 1/1;
  display: flex;
  align-items: stretch;
  background: #011826;
}
.feature-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.96) saturate(0.95);
  transition: filter 0.8s ease, transform 1.2s ease;
}
.feature-album:hover .feature-cover,
.feature-album:focus-within .feature-cover {
  filter: brightness(1.05) saturate(1.08) contrast(1.04);
  transform: scale(1.03);
}

/* HNH top-right floating badge */
.feature-brand-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px) saturate(1.1);
  padding: 0.55rem 0.9rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
}
.hnh-logo-badge {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65)) brightness(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.feature-brand-badge:hover .hnh-logo-badge,
.feature-brand-badge:focus-within .hnh-logo-badge {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7)) brightness(1.1);
}

.ribbon-new {
  position: absolute;
  top: 14px;
  left: -40px;
  background: linear-gradient(135deg, #cc4400, #ff7a1c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 2.25rem;
  transform: rotate(-45deg);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.65),
    0 2px 8px -3px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.feature-body {
  flex: 1 1 auto;
  position: relative;
}
.feature-heading .text-highlight {
  background: linear-gradient(90deg, #ffb27b, #ff9966 55%, #ff7a1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.feature-desc {
  max-width: 640px;
  line-height: 1.55;
  color: #d7dde1;
}
.player-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.player-outer {
  position: relative;
}
.player-large.player-wrapper {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
}
.player-large .sc-player {
  height: 300px;
}

/* Bottom centered partner logo */
.partner-bottom-logo {
  position: relative; /* now flows naturally above footer */
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 2;
  padding: 0.6rem 0 0.4rem;
  margin-top: 1.25rem;
}
.partner-logo-bottom {
  height: 130px;
  width: auto;
  opacity: 0.97;
  filter: drop-shadow(0 22px 52px rgba(0, 0, 0, 0.7)) brightness(1.07);
  transition: filter 0.7s ease, transform 0.7s ease;
}
.partner-logo-bottom:hover,
.partner-logo-bottom:focus-visible {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.65)) brightness(1.1);
}
@media (max-width: 575.98px) {
  body.index-no-scroll {
    overflow: auto;
  } /* allow scroll on very small screens */
  .partner-logo-bottom {
    height: 100px;
  }
}

/* Fit layout vertically: allow feature content to shrink if needed */
.feature-album-wrapper {
  display: flex;
  flex-direction: column;
}
.feature-album {
  flex: 0 0 auto;
}
.player-outer {
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 1199.98px) {
  .player-large .sc-player {
    height: 260px;
  }
  body.index-no-scroll .hero {
    min-height: calc(100vh - 80px);
  }
}
@media (max-width: 768px) {
  .player-large .sc-player {
    height: 220px;
  }
}
@media (max-width: 575.98px) {
  .player-large .sc-player {
    height: 200px;
  }
  .feature-album {
    margin-bottom: 1.25rem !important;
  }
}
.sc-player {
  border: 0;
  border-radius: 8px;
}

.logo-row {
  align-items: center;
  gap: 0.85rem;
  opacity: 0.9;
}
.logo-inline {
  height: 42px;
  width: auto;
  filter: brightness(1.05) contrast(1.05) saturate(1.05)
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
  transition: filter 0.5s ease, transform 0.6s ease;
}
.logo-inline:hover,
.logo-inline:focus-visible {
  filter: brightness(1.15) contrast(1.1) saturate(1.15)
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.65));
  transform: translateY(-2px);
}
.logo-sep {
  color: var(--color-accent-contrast);
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 1199.98px) {
  .feature-album {
    flex-direction: column !important;
    border-radius: 24px;
  }
  .feature-art {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .feature-body {
    padding-top: 2rem !important;
  }
  body.index-no-scroll .hero {
    height: auto;
    min-height: calc(100vh - 80px);
  }
}
@media (max-width: 575.98px) {
  .feature-album {
    border-radius: 20px;
  }
  .feature-art {
    max-width: 320px;
  }
  .feature-heading {
    font-size: 1.4rem;
  }
  .feature-desc {
    font-size: 0.95rem;
  }
  .logo-inline {
    height: 34px;
  }
  .ribbon-new {
    top: 10px;
    left: -38px;
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-cover,
  .logo-inline {
    transition: none !important;
    transform: none !important;
  }
}

/* =============================================
   Background Overlay / Hero Wrapper
   ============================================= */
.bg-overlay {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--color-surface-translucent);
}
.home-page .bg-overlay {
  position: relative;
  background: none; /* handled by ::before */
  isolation: isolate;
}
.home-page .bg-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(1, 24, 38, 0.88), rgba(1, 24, 38, 0.55)),
    url("../images/background.jpg") top center / cover no-repeat;
  background-attachment: fixed, fixed;
  filter: brightness(0.92) saturate(0.95);
  pointer-events: none;
}
@media (max-width: 992px) {
  .home-page .bg-overlay::before {
    position: absolute;
    background-attachment: scroll, scroll;
  }
}

/* =============================================
  Hero Section
  ============================================= */
.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: calc(100vh - var(--footer-height));
  padding: 0 1rem 3rem;
  box-sizing: border-box;
}

.hero .lead {
  font-size: 1.125rem;
  opacity: 0.95;
}

/* =============================================
   Footer
   ============================================= */
footer {
  flex-shrink: 0;
  background-color: #0f0f0f;
  border-top: 1px solid var(--color-border-subtle);
  padding: 1rem;
  text-align: center;
  color: #ffffff; /* elevated to white for readability per request */
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

/* Enhanced site footer (new icon layout) */
/* Base footer layout */
.site-footer {
  background-color: #0f0f0f;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.8rem;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  backdrop-filter: blur(6px) saturate(1.1);
  background-color: rgba(15, 15, 15, 0.85);
}

/* Tighter inner container padding for footer */
.site-footer .container {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Footer icon sizing reduced */
.site-footer .footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.05rem;
  color: var(--color-accent-contrast);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

/* New partner/brand mark (prsppl) */
.site-footer .footer-logo-prsppl {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0.95) saturate(1.05)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}
/* Responsive visibility helpers for footer logo placement */
.footer-logo-desktop {
  display: none;
}
.footer-logo-mobile {
  display: block;
}
.site-footer .footer-brand:hover .footer-logo-prsppl,
.site-footer .footer-brand:focus-visible .footer-logo-prsppl {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.05) saturate(1.15)
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

@media (max-width: 575.98px) {
  .site-footer .footer-logo-prsppl {
    height: 32px;
  }
}

@media (min-width: 576px) {
  .footer-logo-desktop {
    display: block;
  }
  .footer-logo-mobile {
    display: none;
  }
  .site-footer .footer-logo-prsppl.footer-logo-desktop {
    margin-right: 0.5rem;
  }
}

.site-footer .footer-icon-link:hover,
.site-footer .footer-icon-link:focus-visible {
  background: rgba(155, 175, 194, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.site-footer .footer-copy {
  color: #ffffff;
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  .site-footer .footer-icon-link {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  /* Footer not sticky on very small screens */
  .site-footer {
    position: static;
    padding-top: 0.6rem !important;
    padding-bottom: 0.9rem !important;
  }
  body {
    padding-bottom: 0 !important;
  }
  /* Stack sections vertically & center */
  .site-footer .row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-footer [class*="col-12"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .site-footer .streaming-links,
  .site-footer .social-links {
    justify-content: center !important;
    width: 100%;
  }
  .site-footer .footer-copy {
    order: 3;
    width: 100%;
    margin-top: 0.6rem;
  }
  .site-footer .footer-logo-prsppl {
    margin: 0.65rem auto 0.15rem;
    display: block;
  }
  /* Album content panel: remove rounded corners on phones */
  .album-content {
    border-radius: 0 !important;
  }
  /* Remove radius from main content container on small screens for edge-to-edge layout */
  .site-page main,
  .about-page main {
    border-radius: 0 !important;
  }
}

/* =============================================
   Navigation
   ============================================= */
.navbar-custom {
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Primary nav links */
.navbar-custom .navbar-nav .nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--color-text-on-dark);
}

@media (min-width: 992px) {
  .navbar-custom .navbar-nav {
    gap: 0.85rem;
  }

  .navbar-custom .navbar-nav .nav-link {
    padding: 0.55rem 1.05rem;
  }
}

/* Hover / focus states */
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus-visible {
  background-color: rgba(94, 106, 117, 0.5);
  color: #ffffff;
}

/* Active page link background color (#5E6A75) */
.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .show > .nav-link {
  background-color: #5e6a75; /* matches --color-bg-accent */
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 12px -4px rgba(0, 0, 0, 0.4);
}

/* Dropdown menu styling */
.navbar-custom .dropdown-menu {
  background-color: #26323a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.navbar-custom .dropdown-menu .dropdown-item {
  color: #f5f7f8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem 0.45rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  border-radius: 0;
}
.navbar-custom .dropdown-menu .dropdown-item:hover,
.navbar-custom .dropdown-menu .dropdown-item:focus-visible {
  background-color: rgba(94, 106, 117, 0.55);
  color: #ffffff;
}
.navbar-custom .dropdown-menu .dropdown-item.active,
.navbar-custom .dropdown-menu .dropdown-item[aria-current="page"] {
  background-color: #5e6a75;
  color: #ffffff;
  font-weight: 600;
}
.navbar-custom .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Maintain contrast when navbar collapses */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-nav .nav-link {
    margin: 2px 0;
  }
}

/* =============================================
   Album Pages: Background images (outer body layer)
   NOTE: Inner panel styling lives in album.css
   ============================================= */
.album-page {
  /* Ensure body spans at least the viewport height */
  min-height: 100vh;
  /* Establish stacking context for ::before background layer */
  position: relative;
}

/* Fixed, full-viewport background layer for album pages (more reliable across browsers) */
.album-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0; /* beneath page content */
  pointer-events: none;
}

.album-page.reel-to-reel-page::before {
  background-image: url("../images/hnh/albums/backgrounds/tape-recorder.webp");
}
.album-page.academic-life-page::before {
  background-image: url("../images/hnh/albums/backgrounds/grid-paper.webp");
}
.album-page.island-in-the-city-page::before {
  background-image: url("../images/hnh/albums/backgrounds/island.webp");
}
.album-page.long-highway-road-page::before {
  background-image: url("../images/hnh/albums/backgrounds/highway.webp");
}
.album-page.reflections-page::before {
  background-image: url("../images/hnh/albums/backgrounds/landscape.webp");
}
/* Relax Listen collection backgrounds */
.album-page.gallery-page::before {
  background-image: url("../images/relax-listen/albums/backgrounds/gallery.webp");
}
.album-page.in-time-page::before {
  background-image: url("../images/relax-listen/albums/backgrounds/in-time.webp");
}
.album-page.looking-glass-page::before {
  background-image: url("../images/relax-listen/albums/backgrounds/looking-glass.webp");
}
.album-page.metaphor-page::before {
  background-image: linear-gradient(
    140deg,
    rgba(1, 24, 38, 0.9),
    rgba(94, 106, 117, 0.55)
  );
}
.album-page.re-invented-page::before {
  background-image: url("../images/relax-listen/albums/backgrounds/re-invented.webp");
}
.album-page.relax-listen-page::before {
  background-image: linear-gradient(
    140deg,
    rgba(1, 24, 38, 0.9),
    rgba(94, 106, 117, 0.55)
  );
}
.album-page.tonight-page::before {
  background-image: url("../images/relax-listen/albums/backgrounds/tonight.webp");
}

/* =============================================
   Albums Listing Page (aggregated albums page)
   ============================================= */
.site-page {
  background: radial-gradient(
      circle at 25% 20%,
      rgba(155, 175, 194, 0.15),
      rgba(155, 175, 194, 0) 55%
    ),
    radial-gradient(
      circle at 75% 70%,
      rgba(94, 106, 117, 0.18),
      rgba(94, 106, 117, 0) 60%
    ),
    linear-gradient(
      115deg,
      rgba(1, 24, 38, 0.94) 0%,
      rgba(1, 40, 60, 0.88) 38%,
      rgba(1, 24, 38, 0.94) 75%
    ),
    linear-gradient(180deg, #011826 0%, #082536 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: cover, cover, cover, cover;
  background-position: center top, center top, center top, center top;
  color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-page main {
  flex: 1 0 auto;
  background: rgba(1, 24, 38, 0.55);
  backdrop-filter: blur(6px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem 3rem 4rem;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .site-page {
    background-attachment: scroll;
  }
  .site-page main {
    padding: 2.25rem 1.5rem 3rem;
    border-radius: 12px;
  }
}

.album-card {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  line-height: 0;
  transition: none;
}

.album-card img {
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 1.2s ease, opacity 1.2s ease, filter 1.2s ease,
    border-color 0.6s ease;
  will-change: transform, filter, opacity;
  background: #011826;
  transform: scale(1);
  object-fit: cover;
  opacity: 0.82;
  filter: brightness(0.9) saturate(0.9);
}

/* Dark overlay to replace glow & border effects */
.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.7));
  mix-blend-mode: normal;
  opacity: 0.25;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 2;
}

.album-card:hover::after,
.album-card:focus-visible::after {
  opacity: 0.05; /* lighten overlay to reveal image more while zooming */
}

.album-card:hover img,
.album-card:focus-visible img {
  filter: brightness(1.05) saturate(1.05) contrast(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.12);
  opacity: 1;
}

.album-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

/* Captions removed visually; any residual figcaption styles no longer required */

/* Gallery figure caption color override (requested) */
.figure-caption {
  color: var(--color-accent-contrast) !important;
}

/* sheen animation removed */

/* Reduced motion: disable dramatic transforms & animations */
@media (prefers-reduced-motion: reduce) {
  .album-card,
  .album-card img {
    transition: none !important;
  }
  .album-card:hover img,
  .album-card:focus-visible img {
    transform: none;
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
  .album-card::before,
  .album-card::after,
  .album-card .album-sheen {
    animation: none !important;
    background-position: 0 0;
  }
}

/* =============================================
   Buttons
   ============================================= */
.btn-cta {
  min-width: 140px;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  /* Center album cards & make images fluid on very small screens */
  .site-page .row .col {
    display: flex;
    justify-content: center;
  }
  .site-page .album-card {
    width: 100%;
    max-width: 260px; /* slightly smaller for small devices */
  }
  .site-page .album-card img {
    width: 100% !important;
    height: auto;
    max-width: 260px;
  }
}
@media (max-width: 992px) {
  .bg-overlay {
    background-attachment: scroll;
  }
}
/* Fine-tune background position for different screen sizes */
@media (min-width: 1200px) {
  :root {
    --bg-pos-y: 28%;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  :root {
    --bg-pos-y: 34%;
  }
}
@media (max-width: 767.98px) {
  :root {
    --bg-pos-y: 45%;
  }
}

/* =============================================
   About Page Enhancements
   ============================================= */
.about-main {
  /* Removed custom max-width so pages using .about-main match standard Bootstrap .container widths (same as albums pages). */
  padding-top: calc(
    var(--nav-height) + 1.25rem
  ) !important; /* ensure H1 clears fixed navbar */
}

.about-main header .lead {
  max-width: 820px;
}

/* Subtle tracking utility */
.tracking-wide {
  letter-spacing: 0.08em;
}

/* Generic page main heading spacing (non-index pages) */
.site-page main > h1:first-child,
.site-page .about-main > h1:first-child {
  margin-top: 0.25rem; /* small visual offset below computed padding */
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* Offset fixed navbar for generic content pages (albums, relax-listen, etc.) */
.site-page > main {
  padding-top: calc(var(--nav-height) + 1.25rem) !important;
}

/* Profile Cards */
.member-profiles .profile-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 42px -18px rgba(0, 0, 0, 0.55),
    0 4px 18px -6px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px) saturate(1.05);
  transition: border-color 0.5s ease, transform 0.6s ease;
}

.member-profiles .profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 15%,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.member-profiles .profile-card:hover,
.member-profiles .profile-card:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

/* Gradient border accent using masking */
.border-gradient {
  position: relative;
  z-index: 0;
}
.border-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px; /* border thickness */
  background: linear-gradient(130deg, #5e6a75, #ffffff22, #5e6a75);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
}

.profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05) saturate(1.05);
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.6);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.profile-card:hover .profile-img,
.profile-card:focus-within .profile-img {
  filter: brightness(1.05) contrast(1.08) saturate(1.15);
  transform: scale(1.03);
}

@media (max-width: 575.98px) {
  .profile-img {
    width: 120px;
    height: 120px;
  }
}

/* Section spacing refinements */
.about-main section + section {
  scroll-margin-top: 5rem;
}

/* Utility class for light emphasis text on dark backgrounds */
.text-light-emphasis {
  color: #d7dde1;
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  .member-profiles .profile-card,
  .profile-img {
    transition: none !important;
    transform: none !important;
  }
}

/* =============================================
   About Page Readability & Headings
   ============================================= */
.about-main p {
  line-height: 1.6;
  letter-spacing: 0.15px;
}
.about-main p + p {
  margin-top: 0.85rem;
}

/* Improve muted text contrast inside about page */
.about-main .text-muted {
  color: #b8c2c9 !important;
}

/* Custom label (replacing low-contrast badge) */
.about-label {
  --_glow: none;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0;
  .about-label .contact-item {
    padding-left: 0 !important;
  }
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* Mobile refinement: make the label a card with stacked contact items */
@media (max-width: 575.98px) {
  .about-label {
    display: block;
    width: 100%;
    padding: 0.85rem 1.1rem 0.6rem;
    letter-spacing: 0.14em;
    border-radius: 1.25rem;
    margin-inline: auto;
    text-align: left;
    background: transparent;
  }
  .about-label strong {
    gap: 0.65rem !important;
    align-items: stretch;
  }
  .about-label .contact-item {
    position: relative;
    padding: 0.55rem 0.75rem 0.4rem;
    background: transparent; /* remove background */
    border: none; /* remove border per request */
    border-radius: 0.75rem;
    font-weight: 600;
    text-transform: none; /* allow natural case */
    letter-spacing: 0.05em;
  }
  .about-label .contact-item:focus-within {
    outline: 2px solid var(--color-accent-contrast);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.12);
  }
  .about-label .contact-item i {
    font-size: 1rem;
    margin-right: 0.4rem !important;
  }
  .about-label .contact-item a {
    font-size: 0.83rem;
    line-height: 1.3;
  }
  /* Hide middle dot separator on mobile */
  .about-label .d-none.d-sm-inline[aria-hidden="true"] {
    display: none !important;
  }
}

/* Strong accent for section headings */
.about-section-title {
  position: relative;
  padding-left: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--color-accent-contrast);
}
.about-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.1em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--color-accent-contrast),
    color-mix(in srgb, var(--color-accent-contrast) 55%, transparent) 85%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 14px -4px rgba(0, 0, 0, 0.6);
}

/* Title subtle underline */
.about-page-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}
.about-page-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-contrast),
    color-mix(in srgb, var(--color-accent-contrast) 55%, transparent) 65%,
    transparent 100%
  );
  border-radius: 2px;
  opacity: 0.9;
}

/* Contained hero (no viewport breakout) */
.about-hero-full {
  width: 100%;
  margin: 0 0 2.75rem 0;
  padding: 1.75rem 2rem 2rem; /* reduced top / slightly reduced bottom */
  background: radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(135deg, rgba(1, 24, 38, 0.94), rgba(1, 24, 38, 0.78));
  backdrop-filter: blur(3px) saturate(1.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.65),
    0 4px 14px -6px rgba(0, 0, 0, 0.5);
}
.about-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}
.about-hero-full .about-lead {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .about-hero-full {
    padding: 1.5rem 1rem 1.6rem;
    border-radius: 18px;
  }
  .about-hero-full .about-lead {
    font-size: 1.05rem;
  }
}

@media (min-width: 1400px) {
  .about-hero-full {
    padding: 2.5rem 2.5rem 2.4rem;
  }
  .about-hero-full .about-page-title {
    font-size: 3.25rem;
  }
}

/* Reviews grid & cards */
.reviews-grid {
  --review-card-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
}
.review-card {
  position: relative;
  background: var(--review-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(4px) saturate(1.05);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.45s ease;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.55),
    0 2px 6px -4px rgba(0, 0, 0, 0.55);
  cursor: pointer; /* Make entire card indicate clickability */
}
.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 18% 20%,
    rgba(255, 255, 255, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.review-card:hover,
.review-card:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.65),
    0 4px 14px -6px rgba(0, 0, 0, 0.55);
  transform: translateY(-4px);
}
.review-card:hover::before,
.review-card:focus-within::before {
  opacity: 1;
}
.review-card .review-meta {
  letter-spacing: 0.12em;
  color: #b7c4cc;
}
.review-card .review-title a {
  color: #fff;
  position: relative;
}
.review-card .review-title a:hover,
.review-card .review-title a:focus-visible {
  color: var(--color-accent-contrast);
}
.review-card .review-title a.stretched-link::after {
  /* Ensure pseudo-element sits above inner content for full-card hover & pointer */
  z-index: 3;
}
.review-snippet {
  color: #d4dde3;
  line-height: 1.4;
}

/* Publication logo inside review cards */
.review-card-header {
  position: relative;
  background: linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0) 55%
    ),
    radial-gradient(
      circle at 50% 35%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, #051b29, #0c3146 65%, var(--color-accent-contrast));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.review-card-body {
  position: relative;
}
.review-pub-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.review-logo-img {
  height: 64px;
  width: auto;
  max-width: 180px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) brightness(1.05);
  opacity: 0.97;
  transition: opacity 0.4s ease, transform 0.6s ease, filter 0.6s ease;
}
.review-card:hover .review-logo-img,
.review-card:focus-within .review-logo-img {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.65)) brightness(1.08);
}
/* moved hover transform into enhanced block above */

@media (max-width: 575.98px) {
  .review-logo-img {
    height: 52px;
  }
  .review-pub-logo {
    min-height: 52px;
  }
  .review-card-header {
    padding: 1.75rem 1rem 1.1rem !important;
  }
}

/* Reviews footer note ("More press") */
.reviews-footer-note {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-top: 0.75rem;
}
.reviews-footer-note a {
  color: var(--color-accent-contrast);
  text-decoration: none;
  font-weight: 600;
}
.reviews-footer-note a:hover,
.reviews-footer-note a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .review-card {
    padding: 1.25rem 1.1rem !important;
  }
  .review-card .review-title {
    font-size: 0.95rem;
  }
}

/* Lead (reverted to simple, high-contrast text) */
.about-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 860px;
  color: #ffffff !important; /* enforce pure white for maximum legibility */
  letter-spacing: 0.15px;
  margin-bottom: 0.75rem;
}

/* Optional: accent colour variant (apply alongside .about-lead if desired) */
.about-lead.accented {
  color: var(--color-accent-contrast);
}

/* Adjust profile body copy size for readability */
.member-profiles .profile-body {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Accent color for role lines under member names */
.member-profiles .text-muted {
  color: #9bafc2 !important;
}

@media (min-width: 992px) {
  .about-lead {
    font-size: 1.22rem;
  }
  .member-profiles .profile-body {
    font-size: 0.93rem;
  }
}

/* Relax Listen logo sizing */
.relax-listen-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)) brightness(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.relax-listen-logo:hover,
.relax-listen-logo:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6)) brightness(1.06);
}

/* High contrast focus ring override for custom label if focused */
.about-label:focus-visible {
  outline: 3px solid var(--color-accent-contrast);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(155, 175, 194, 0.35);
}

/* =============================================
   Relax Listen About Page Background (image path updated)
   ============================================= */
.about-page {
  background: linear-gradient(
      115deg,
      rgba(1, 24, 38, 0.94) 0%,
      rgba(1, 40, 60, 0.88) 38%,
      rgba(1, 24, 38, 0.94) 75%
    ),
    linear-gradient(180deg, #011826 0%, #082536 100%);
  color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed, fixed;
  background-size: cover, cover;
  background-position: center top, center top;
}

.relax-listen-about-page {
  position: relative;
  isolation: isolate;
}
.relax-listen-about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(rgba(1, 24, 38, 0.85), rgba(1, 24, 38, 0.55)),
    url("../images/relax-listen-background.webp") center / cover no-repeat;
  background-attachment: fixed, fixed;
  filter: brightness(0.92) saturate(0.95);
}

.about-page main {
  flex: 1 0 auto;
  background: rgba(1, 24, 38, 0.55);
  backdrop-filter: blur(6px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem 3rem 4rem;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .about-page {
    background-attachment: scroll, scroll;
  }
  .relax-listen-about-page::before {
    position: absolute;
    background-attachment: scroll, scroll;
  }
  .about-page main {
    padding: 2.25rem 1.5rem 3rem;
    border-radius: 12px;
  }
}
