:root {
  --pine-deep: #1e4d32;
  --night-indigo: #2c3e6b;
  --canopy: #3d8b4e;
  --lake-teal: #4ecdc4;
  --sunset: #f4a460;
  --ember: #e85d04;
  --dawn: #fff8e7;
  --sky: #b8e0f5;
  --panel: #5c4033;
  --mist: #9ba8b4;
  --shadow: rgba(15, 46, 28, 0.45);
  --spine-w: 11.5rem;
  --dock-h: 4.25rem;
  --radius: 1.125rem;
  --font: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dawn);
  background: var(--pine-deep);
  line-height: 1.55;
  display: grid;
  grid-template-columns: var(--spine-w) minmax(0, 1fr);
  align-items: start;
}

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

a {
  color: var(--lake-teal);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dawn);
  color: var(--pine-deep);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* —— Left spine (desktop) —— */
.spine {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: var(--spine-w);
  min-height: 100vh;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(180deg, var(--night-indigo) 0%, var(--pine-deep) 100%);
  border-right: 1px solid rgba(255, 248, 231, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 20;
}

.spine-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.spine-brand img {
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px var(--shadow);
}

.spine-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.spine-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spine-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: rgba(255, 248, 231, 0.75);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.spine-nav a .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mist);
  opacity: 0.5;
}

.spine-nav a.is-active,
.spine-nav a:hover {
  background: rgba(61, 139, 78, 0.25);
  color: var(--dawn);
}

.spine-nav a.is-active .dot {
  background: var(--sunset);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(244, 164, 96, 0.25);
}

.spine-note {
  margin: auto 0 0;
  font-size: 0.78rem;
  color: rgba(184, 224, 245, 0.65);
  line-height: 1.4;
}

main {
  grid-column: 2;
  grid-row: 1;
  min-height: 100vh;
  padding-bottom: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 56rem);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(30, 77, 50, 0.92) 0%, rgba(44, 62, 107, 0.55) 45%, rgba(30, 77, 50, 0.85) 100%),
    url("assets/hero-bg.png") center / cover no-repeat;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sunset);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 800;
}

.lead {
  font-size: 1.05rem;
  max-width: 36rem;
  color: rgba(255, 248, 231, 0.88);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset), var(--ember));
  color: var(--pine-deep);
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 248, 231, 0.35);
  color: var(--dawn);
  background: rgba(44, 62, 107, 0.35);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sky);
}

.hero-device {
  position: relative;
  margin: 0;
  justify-self: end;
  max-width: 17rem;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.hero-device > img:first-child {
  border-radius: 1.75rem;
  border: 3px solid rgba(255, 248, 231, 0.15);
}

.hero-float {
  position: absolute;
  animation: float 4.5s ease-in-out infinite;
}

.hero-float.smoke {
  top: 18%;
  left: -8%;
}

.hero-float.bear {
  bottom: 12%;
  right: -6%;
  animation-delay: 1.2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* —— Bands —— */
.band {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.band-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.band-head-right {
  margin-left: auto;
  text-align: right;
}

.band-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0 0 0.65rem;
}

.band-head p {
  margin: 0;
  color: rgba(184, 224, 245, 0.9);
}

.band-patrol {
  background: linear-gradient(180deg, var(--pine-deep), #163d28);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px dashed rgba(244, 164, 96, 0.45);
  max-width: 42rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.38rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--lake-teal);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.25);
}

.step-num {
  font-weight: 800;
  color: var(--sunset);
  font-size: 0.85rem;
  padding-top: 0.15rem;
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.timeline p {
  margin: 0;
  color: rgba(255, 248, 231, 0.82);
  font-size: 0.95rem;
}

.band-gallery {
  background: var(--night-indigo);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 56rem;
}

.mosaic figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 248, 231, 0.1);
}

.mosaic-large {
  grid-row: span 2;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 10rem;
}

.mosaic-large img {
  min-height: 22rem;
}

.mosaic figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(30, 77, 50, 0.85);
  color: var(--dawn);
}

.band-legal {
  background: #142a1f;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  max-width: 56rem;
}

.legal-intro h2 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--mist);
  margin: 0 0 1rem;
}

.legal-panels details {
  background: rgba(44, 62, 107, 0.35);
  border: 1px solid rgba(255, 248, 231, 0.08);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.legal-panels summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dawn);
}

.legal-panels p,
.legal-panels ul {
  color: rgba(255, 248, 231, 0.85);
  font-size: 0.92rem;
}

.band-support {
  background: linear-gradient(160deg, #1a3328, var(--night-indigo));
}

.support-card {
  max-width: 56rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(92, 64, 51, 0.55);
  border: 1px solid rgba(244, 164, 96, 0.25);
  box-shadow: 0 20px 50px var(--shadow);
}

.support-list {
  padding-left: 1.1rem;
  color: rgba(255, 248, 231, 0.88);
}

.support-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.support-form input,
.support-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 248, 231, 0.2);
  background: rgba(30, 77, 50, 0.6);
  color: var(--dawn);
  font-family: inherit;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--mist);
  margin: 0.65rem 0 0;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: rgba(184, 224, 245, 0.75);
  font-size: 0.85rem;
}

.site-footer img {
  margin: 0 auto 0.65rem;
  border-radius: 0.5rem;
}

.footer-links a {
  color: var(--sunset);
  text-decoration: none;
  font-weight: 600;
}

/* —— Mobile dock —— */
.dock {
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-height: var(--dock-h);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(30, 77, 50, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 248, 231, 0.12);
  z-index: 30;
  justify-content: space-around;
  align-items: stretch;
}

.dock a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 248, 231, 0.65);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 0.65rem;
}

.dock a.is-active {
  color: var(--dawn);
  background: rgba(61, 139, 78, 0.35);
}

@media (max-width: 960px) {
  body {
    grid-template-columns: minmax(0, 1fr);
  }

  .spine {
    display: none;
  }

  main {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 0;
  }

  .dock {
    display: flex;
    grid-column: 1;
    grid-row: 2;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-device {
    justify-self: center;
    max-width: 14rem;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-large {
    grid-row: auto;
  }

  .legal-grid,
  .support-card {
    grid-template-columns: 1fr;
  }

  .band-head-right {
    text-align: left;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-float {
    animation: none;
  }
}
