/*CSS*/
:root{
  --bg: #0c0e12;
  --text: #ebf0e8;
  --muted: #9aa3af;
  --accent: #27ae60;
  --accent-hover: #1f8e4d;
  --edge: rgba(255,255,255,0.06);
  --radius: 20px;
  --maxw: 1200px;
  --video-h: clamp(180px, 42vw, 560px);
  --media-bg: #101521;
  /* NEW: sticky heights */
  --nav-h: 48px;      /* adjust to your actual nav height */
  --subnav-h: 40px;   /* adjust based on your sub-nav pill bar */
}

/* Base */
*{ box-sizing: border-box; }
html, body{ 
  margin: 0; 
  padding: 0; 
  background: var(--bg); 
  color: var(--text); 
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* adjust to match your nav+banner height */
}

a{ 
  color: var(--accent); 
  text-decoration: none; 
}

a:hover{ 
  color: var(--accent-hover); 
  text-decoration: underline; 
}

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

/* Banner: show the full image (no cropping) */
#seasonal-banner{
  line-height: 0;                 /* removes stray baseline gap */
  border-bottom: 1px solid var(--edge);
  /* remove any min-height/height you previously set here */
}

#seasonal-banner img{
  display: block;
  width: 100%;
  height: auto;                   /* <-- key: preserve full image */
  /* remove: object-fit: cover; */
}

/* Transparent sticky nav just under the banner */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  /* slightly slimmer so it doesn’t ride up into the banner */
  padding: 6px 20px;          /* was 12px 20px */
  background: transparent;    /* transparent bar */
  backdrop-filter: none;      /* no global blur */
  border-bottom: none;        /* let the banner edge show cleanly */
}

/* Pills for logo + buttons only */
.site-nav .logo,
.site-nav .nav-links a{
  background: rgba(12,14,18,0.70);        /* dark glass behind text */
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
}
.site-nav .nav-links{ list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.site-nav .nav-links a:hover{ background: rgba(12,14,18,0.85); color: var(--accent); }

/* Hero strip (Tiny Three.js) 
.hero-strip{ display: grid; place-items: center; height: min(32vh, 320px); border-bottom: 1px solid var(--edge); background: radial-gradient(1200px 600px at 20% 20%, #1b2435, #0e121a 60%); }
#heroCanvas{ width: 100%; height: 100%; display: block; }*/


/* Make the video section full-bleed horizontally */
.top-video{
  max-width: none;
  margin: 0;          /* remove centering margins */
  padding: 0;         /* remove side padding */
}

/* Make the video itself fill the width, keep your set height */
.promo{
  display: block;
  width: 100%;
  height: var(--video-h);  /* keeps your existing height rhythm */
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.top-video.ready .promo{ 
  animation: promo-in 720ms cubic-bezier(.2,.9,.2,1) both; 
}

@keyframes promo-in{
  to{ opacity: 1; 
  transform: translateY(0); }
}

/* Bands */
/* Full-bleed bands (edge-to-edge horizontally) */
.bands{
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;  /* clean spacing between bands */
  background: var(--bg);
  position: relative;
}

/* Add safe inner padding so text doesn’t hug the viewport edge 
.band{
  display: grid;
  gap: 24px;
  align-items: center;
  min-height: var(--video-h);
  padding-inline: clamp(16px, 4vw, 48px);  /* horizontal breathing room 
}*/

.band{
  display: grid;
  gap: 24px;  /* space between text and image inside the band */
  align-items: start;   /* or flex-start; both are fine for grid here */
  padding-inline: clamp(16px, 4vw, 48px);
  padding-block: 12px;  /* subtle top/bottom breathing room */
}

/* Tablet & small laptop: remove tall forced band height */
@media (max-width: 1400px){
.band{
    min-height: auto;      /* remove giant black gap */
    gap: 10px;             /* optional tightening */
  }
}

.band + .band{ 
  border-top: 1px solid var(--edge); 
}

.band-copy p{ 
  color: var(--muted); 
}
.band-copy h2{
  margin: 0 0 0.25em;   /* no top margin; small space below the heading */
}


/* Tighten up band heights on About page */

/* 1. Let band media size itself from the image */
.band-media{
  height: auto;              /* was: var(--video-h); */
  margin: 0;
}

/* 2. Don’t force a tall aspect ratio for portraits on desktop */
.band-media.portrait{
  height: auto;
  aspect-ratio: auto;        /* was: 3 / 4; */
}

/* 3. Cap image height, but let it shrink if content is short */
.band-media img{
  width: 100%;
  height: auto;              /* was: 100%; */
  max-height: var(--video-h);/* still prevents a giant image */
  object-fit: contain;
  object-position: center;
  background: radial-gradient(120% 120% at 50% 50%, var(--media-bg) 0%, var(--bg) 70%);
  border-radius: 16px;
  border: 1px solid var(--edge);
  display: block;
}


/* Desktop: 50/50 split between copy and image */
@media (min-width: 901px){
  .bands .band{
    grid-template-columns: 1fr 1fr;  /* image now ~50% */
  }
}

/* Audio tools page layout */
.band.tools-audio{
  display: block;                         /* simple single-column band */
  max-width: 720px;
  margin: 24px auto 48px;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* Stack buttons + players, centered with nice spacing */
.audio-container{
  display: flex;
  flex-direction: column;
  gap: 14px;                              /* vertical spacing between rows */
  align-items: stretch;
}

/* Labels = buttons, styled like nav pills but bigger */
.audio-button{
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,14,18,0.80);       /* dark glass, matches nav feel */
  color: var(--text);
  font-size: 1.25rem;                    /* ~1.25x base size */
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.audio-button:hover{
  background: rgba(12,14,18,0.95);
  color: var(--accent);
}

/* Active/playing state: use your accent green */
.audio-button.active{
  background: var(--accent);
  color: #0a0d12;
  border-color: var(--accent);
}

/* The audio control block under each label */
.audio-item{
  margin: 4px 0 18px;                    /* space between label & next label */
}

/* Make audio controls feel bigger + centered */
.audio-item audio{
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 0 auto;
  transform: scale(1.25);                /* ≈ “half-again larger” */
  transform-origin: center;
}

/* Prevent clipping on very narrow screens */
@media (max-width: 600px){
  .audio-item audio{
    transform: scale(1.05);
  }
}


/* Footer */
.site-footer{
  border-top: 1px solid var(--edge);
  padding: 28px 20px;
  background: var(--bg);   /* OPAQUE footer surface */
  isolation: isolate;      /* fully occlude underlying content */
  position: relative;      /* create a stacking context */
  z-index: 100;            /* higher than all .panel z-index (10..15) */
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(3, auto);  /* exactly 3 columns */
  gap: 48px;                                /* more breathing room */
  margin: 0 auto;                           /* center the whole grid */
  max-width: max-content;                   /* shrink to content width */
  padding-inline: clamp(16px, 4vw, 32px);   /* prevent touching edges on mobile */
}

.footer-links{ list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.social a{ display: inline-block; margin-right: 12px; }
.copyright{ max-width: var(--maxw); margin: 16px auto 0; color: var(--muted); text-align: center; }

/* Newsletter form */
#newsletterForm{
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: 8px; 
}

#newsletterForm input{
  padding: 10px 12px; 
  background: #0f131b; 
  color: var(--text); 
  border: 1px solid var(--edge); 
  border-radius: 999px; 
}

#newsletterForm button{
  padding: 10px 16px; 
  background: var(--accent); 
  color: #0a0d12; 
  border: 1px solid var(--accent); 
  border-radius: 999px; 
  cursor: pointer; }

#newsletterForm button:hover{
  background: var(--accent-hover); 
  border-color: var(--accent-hover); 
}

.form-note{
  color: var(--muted); 
  font-size: 0.9rem; 
  margin: 4px 0 0 8px; 
  grid-column: 1 / -1; 
}

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

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .promo{
    animation: none; 
    opacity: 1; 
    transform: none; }

  .hero-strip{
  background: #0e121a; 
}
}

/* Temporarily hide the hero strip */
.hero-strip {
  display: none !important;
}

/* Force a safe system stack for all UI/body text (Chrome-friendly) */
body, .site-nav, .bands, .band, .footer-grid, button, input, textarea, select {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4{
  font-family: Garamond, Georgia, "Times New Roman", serif;
  letter-spacing: 0.2px;
}

/* Honeypot: visually hidden but present in DOM for bots */
.hp-wrap{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Prevent horizontal panning/scroll (iPhone) */
html, body{
  overscroll-behavior-x: none;
  overflow-x: hidden;
  touch-action: pan-y;
}
@supports (overflow-x: clip){
  html, body{ overflow-x: clip; }
}

/* Mobile & touch (iPhone 16/17 Pro, incl. landscape and big phones) */
@media (max-width: 1024px), (hover: none) and (pointer: coarse){
.band{
  grid-template-columns: 1fr;
  padding-inline: clamp(16px, 5vw, 24px); /* text == image width */
  gap: 10px;          /* ↓ tighter space between image and text on mobile */
  min-height: auto;   /* remove tall block forcing extra black space */
}

  .band .band-media{
    order: 1;
    height: auto;       /* override var(--video-h) on small/touch */
  }
  .band .band-copy{
    order: 2;
  }
  .band-media img{
    width: 100%;
    height: auto;       /* preserve aspect */
    object-fit: contain;
  }
}

/* Footer: stack sections vertically on iPhone / touch */
@media (max-width: 1024px), (hover: none) and (pointer: coarse){
  .footer-grid{
    grid-template-columns: 1fr;  /* single column */
  }
}

/* Mobile/touch: enlarge seasonal banner and crop sides (show center 50%) */
@media (max-width: 1024px), (hover: none) and (pointer: coarse){
  #seasonal-banner{
    overflow: hidden;        /* hide the cropped sides */
  }
  #seasonal-banner img{
    width: 200%;             /* zoom in so only the middle half remains */
    max-width: none;         /* allow >100% width */
    margin-left: -50%;       /* center the middle 50% */
    height: auto;            /* keep aspect ratio */
    display: block;
  }
}

/* Sub-nav styling (About page) */
.sub-nav{
  position: sticky;                /* stay put while scrolling */
  top: var(--nav-h);               /* sit directly under the sticky main nav */
  z-index: 50;                     /* above panels (10..), below footer (100) */
  background: transparent;         /* transparent bar, like main nav */
  isolation: auto;                 /* no need to force a separate layer */
  display: block;
  padding: 8px 20px 12px;
  border-bottom: none;             /* let content show through cleanly */
}
.sub-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sub-nav a{
  display: inline-block;
  background: rgba(12,14,18,0.70);         /* match main nav pill look */
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  text-decoration: none;
}
.sub-nav a:hover{
  background: rgba(12,14,18,0.85);
  color: var(--accent);
  text-decoration: none;
}

/* Smooth, sticky-aware anchor scrolling */
html{
  scroll-behavior: smooth;
}

/* Ensure anchors and the H1 align under the sticky nav */
#about-851,
.anchor-target{
  /* room for the sticky nav so the target isn't hidden underneath it */
  scroll-margin-top: calc(var(--nav-h) + 8px);
  /* minimal footprint for invisible anchors */
  min-height: 1px;
}
/* Ensure sections with IDs land below the sticky nav */
.band[id]{
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
/* In-band "Back to top" button */
.back-wrap{
  margin-top: 12px;
  text-align: right;                 /* align to the right edge of the text column */
}

.back-to-top{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12,14,18,0.70);   /* match nav pill look */
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.back-to-top:hover{
  background: rgba(12,14,18,0.85);
  color: var(--accent);
  text-decoration: none;
}

/* Don’t show a back-to-top when you're already at the top */
.bands .band:first-of-type .back-wrap{
  display: none;
}

/* Mobile: give it some breathing room and full-width tap area if you prefer */
@media (max-width: 600px){
  .back-wrap{ text-align: left; }    /* left-align on narrow screens for easier thumb reach */
  /* If you want a wider tap target on phones, uncomment:
  .back-to-top{ display:block; width:max-content; }
  */
}

/* Ensure anchor landings sit below sticky nav (already set for other anchors) */
#seasonal-banner{ scroll-margin-top: calc(var(--nav-h) + 8px); }

/* About sub-nav: active link state */
.sub-nav a.active{
  color: var(--accent);
  border-color: rgba(255,255,255,0.28);
  background: rgba(12,14,18,0.85);
  text-decoration: none;
}
/* Main nav: active page link (About, Home logo, etc.) */
.site-nav .nav-links a.active,
.site-nav .logo.active{
  color: var(--accent);
  border-color: rgba(255,255,255,0.28);
  background: rgba(12,14,18,0.85);
  text-decoration: none;
}
/* When a sub-nav exists, make anchors land below BOTH sticky bars */
.sub-nav ~ #about-851,
.sub-nav ~ .bands .band[id]{
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 8px);
}

.panel.is-top  { opacity: 1; clip-path: inset(0); }
.panel.is-past { opacity: 0.9; }

/* Page title: centered on About page */
.about-851{
  text-align: center;
  padding-inline: 0;           /* remove left gutter so true center */
  margin: 0.4em 20px 0.2em;    /* small side margins for breathing room */
}
.page-title {
  text-align: center;
  padding-inline: 0;
  margin: 0.4em 20px 0.2em;
}