/* ============================================================
   Backdoor Blues Band — coming soon
   Dark, smoky, cinematic. 1am in a dim-lit bar.
   ============================================================ */

:root {
  --bg:        #0B0B0C;   /* near-black charcoal */
  --bg-2:      #131013;   /* warm shadow */
  --amber:     #C8871A;   /* bourbon amber accent */
  --amber-hi:  #e6a638;
  --amber-lo:  #8a5c11;
  --ivory:     #F2ECDD;   /* off-white text */
  --ivory-dim: rgba(242, 236, 221, 0.64);
  --ivory-fnt: rgba(242, 236, 221, 0.34);
  --red:       #B4321F;   /* hot red CTA */
  --red-hot:   #d23c26;
  --line:      rgba(242, 236, 221, 0.10);

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ---------- Global film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.hero-media img {
  object-fit: cover;
  object-position: 50% 42%;
  animation: heroIn 1.6s var(--ease) both;
}
@keyframes heroIn {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* darkening scrim: legibility bottom-left, band visible in the middle */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.62) 0%, rgba(11,11,12,0.12) 26%, rgba(11,11,12,0.30) 58%, rgba(11,11,12,0.90) 100%),
    linear-gradient(75deg, rgba(11,11,12,0.78) 0%, rgba(11,11,12,0.30) 46%, transparent 72%);
}
/* faint tungsten bloom to marry the CSS accent to the photo's warm light */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 0.5;
  background: radial-gradient(46% 40% at 66% 40%, rgba(200,135,26,0.20) 0%, transparent 66%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vh, 2.6rem) clamp(1.25rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  animation: rise 1s var(--ease) 0.2s both;
}
.kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 10px 1px rgba(210, 60, 38, 0.85);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.82); }
}

/* ---------- Wordmark ---------- */
.hero-copy { display: flex; flex-direction: column; gap: 1.05rem; }

.wordmark {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-size: clamp(2.45rem, 11vw, 8rem);
  color: var(--ivory);
  text-shadow: 0 2px 44px rgba(0, 0, 0, 0.72);
}
.wordmark .line { display: block; animation: rise 1.1s var(--ease) both; }
.wordmark .line:nth-child(1) { animation-delay: 0.35s; }
.wordmark .line:nth-child(2) { animation-delay: 0.46s; }
.wordmark .line:nth-child(3) { animation-delay: 0.57s; }
.wordmark .accent {
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 55%, var(--amber-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 44px rgba(200, 135, 26, 0.3);
}

.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  font-weight: 500;
  color: var(--ivory);
  text-shadow: 0 1px 20px rgba(0,0,0,0.6);
  animation: rise 1.1s var(--ease) 0.66s both;
}
.blurb {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  line-height: 1.6;
  color: var(--ivory-dim);
  text-shadow: 0 1px 16px rgba(0,0,0,0.7);
  animation: rise 1.1s var(--ease) 0.76s both;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) clamp(1.25rem, 5vw, 2rem) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 9vh, 5.5rem);
}

/* ---------- Equalizer (single ambient motion piece) ---------- */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
  margin-bottom: 1.5rem;
}
.equalizer span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-lo) 100%);
  box-shadow: 0 0 8px rgba(200, 135, 26, 0.35);
  animation: bar 1.4s ease-in-out infinite;
  opacity: 0.85;
}
.equalizer span:nth-child(1)  { animation-delay: -0.1s;  animation-duration: 1.5s; }
.equalizer span:nth-child(2)  { animation-delay: -0.9s;  animation-duration: 1.7s; }
.equalizer span:nth-child(3)  { animation-delay: -0.4s;  animation-duration: 1.2s; }
.equalizer span:nth-child(4)  { animation-delay: -1.1s;  animation-duration: 1.9s; }
.equalizer span:nth-child(5)  { animation-delay: -0.2s;  animation-duration: 1.4s; }
.equalizer span:nth-child(6)  { animation-delay: -0.7s;  animation-duration: 1.6s; }
.equalizer span:nth-child(7)  { animation-delay: -1.3s;  animation-duration: 1.3s; }
.equalizer span:nth-child(8)  { animation-delay: -0.5s;  animation-duration: 2.0s; }
.equalizer span:nth-child(9)  { animation-delay: -1.0s;  animation-duration: 1.5s; }
.equalizer span:nth-child(10) { animation-delay: -0.3s;  animation-duration: 1.7s; }
.equalizer span:nth-child(11) { animation-delay: -0.8s;  animation-duration: 1.2s; }
.equalizer span:nth-child(12) { animation-delay: -1.2s;  animation-duration: 1.8s; }
.equalizer span:nth-child(13) { animation-delay: -0.6s;  animation-duration: 1.4s; }
.equalizer span:nth-child(14) { animation-delay: -0.15s; animation-duration: 1.6s; }
.equalizer span:nth-child(15) { animation-delay: -0.95s; animation-duration: 1.3s; }
@keyframes bar {
  0%, 100% { height: 8px; opacity: 0.55; }
  50%      { height: 40px; opacity: 1; }
}

/* ---------- Signup ---------- */
.signup-title {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.01em;
}
.signup-sub {
  margin: 0 0 1.2rem;
  max-width: 46ch;
  font-size: 0.95rem;
  color: var(--ivory-dim);
}
.form { max-width: 480px; }
.field {
  display: flex;
  gap: 0.5rem;
  padding: 6px;
  border: 1px solid rgba(242, 236, 221, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field:focus-within {
  border-color: rgba(200, 135, 26, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 135, 26, 0.12);
}
.field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  outline: none;
}
.field input::placeholder { color: var(--ivory-fnt); }

.btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
  padding: 0.7rem 1.5rem;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 100%);
  box-shadow: 0 6px 18px -6px rgba(180, 50, 31, 0.7), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 24px -6px rgba(180, 50, 31, 0.8); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.status {
  margin: 0.85rem 2px 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--ivory-dim);
  transition: color 0.3s var(--ease);
}
.status.ok  { color: var(--amber); }
.status.err { color: var(--red-hot); }

/* ============================================================
   GALLERY
   ============================================================ */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,12,0.45) 100%);
  pointer-events: none;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.shot:hover img { transform: scale(1.05); filter: saturate(1.12) contrast(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--maxw);
  margin: clamp(3rem, 9vh, 5.5rem) auto 0;
  padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}
.socials { display: flex; gap: 0.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--ivory-dim);
  border: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover {
  color: var(--amber);
  border-color: rgba(200, 135, 26, 0.45);
  background: rgba(200, 135, 26, 0.06);
  transform: translateY(-2px);
}
.socials a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.copyright {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.6);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column-reverse; align-items: flex-start; }
  .hero-media img { object-position: 62% 42%; }
}

/* ---------- Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .equalizer span { height: 22px; opacity: 0.8; }
  .hero-media img { transform: none; opacity: 1; }
}
