/* =========================================================================
   JUNA — styles.css  (dark / cinematic)
   Edit the variables below to rebrand.
   ========================================================================= */

:root {
  /* ---- Palette ---- */
  --bg:        #0a0a0a;   /* page background */
  --bg-2:      #101010;   /* alternate section */
  --surface:   #151515;   /* cards */
  --surface-2: #1c1c1c;
  --line:      rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --text:      #ededed;   /* primary */
  --muted:     #9a9a9a;   /* secondary */
  --faint:     #6a6a6a;   /* tertiary */

  --accent:      #ffc93c;   /* the accent — warm golden yellow */
  --accent-soft: #ffe28a;   /* lighter, for hovers & highlights */

  /* ---- Type ---- */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* ---- Layout ---- */
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------- Base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

::selection { background: var(--accent); color: #0a0a0a; }

/* ------------------------------- Shared type ------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow.light { color: rgba(255, 255, 255, 0.8); }

.section-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98; letter-spacing: -0.01em;
  margin: 0; color: var(--text);
}
.section-title em { font-style: italic; font-weight: 500; color: var(--accent); }

.section { padding: clamp(4.5rem, 10vw, 9rem) 0; position: relative; scroll-margin-top: 70px; }
.section-bg-2 { background: var(--bg-2); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ------------------------------- Buttons ------------------------------- */
.btn-line {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--line);
  border-radius: 2px; background: transparent; cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s, background 0.3s, gap 0.3s var(--ease);
}
.btn-line:hover { border-color: var(--accent); color: #fff; background: rgba(255, 201, 60, 0.12); gap: 0.9rem; }
.btn-line .ico { width: 1.1em; height: 1.1em; }

/* ------------------------------- Header ------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; }
.brand img { display: block; height: 24px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav > a {
  font-family: var(--sans); font-weight: 400; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  position: relative; transition: color 0.25s;
}
.nav > a:hover, .nav > a.active { color: #fff; }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px;
  background: var(--accent); transition: right 0.3s var(--ease);
}
.nav > a:hover::after, .nav > a.active::after { right: 0; }

.nav-toggle {
  display: none; background: transparent; color: #fff;
  border: 1px solid var(--line); border-radius: 2px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ico { width: 1.4em; height: 1.4em; }

/* ------------------------------- Hero ------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 100px 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden; isolation: isolate;
  background: #000;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  /* PLACEHOLDER: swap assets/band.jpg for a high-res band/press shot */
  background: #000 url("assets/gallery/live.jpg") center 72% / cover no-repeat;
  filter: contrast(1.05) saturate(0.92) brightness(0.9);
  animation: heroZoom 20s ease-out both;
  /* fade the photo out at the bottom so it dissolves into the page instead of a hard cut */
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0.35) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0.35) 88%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 30%, rgba(10,10,10,0.55) 62%, rgba(10,10,10,0.96) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(255, 201, 60,0.18), transparent 55%);
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.06; pointer-events: none;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; }
.hero-title {
  margin: 0.5rem 0 0;
  line-height: 0;              /* the image is the whole wordmark */
}
.hero-title img {
  display: block;
  width: min(84vw, 860px);
  height: auto;
  filter: drop-shadow(0 20px 80px rgba(0, 0, 0, 0.6));
}
.hero-sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 1.9rem); color: rgba(255,255,255,0.85);
  margin: 2.4rem 0 0;
}
.hero-sub em { color: var(--accent); font-style: italic; }

.hero-social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 2rem 0 0; padding: 0; }
.hero-social a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.05rem; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.9);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.hero-social a:hover { border-color: var(--accent); background: rgba(255, 201, 60,0.14); color: #fff; transform: translateY(-2px); }
.hero-social .ico { width: 1.05em; height: 1.05em; }

.scroll-word {
  position: absolute; right: clamp(1rem, 3vw, 2.4rem); bottom: clamp(3rem, 10vh, 8rem);
  writing-mode: vertical-rl; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted);
}
.scroll-word::after { content: ""; display: block; width: 1px; height: 46px; margin: 12px auto 0; background: linear-gradient(var(--muted), transparent); }

/* ------------------------------- Section backgrounds ------------------------------- */
.section-music { background: var(--bg); }
.section-shows { background: var(--bg-2); overflow: hidden; }
.section-about { background: var(--bg); overflow: hidden; }
.section-gallery { background: var(--bg-2); }

/* ------------------------------- Music ------------------------------- */
.music-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; }
.music-side { display: grid; gap: 1.25rem; }
.music-featured, .music-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 0.6rem; overflow: hidden;
}
.embed { display: block; width: 100%; border: 0; border-radius: 2px; }
.music-featured .embed { aspect-ratio: 4 / 3.4; min-height: 420px; }
.music-card .embed { aspect-ratio: 16 / 10; }

.listen-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem;
  flex: 1; justify-content: center;
}
.listen-label { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text); }
.listen-links { display: flex; flex-direction: column; gap: 0.6rem; }
.listen-links .btn-line { justify-content: space-between; width: 100%; }
.music-side { grid-template-rows: auto 1fr; }

/* ------------------------------- Music videos ------------------------------- */
.section-videos { background: var(--bg); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.video-card { margin: 0; }
.video-embed {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 4px; background: #000;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.video-card:hover .video-embed { border-color: rgba(255, 201, 60,0.5); transform: translateY(-4px); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
.video-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--text); }
.video-tag { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------- Shows / Tour ------------------------------- */
.shows-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.16; pointer-events: none;
  /* faint band photo behind the list, tinted with the accent */
  background: url("assets/band.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  filter: grayscale(0.3) sepia(0.5) hue-rotate(-20deg) saturate(1.4) brightness(0.55);
}
.section-shows .wrap { position: relative; z-index: 1; }

.tour-list { display: flex; flex-direction: column; }
.tour-row {
  display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 2rem;
  padding: 1.7rem 0.3rem; border-top: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.tour-list .tour-row:last-child { border-bottom: 1px solid var(--line-soft); }
.tour-row:hover { background: linear-gradient(90deg, rgba(255, 201, 60,0.08), transparent 70%); padding-left: 1.1rem; }

.tour-when { line-height: 1; }
.tour-day { display: block; font-family: var(--serif); font-weight: 800; font-size: 2.7rem; color: var(--accent); }
.tour-month { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

.tour-loc { min-width: 0; }
.tour-city { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--text); }
.tour-venue { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

.tour-cta { justify-self: end; }
.tour-tickets {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
a.tour-tickets:hover { border-color: var(--accent); background: rgba(255, 201, 60,0.14); color: #fff; }
.tour-tickets.is-disabled { color: var(--faint); border-style: dashed; cursor: default; }
.tour-tickets.is-soldout { color: var(--accent); border-color: rgba(255, 201, 60,0.5); }

.shows-empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: 4px; }
.shows-empty h3 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 0.5rem; }
.shows-empty p { color: var(--muted); margin: 0 0 1.4rem; }

/* ------------------------------- About ------------------------------- */
.about-bg {
  position: absolute; inset: 0 0 0 auto; width: 55%; z-index: 0; opacity: 0.14; pointer-events: none;
  background: url("assets/gallery/group.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
          mask-image: linear-gradient(90deg, transparent, #000 55%);
  filter: grayscale(0.5) brightness(0.7);
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin: 1.2rem 0 0; }
.about-text .section-head, .about-text .section-title { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-text .btn-line { margin-top: 2rem; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
.stat { border-left: 1px solid var(--line-soft); padding-left: 1.3rem; }
.stat-num { display: block; font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--accent); line-height: 1; }
.stat-label { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }

/* ------------------------------- Gallery ------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 210px; gap: 0.9rem; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--line-soft); padding: 0; background: var(--surface);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img, .gallery-ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img { filter: grayscale(0.15) brightness(0.92); transition: transform 0.6s var(--ease), filter 0.5s; }
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 50%, rgba(0,0,0,0.55)); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-cap {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2; color: #fff; opacity: 0; transform: translateY(6px);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
.gallery-ph { display: grid; place-items: center; color: var(--faint); }
.gallery-ph .ico { width: 1.8rem; height: 1.8rem; }

/* ------------------------------- Footer ------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding: clamp(4rem, 9vw, 7rem) 0 0; scroll-margin-top: 70px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: end; padding-bottom: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line-soft); }
.footer-cta p { color: var(--muted); margin: 1.1rem 0 0; max-width: 40ch; }
.footer-cta .section-title { margin-top: 0.2rem; }

.signup { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; position: relative; }
.signup input {
  flex: 1 1 240px; min-width: 0; padding: 0.85rem 1.1rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--text);
  font-family: var(--sans); font-size: 0.9rem;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; border-color: var(--accent); }
.signup-msg { position: absolute; top: calc(100% + 0.6rem); left: 0; margin: 0; font-size: 0.8rem; color: var(--accent-soft); letter-spacing: 0.05em; }

.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; padding: 2rem 0; }
.brand-sm { font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--faint); margin: 0; }

/* ------------------------------- Lightbox ------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem); opacity: 0; transition: opacity 0.3s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox-figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lightbox-media img, .lightbox-media .gallery-ph { max-width: 100%; max-height: 80vh; width: auto; margin-inline: auto; border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9); }
.lightbox-media .gallery-ph { width: min(680px, 88vw); aspect-ratio: 4/3; }
.lightbox-caption { color: var(--muted); margin-top: 1rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lightbox-close, .lightbox-nav {
  background: transparent; color: #fff; border: 1px solid var(--line); border-radius: 2px;
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; flex: none;
  transition: border-color 0.25s, background 0.25s;
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--accent); background: rgba(255, 201, 60,0.14); }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.4rem; }
.lightbox-prev .ico { transform: rotate(90deg); }
.lightbox-next .ico { transform: rotate(-90deg); }
.lightbox-close .ico, .lightbox-nav .ico { width: 1.4em; height: 1.4em; }

/* ------------------------------- Reveal ------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 90px 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-105%); transition: transform 0.45s var(--ease); z-index: 55;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 1rem 0.3rem; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--text); }
  .nav > a::after { display: none; }
  body.nav-open { overflow: hidden; }

  .music-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-bg { width: 100%; opacity: 0.08; }
  .footer-top { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 2.5rem; }
  .tour-row { grid-template-columns: 78px 1fr; gap: 1rem 1.2rem; padding: 1.3rem 0.2rem; }
  .tour-day { font-size: 2rem; }
  .tour-cta { grid-column: 1 / -1; justify-self: stretch; }
  .tour-tickets { width: 100%; justify-content: center; }
  .about-stats { gap: 1.8rem 1.5rem; }
  .gallery-grid { grid-auto-rows: 170px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .lightbox-nav { position: absolute; bottom: 1.4rem; }
  .lightbox-prev { left: 1.4rem; } .lightbox-next { right: 1.4rem; }
}

/* --------------------------- Ambient starfield ---------------------------
   Four-pointed "sparkle" shapes (the ✨ silhouette) drawn with an SVG mask, so
   the colour stays controllable from CSS. Mixed with a scatter of tiny round
   dots for depth. A radial mask keeps the whole layer in the OUTER frame of the
   viewport so nothing ever lands on body copy.
   z-index 50 = above the sections, below the header (60) and lightbox (100).   */
.starfield {
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none; overflow: hidden;
  /* Width of the gutter outside the 1240px content column, with a little slack. */
  --edge: max(48px, calc((100vw - 1320px) / 2));
  -webkit-mask-image: linear-gradient(to right,
      #000 0, #000 calc(var(--edge) - 40px), transparent var(--edge),
      transparent calc(100% - var(--edge)), #000 calc(100% - var(--edge) + 40px), #000 100%);
          mask-image: linear-gradient(to right,
      #000 0, #000 calc(var(--edge) - 40px), transparent var(--edge),
      transparent calc(100% - var(--edge)), #000 calc(100% - var(--edge) + 40px), #000 100%);
}

/* Below ~1080px the content column fills the viewport, so there is no gutter
   left to put stars in without landing on text. Drop the page-wide layer and
   let the hero carry the effect on those screens. */
@media (max-width: 1080px) {
  .starfield { display: none; }
}

/* Hero-only layer. The hero holds no body copy — just the wordmark and the
   social row — so sparkles can spread right across it. Sits before .hero-inner
   in the DOM so the content always paints on top. */
.hero-stars {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  opacity: var(--o-min);
  /* the sparkle silhouette — concave sides, four points */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c0 6.63 5.37 12 12 12-6.63 0-12 5.37-12 12 0-6.63-5.37-12-12-12 6.63 0 12-5.37 12-12z' fill='%23000'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c0 6.63 5.37 12 12 12-6.63 0-12 5.37-12 12 0-6.63-5.37-12-12-12 6.63 0 12-5.37 12-12z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;    mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  animation: twinkle var(--dur) ease-in-out var(--delay) infinite alternate;
}

/* Tiny round specks that sit behind the sparkles and add depth. */
.star.dot {
  -webkit-mask-image: none; mask-image: none;
  border-radius: 50%;
}

@keyframes twinkle {
  from { opacity: var(--o-min); transform: scale(0.68) rotate(-8deg); }
  to   { opacity: var(--o-max); transform: scale(1.12) rotate(10deg); }
}

/* Narrow screens: content fills the width, so hold the clear zone wider. */
@media (max-width: 820px) {
  .starfield {
    -webkit-mask-image: radial-gradient(ellipse 76% 60% at 50% 50%, transparent 58%, #000 96%);
            mask-image: radial-gradient(ellipse 76% 60% at 50% 50%, transparent 58%, #000 96%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: var(--o-max); }
}
