/* ============================================================
   GHOSTLINE SOUTH — design tokens
   ============================================================ */
:root {
  --black:        #0b0907;
  --panel:        #141009;
  --panel-2:      #1a140d;
  --copper:       #c2682f;
  --copper-light: #e08a4f;
  --cream:        #f3ede2;
  --tan:          #a89c8a;
  --line:         rgba(194, 104, 47, 0.35);

  --display: 'Anton', sans-serif;
  --label:   'Oswald', sans-serif;
  --body:    'Inter', sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 3px;
}

/* film grain overlay — subtle, signature texture across whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   shared bits
   ============================================================ */
.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-size: 0.8rem;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow--center { justify-content: center; }
.eyebrow--follow { margin-top: 2.2rem; }

.star { display: inline-block; transform: translateY(-1px); }

.section-heading {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-block;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--copper);
  background: transparent;
}

.btn--outline { color: var(--cream); }
.btn--outline:hover { background: var(--copper); color: var(--black); }

.btn--solid { background: var(--copper); color: var(--black); border-color: var(--copper); }
.btn--solid:hover { background: var(--copper-light); border-color: var(--copper-light); }

.btn--small { padding: 0.7rem 1.5rem; font-size: 0.75rem; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.1rem 1.5rem;
  background: rgba(11, 9, 7, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  flex: 1;
}

.nav-links--right { justify-content: flex-end; }

.nav-links a { position: relative; padding: 0.3rem 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 499;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  .site-nav { position: sticky; justify-content: space-between; }
  .nav-links--left, .nav-links--right { display: none; }
  .nav-toggle { display: flex; order: -1; z-index: 1; }
  .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-logo img { height: 46px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,9,7,0.35) 0%, rgba(11,9,7,0.15) 30%, rgba(11,9,7,0.55) 70%, rgba(11,9,7,0.96) 100%);
}

/* On tall/narrow mobile viewports, "cover" crops the sides of the
   hero photo hard enough to cut people out of frame. Switch to
   "contain" so the full width (and everyone in it) is always
   visible, anchored to the top, letterboxed into the page's own
   near-black background rather than cropped. */
@media (max-width: 760px) {
  .hero { min-height: 78vh; }
  .hero-bg {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: var(--black);
    transform: none;
  }
  .hero-fade {
    background:
      linear-gradient(180deg, rgba(11,9,7,0) 0%, rgba(11,9,7,0.05) 55%, rgba(11,9,7,0.85) 78%, rgba(11,9,7,0.99) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.eyebrow--hero { color: var(--copper-light); }

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-sub {
  font-family: var(--label);
  color: var(--copper);
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  margin: 0 0 2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--copper);
  opacity: 0.85;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ============================================================
   THE STORY
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}

.bio p { color: var(--tan); margin: 0 0 1.1rem; font-size: 1rem; }
.bio p:first-child { color: var(--cream); font-size: 1.05rem; }

.bio-more {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.5s ease;
}
.bio-more > * { min-height: 0; }
.bio-more-inner { overflow: hidden; }
.bio-more.is-open { grid-template-rows: 1fr; }

#bioToggle { margin-top: 0.5rem; }

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-image { order: -1; }
}

/* ============================================================
   THE SOUND
   ============================================================ */
.sound-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.cover-flip {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  overflow: hidden;
}

.cover-flip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.cover-flip-img.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cover-flip-img { transition: none; }
  .cover-flip-img:not(.is-visible) { display: none; }
}

.sound-caption {
  font-family: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--copper);
  text-align: center;
  margin: 1rem 0 0;
}

.track-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  margin: 0 0 0.2rem;
}

.track-artist {
  color: var(--tan);
  margin: 0 0 1.5rem;
  font-family: var(--label);
  letter-spacing: 0.04em;
}

.spotify-placeholder {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  color: var(--tan);
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}
.spotify-placeholder svg { flex-shrink: 0; color: var(--copper); }

.platform-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-family: var(--label);
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.platform-link:hover { border-color: var(--copper); background: var(--panel); }

.platform-link--pending {
  color: var(--tan);
  cursor: default;
  pointer-events: none;
}

.pending-tag {
  margin-left: auto;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--copper);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

.platform-logo--apple { height: 30px; width: auto; display: block; }
.platform-logo--amazon { height: 22px; width: auto; display: block; }
.platform-logo--gumroad { height: 18px; width: auto; display: block; }

@media (max-width: 760px) {
  .sound-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

.release-secondary {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.release-secondary .track-title { margin-top: 0.3rem; }

.release-secondary-copy {
  color: var(--tan);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.release-secondary-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-link--icon {
  gap: 0.5rem;
  font-size: 0.85rem;
}
.platform-link--icon svg { color: var(--copper); flex-shrink: 0; }

.platform-link--inline {
  display: inline-flex;
  width: auto;
}

.catalog-item {
  margin-bottom: 2.2rem;
}
.catalog-item:last-child { margin-bottom: 0; }

.catalog-title {
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: var(--cream);
  margin: 0 0 0.9rem;
}

.watch-thumbs-wrap {
  position: relative;
  margin: 0 auto;
}

.watch-thumbs-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0.2rem 0.6rem;
}
.watch-thumbs-grid::-webkit-scrollbar { display: none; }

.watch-thumb {
  position: relative;
  display: block;
  flex: 0 0 calc(25% - 1.125rem);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
}

.watch-scroll-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--copper);
  background: rgba(11,9,7,0.8);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.watch-scroll-btn:hover { background: rgba(11,9,7,1); }
.watch-scroll-btn:disabled { opacity: 0.25; cursor: default; }
.watch-scroll-btn--prev { left: -14px; }
.watch-scroll-btn--next { right: -14px; }

@media (max-width: 760px) {
  .watch-thumb { flex: 0 0 78%; }
  .watch-scroll-btn { display: none; }
}

.watch-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.watch-thumb:hover img { transform: scale(1.04); filter: brightness(0.4) saturate(0.9); }

.play-button--small {
  width: 44px;
  height: 44px;
}

.watch-thumb-title {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--cream);
  background: rgba(11,9,7,0.7);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
}

.catalog-tag {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tan);
  border: 1px solid var(--line);
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   TRACKLIST (now lives inside The Sound section)
   ============================================================ */
.tracklist {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.tracklist-items {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  row-gap: 0.9rem;
  text-align: left;
}

.tracklist-items li {
  font-family: var(--body);
  color: var(--cream);
  font-size: 0.95rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.tracklist-num {
  font-family: var(--label);
  color: var(--copper);
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 1.4rem;
}

.tracklist-tag {
  margin-left: auto;
  font-family: var(--label);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan);
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .tracklist-items { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================================
   ============================================================ */
   WATCH
   ============================================================ */
.watch-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}

.video-card {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
  /* reset default <button> chrome so it matches the old <a> look */
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.video-card:hover img { transform: scale(1.04); filter: brightness(0.4) saturate(0.9); }

.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--copper);
  background: rgba(11,9,7,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.video-card-tag {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  font-family: var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--cream);
  background: rgba(11,9,7,0.7);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
}

/* Real embedded player, swapped in on click via script.js */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .watch-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ============================================================
   CONTACT / STAY ON THE LINE / FOOTER
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

.contact-copy { color: var(--tan); margin: 0 0 1.4rem; }

.mail-form {
  display: flex;
  gap: 0.7rem;
  max-width: 440px;
}
.mail-form input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.92rem;
}
.mail-form input::placeholder { color: var(--tan); }
.mail-form input:focus { border-color: var(--copper); outline: none; }

/* Mailchimp spam-trap field — visually hidden but still present in
   the DOM/tab order needs to be avoided too, hence tabindex="-1"
   in the markup. Real visitors never see or interact with this. */
.mc-honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mail-confirm {
  color: var(--copper-light);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  display: none;
}
.mail-confirm.is-visible { display: block; }

.contact-email {
  display: inline-block;
  font-family: var(--label);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.2rem;
  margin-bottom: 0.5rem;
}
.contact-email:hover { color: var(--copper-light); border-color: var(--copper-light); }

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
}
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-row a:hover { border-color: var(--copper); color: var(--copper-light); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .mail-form { flex-direction: column; max-width: 100%; }
}

.footer {
  max-width: var(--max-width);
  margin: 4.5rem auto 0;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { height: 36px; width: auto; opacity: 0.85; }
.footer-copy { color: var(--tan); font-size: 0.78rem; margin: 0; }
.footer-email { color: var(--tan); font-size: 0.78rem; }
.footer-email:hover { color: var(--copper-light); }

@media (max-width: 600px) {
  .footer { justify-content: center; text-align: center; }
}

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
