/* ==========================================================
   Header: night Dallas skyline, shooting-star apostrophe,
   and a reel of 2025 Dream Conference photos.
   ========================================================== */

/* ---------- layout ---------- */
.hero { place-items: center start; text-align: left; padding-inline: max(var(--gutter), 5vw); background: var(--night); }
.hero__inner { max-width: min(520px, 40vw); z-index: 3; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 5.2rem); }
.hero .hero__meta, .hero .hero__cta { justify-content: flex-start; }
.hero__title, .hero__tag, .hero__meta { text-shadow: 0 2px 24px rgba(10, 0, 8, .8); }
.hero .sky { opacity: .55; mix-blend-mode: screen; z-index: 1; }

/* ---------- skyline background ---------- */
.skyp { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.skyp__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 70%; animation: skypan 40s ease-in-out infinite alternate; filter: saturate(1.08); transition: opacity 900ms ease; }
/* dark mode = night skyline, light mode = sunset skyline (they crossfade when the toggle is used) */
.skyp__img--dusk { opacity: 0; object-position: 55% 60%; }
:root[data-theme="light"] .skyp__img--dusk { opacity: 1; }
:root[data-theme="light"] .skyp__img--night { opacity: 0; }
@keyframes skypan { from { transform: scale(1.04) translateX(1%); } to { transform: scale(1.14) translateX(-2%); } }
/* city lights breathe */
.skyp__glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: radial-gradient(60% 70% at 60% 100%, rgba(255, 170, 90, .38), transparent 70%), radial-gradient(40% 50% at 85% 85%, rgba(224, 33, 137, .28), transparent 70%);
  mix-blend-mode: screen; animation: citypulse 5s ease-in-out infinite;
}
@keyframes citypulse { 50% { opacity: .45; } }
.skyp__shade { position: absolute; inset: 0; transition: background 900ms ease; background: linear-gradient(90deg, rgba(14, 0, 10, .78) 0%, rgba(14, 0, 10, .35) 34%, rgba(14, 0, 10, 0) 52%), linear-gradient(0deg, rgba(14, 0, 10, .5), transparent 24%); }
/* the sunset is brighter, so its shade is a deeper plum to keep white text readable */
:root[data-theme="light"] .skyp__shade { background: linear-gradient(90deg, rgba(52, 6, 40, .82) 0%, rgba(52, 6, 40, .5) 36%, rgba(52, 6, 40, .05) 58%), linear-gradient(0deg, rgba(40, 4, 30, .55), transparent 26%); }
:root[data-theme="light"] .hero .sky { opacity: .25; }

/* ---------- shooting star → apostrophe ---------- */
.imp__apos {
  transform: scale(.1);
  transition: max-width 500ms var(--ease), opacity 200ms ease, transform 600ms cubic-bezier(.3, 1.8, .4, 1);
}
.imp.is-possible .imp__apos { transform: none; }
/* Fully remove the apostrophe while it's hidden. The headline's gradient text
   (background-clip: text) would otherwise still paint its outline between I and m. */
.imp:not(.is-possible) .imp__apos { visibility: hidden; transition: max-width 500ms var(--ease), opacity 200ms ease, transform 600ms cubic-bezier(.3, 1.8, .4, 1), visibility 0s 200ms; }
.imp.is-possible .imp__apos { visibility: visible; }
.imp--flash { animation: impflash 900ms ease-out; }
@keyframes impflash { 0% { filter: brightness(2.2) drop-shadow(0 0 30px rgba(253, 247, 30, .9)); } 100% { filter: none; } }
.ss-star { position: fixed; left: 0; top: 0; z-index: 70; width: 12px; height: 12px; margin: -6px 0 0 -6px; pointer-events: none; }
.ss-star::before {
  content: ''; position: absolute; inset: 0; background: var(--star);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  transform: scale(2.4);
  filter: drop-shadow(0 0 8px var(--joy)) drop-shadow(0 0 18px var(--fuchsia));
}
.ss-star::after {
  content: ''; position: absolute; right: 50%; top: 50%; width: 220px; height: 3px; margin-top: -1.5px;
  transform-origin: 100% 50%; transform: rotate(var(--ang));
  background: linear-gradient(90deg, rgba(224, 33, 137, 0), rgba(255, 246, 201, .95));
  border-radius: 3px; filter: blur(.4px);
}
.ss-spark {
  position: fixed; z-index: 70; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: var(--joy); box-shadow: 0 0 10px var(--joy), 0 0 18px var(--fuchsia);
}

/* ---------- photo reel: three drifting columns ---------- */
.reel {
  position: absolute; z-index: 2; top: 64px; bottom: -6%; right: 2vw; width: min(46vw, 680px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-7deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
}
.reel__col { overflow: hidden; }
.reel__track { display: grid; gap: 14px; animation: reelup var(--dur) linear infinite; animation-direction: var(--dir); }
.reel__col:nth-child(2) .reel__track { margin-top: -30%; }
.reel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .75); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
@keyframes reelup { to { transform: translateY(calc(-50% - 7px)); } }
.reel:hover .reel__track { animation-play-state: paused; }
.reel__row { display: none; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; text-align: center; padding-top: 92px; }
  .hero__inner { max-width: 100%; }
  .hero .hero__meta, .hero .hero__cta { justify-content: center; }
  .skyp__shade { background: linear-gradient(0deg, rgba(14, 0, 10, .92) 0%, rgba(14, 0, 10, .6) 45%, rgba(14, 0, 10, .2) 75%); }
  :root[data-theme="light"] .skyp__shade { background: linear-gradient(0deg, rgba(52, 6, 40, .92) 0%, rgba(52, 6, 40, .62) 45%, rgba(52, 6, 40, .25) 75%); }

  /* the reel moves inside the text column, under "Dallas, Texas" and above the countdown */
  .reel {
    position: relative; top: auto; bottom: auto; right: auto; transform: none;
    display: block; width: 100vw; margin: 4px 0 22px calc(50% - 50vw); overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .reel__col { display: none; }
  .reel__row { display: flex; gap: 12px; width: max-content; padding: 6px 0 10px; animation: reelleft 60s linear infinite; }
  .reel__row img { width: 132px; flex: none; border-radius: 14px; }
}
@keyframes reelleft { to { transform: translateX(calc(-50% - 6px)); } }

@media (prefers-reduced-motion: reduce) {
  .skyp__img, .skyp__glow, .reel__track, .reel__row { animation: none; }
}
