/* =========================================================
   Ramblin Soul' — site styles
   Tokens first; everything else uses them.
   ========================================================= */
:root {
  --ink: #0e0c12;
  --ink-2: #16131c;
  --ink-3: #201b29;
  --cream: #f6f2ec;
  --cream-2: #ece6dc;
  --text-dark: #1b1720;
  --text-dark-muted: #5d5566;
  --text-light: #f1edf6;
  --text-light-muted: #b2abbd;
  --purple: #9a66e0;        /* accent on dark */
  --purple-deep: #6b3fb0;   /* accent on light */
  --purple-glow: rgba(154, 102, 224, .35);
  --gold: #d9b873;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(27, 23, 32, .12);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--purple); color: #fff; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.section-title em, .hero-tagline em, .custom-title em { font-style: italic; font-weight: 500; color: var(--purple); }
.section-light .section-title em { color: var(--purple-deep); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-light-muted); max-width: 40em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 999px; border: 1px solid var(--purple);
  background: var(--purple); color: #fff; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--purple-glow); background: #a876ea; border-color: #a876ea; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; box-shadow: none; }
.btn-sm { padding: .6em 1.25em; font-size: .88rem; }

.link-arrow {
  font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s, gap .2s;
}
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { color: var(--purple); }
.section-light .link-arrow:hover { color: var(--purple-deep); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile nav inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(14, 12, 18, .82); box-shadow: 0 1px 0 var(--line-dark);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1px solid rgba(154, 102, 224, .7);
  color: #fff; background: radial-gradient(circle at 30% 25%, #7c4cc4, #2b1747 75%);
}
.brand-mark img { width: 72%; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }

.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a:not(.btn) {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .85);
  position: relative; padding: 6px 0; transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--purple);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: #fff; }
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; background: rgba(14, 12, 18, .97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.9rem; }
  .site-nav .btn { font-size: 1rem; margin-top: 8px; }
  .brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 40px) 0 clamp(96px, 12vh, 140px);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%;
  z-index: -2; transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 18, .55) 0%, rgba(14, 12, 18, .1) 30%, rgba(14, 12, 18, .55) 62%, var(--ink) 100%),
    linear-gradient(90deg, rgba(43, 18, 74, .55) 0%, rgba(43, 18, 74, 0) 60%);
}
.hero-content { max-width: 1240px; }
.hero-title { display: flex; flex-direction: column; gap: .2em; margin-bottom: 1.4rem; }
.hero-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 8.6rem); line-height: .92; letter-spacing: -.02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
.hero-tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.15; }
.hero-tagline em { color: #c4a2f2; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; color: rgba(255, 255, 255, .86); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: #d6c0f5; }

.hero-social {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: flex-end; gap: 10px;
}
.hero-social a, .footer-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 1.15rem;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.hero-social a:hover, .footer-social a:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-2px); }

@media (max-width: 640px) {
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero-bg { object-position: 28% 20%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(14, 12, 18, .5) 0%, rgba(14, 12, 18, .15) 25%, rgba(14, 12, 18, .78) 52%, var(--ink) 100%); }
  .hero-social { justify-content: flex-start; padding-inline: var(--gutter); }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--ink);
  padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-light-muted); padding-inline: 1.6em; white-space: nowrap; display: inline-flex; align-items: center; gap: 3.2em;
}
.ticker span::after { content: "\2726"; font-style: normal; font-size: .7em; color: var(--purple); margin-left: 1.6em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-light { background: var(--cream); color: var(--text-dark); }
.section-light .eyebrow { color: var(--purple-deep); }
.section-dark { background: var(--ink-2); }
.section-ink { background: var(--ink); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .section-title { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 5fr 6fr; } }
.about-media { position: relative; padding: 0 12% 12% 0; isolation: isolate; }
.about-photo-main img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); }
.about-photo-main::before {
  content: ""; position: absolute; inset: clamp(-18px, -2vw, -10px) auto auto clamp(-18px, -2vw, -10px); width: 45%; height: 45%;
  border: 1px solid var(--purple-deep); border-radius: var(--radius-lg); opacity: .5; z-index: -1;
}
.about-photo-inset {
  position: absolute; right: 0; bottom: 0; width: 44%;
  border: 8px solid var(--cream); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(27, 23, 32, .35);
}
.about-photo-inset img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose p { color: var(--text-dark-muted); font-size: 1.04rem; }
.prose p:first-child { font-size: 1.16rem; color: var(--text-dark); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2.4rem 0 0;
  padding-top: 2rem; border-top: 1px solid var(--line-light);
}
.stats dt { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--purple-deep); line-height: 1.1; }
.stats dd { margin: .4rem 0 0; font-size: .86rem; line-height: 1.45; color: var(--text-dark-muted); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; gap: 18px; } .stats div { display: grid; grid-template-columns: 7.2rem 1fr; align-items: baseline; gap: 12px; } }

/* ---------- Music ---------- */
.music { overflow: hidden; }
.music::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 102, 224, .16), transparent 65%); pointer-events: none;
}
.music-grid { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; position: relative; }
@media (min-width: 960px) { .music-grid { grid-template-columns: 1fr 1fr; } }
.music-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
@media (max-width: 959px) { .music-photo { max-width: 680px; } }

.artist-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0 0; }
.artist-list li {
  border: 1px solid var(--line-dark); border-radius: 999px; padding: .45em 1.1em;
  font-size: .9rem; color: var(--text-light); background: rgba(255, 255, 255, .03);
  transition: border-color .25s, background .25s;
}
.artist-list li:hover { border-color: var(--purple); background: rgba(154, 102, 224, .1); }

.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: clamp(48px, 6vw, 72px); position: relative; }
.pillar { padding: 22px 22px 18px; border-radius: var(--radius); background: var(--ink-3); border: 1px solid var(--line-dark); }
.pillar h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .5rem; }
.pillar h3::before { content: ""; display: block; width: 22px; height: 2px; background: var(--purple); margin-bottom: 14px; }
.pillar p { margin: 0; font-size: .93rem; color: var(--text-light-muted); }

.custom-panel {
  margin-top: clamp(56px, 8vw, 100px); padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(107, 63, 176, .35), rgba(32, 27, 41, .9) 55%);
  border: 1px solid rgba(154, 102, 224, .3);
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .custom-panel { grid-template-columns: 1.15fr 1fr; } }
.custom-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.custom-panel p { color: var(--text-light-muted); margin: 0; }
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.event-list li {
  display: flex; align-items: center; gap: .7em; padding: 14px 16px; border-radius: 12px;
  background: rgba(14, 12, 18, .5); border: 1px solid var(--line-dark); font-weight: 500; font-size: .95rem;
}
.event-list svg { font-size: 1.25rem; color: #c4a2f2; flex: none; }

/* ---------- Videos ---------- */
.video-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .video-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
  .video-card-feature { grid-row: span 2; }
}
.video-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); text-align: left;
  aspect-ratio: 16 / 9;
}
@media (min-width: 760px) { .video-card-feature { aspect-ratio: auto; min-height: 100%; } }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.video-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(14, 12, 18, .88));
}
.video-card:hover img { transform: scale(1.05); }
.video-card.is-soon img { filter: saturate(.75) brightness(.85); }
@media (max-width: 759px) { .video-card { aspect-ratio: 4 / 3; } .video-play { top: 40%; width: 60px; height: 60px; font-size: 1.4rem; } }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 1.7rem; color: #fff; transition: background .3s, transform .3s var(--ease);
}
.video-play svg { margin-left: 4px; }
.video-card:hover .video-play { background: var(--purple); border-color: var(--purple); transform: translate(-50%, -50%) scale(1.08); }
.video-meta { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.video-title { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; color: #fff; }
.video-tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .35em .8em; border-radius: 999px; background: rgba(14, 12, 18, .6); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
}
.video-soon {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .35em .8em; border-radius: 999px; background: rgba(154, 102, 224, .85); color: #fff;
}

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery-item {
  display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: zoom-in; background: var(--cream-2);
}
.gallery-item img { width: 100%; transition: transform .8s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(43, 18, 74, .45));
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { opacity: 1; }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 10px; } .gallery-item { margin-bottom: 10px; border-radius: 10px; } }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; text-align: center; padding-block: calc(var(--section-y) * 1.1); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(107, 63, 176, .55), transparent 60%), rgba(14, 12, 18, .88);
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.contact .section-title { max-width: 14em; }
.contact .lede { margin-inline: auto; margin-bottom: 2.6rem; }

.contact-card {
  width: 100%; max-width: 680px; padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg); background: rgba(22, 19, 28, .7);
  border: 1px solid rgba(154, 102, 224, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 100px -40px rgba(107, 63, 176, .6);
}
.contact-label { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-light-muted); margin-bottom: .6rem; }
.contact-email {
  display: inline-block; font-family: var(--font-display); font-size: clamp(1.3rem, 4.4vw, 2.3rem); font-weight: 600;
  text-decoration: none; word-break: break-word; line-height: 1.2;
  background: linear-gradient(90deg, #fff, #d3baf5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-email:hover { text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 6px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 1.8rem 0 1.6rem; }
.contact-phone { margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.contact-phone .contact-label { display: inline; margin-right: .6em; }
.contact-phone a { font-weight: 600; font-size: 1.15rem; text-decoration: none; color: #fff; }
.contact-phone a:hover { color: #d3baf5; }
.placeholder { color: var(--text-light-muted); font-style: italic; }

.social-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 680px; margin-top: 18px; }
.social-tiles a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px;
  border-radius: var(--radius); text-decoration: none; background: rgba(22, 19, 28, .6); border: 1px solid var(--line-dark);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.social-tiles svg { font-size: 1.7rem; margin-bottom: 6px; color: #c4a2f2; }
.social-tiles span { font-weight: 600; }
.social-tiles small { font-size: .78rem; color: var(--text-light-muted); }
.social-tiles a:hover { border-color: var(--purple); transform: translateY(-3px); background: rgba(107, 63, 176, .25); }
@media (max-width: 520px) { .social-tiles { grid-template-columns: 1fr; } .social-tiles a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 16px 18px; } .social-tiles svg { margin: 0; } .social-tiles small { margin-left: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; }
.footer-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer-note { max-width: 36em; color: var(--text-light-muted); font-size: .92rem; margin: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-copy { font-size: .8rem; color: #7d7688; margin: 0; }

/* ---------- Lightbox / video modal ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 8, 14, .95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 72px; max-width: 100%; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; border-radius: 10px; object-fit: contain; }
.lb-stage figcaption { font-size: .9rem; color: var(--text-light-muted); text-align: center; max-width: 40em; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); cursor: pointer;
  font-size: 1.8rem; line-height: 1; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--purple); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-stage { padding: 64px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
.video-frame { width: min(92vw, 1100px, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 80;
  padding: 12px 20px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 500; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Hero is above the fold: animate on load with CSS, no observer needed */
.js .hero .reveal { opacity: 1; transform: none; animation: rise 1s var(--ease) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .12s; }
.js .hero .reveal:nth-child(3) { animation-delay: .24s; }
.js .hero .reveal:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
