/* Sponsors: the hero — rotating sponsor activations and a logo ticker
   (c) HAUS XXIV, LLC · Licensed to Long Beach Pride */

.sp-hero { --tick: clamp(76px, 7vw, 104px); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100vh + var(--tick)); min-height: calc(100svh + var(--tick)); overflow: hidden; color: #fff; background: var(--night); }

/* Slides */
.sp-hero-slides { position: absolute; inset: 0 0 var(--tick); z-index: -2; }
.sp-hs { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s; }
.sp-hs.is-on { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease), visibility 0s; }
.sp-hs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 60% 40%; }
.sp-hs.is-on img { animation: sp-kb 9s linear both; }
.sp-hero.is-paused .sp-hs.is-on img { animation-play-state: paused; }
@keyframes sp-kb { from { transform: scale(1.12) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.sp-hero-slides::after { content: ""; position: absolute; inset: 0; background:
	linear-gradient(0deg, rgba(12, 12, 14, .9) 0%, rgba(12, 12, 14, .55) 30%, rgba(12, 12, 14, .1) 62%, rgba(12, 12, 14, .5) 100%),
	linear-gradient(90deg, rgba(12, 12, 14, .55) 0%, rgba(12, 12, 14, 0) 60%); }

/* Copy: headline left, message and buttons right */
.sp-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 28px clamp(32px, 5vw, 96px); align-items: end; width: 100%; min-height: 100vh; min-height: 100svh; align-content: end; padding-top: calc(var(--nav-h, 88px) + 48px); padding-bottom: clamp(32px, 4vw, 64px); }
.sp-hero .kicker:not(#_) { margin-bottom: clamp(18px, 2vw, 28px); color: rgba(255, 255, 255, .86); }
.sp-hero h1:not(#_) { margin: 0; font-size: clamp(60px, 9.2vw, 176px) !important; font-weight: 800; line-height: .9 !important; letter-spacing: -.055em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.sp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.sp-hero-side { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: clamp(70px, 6vw, 96px); }
.sp-hero-side .lead { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .9); }
.sp-hero .btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 44px); }
.sp-hero .btn.line { color: #fff; }
.sp-hero.btns-right .sp-hero-side { padding-bottom: clamp(20px, 2.4vw, 40px); }
.sp-hero :focus-visible { outline-color: #fff; }

/* The accent word: its own line, offset, much larger and layered in front of the first line, in Pride colors */
.sp-hero h1 .sp-h1-a { position: relative; z-index: 0; }
main .sp-hero.dark h1 i.rb:not(#_):not(#__) { position: relative; z-index: 2; display: block; width: max-content; max-width: 100%; margin: -.42em -.16em -.12em .58em; padding: .36em .16em .14em .12em; font-size: 2em !important; line-height: .82 !important; text-shadow: none; background: linear-gradient(90deg, #FF4A5E 0%, #FF9A3D 18%, #FFD84A 36%, #4CD97B 56%, #4D9BFF 76%, #C77DFF 94%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .45)); }
@media (max-width: 640px) { main .sp-hero.dark h1 i.rb:not(#_):not(#__) { margin: -.36em -.16em -.12em .33em; font-size: 1.7em !important; } }

/* Pause control */
.sp-hero-ctl { position: absolute; right: var(--gut, 24px); bottom: clamp(32px, 4vw, 64px); }
.sp-hero-pause { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; transition: background .3s; }
.sp-hero-pause:hover { background: rgba(255, 255, 255, .3); }
.sp-hero-pause svg { width: 16px; height: 16px; }
.sp-hero-pause .i-play, .sp-hero.is-paused .sp-hero-pause .i-pause { display: none; }
.sp-hero.is-paused .sp-hero-pause .i-play { display: block; }

/* Logo ticker */
.sp-tick { position: relative; height: var(--tick); overflow: hidden; background: #fff; }
.sp-tick::before, .sp-tick::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 8%; pointer-events: none; }
.sp-tick::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.sp-tick::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.sp-tick-track { display: flex; width: max-content; height: 100%; animation: sp-tick 60s linear infinite; }
.sp-hero.is-paused .sp-tick-track { animation-play-state: paused; }
.sp-tick-row { display: flex; align-items: center; gap: clamp(40px, 4.4vw, 72px); height: 100%; margin: 0; padding: 0 clamp(20px, 2.2vw, 36px); list-style: none; }
.sp-tick-row li { display: flex; align-items: center; flex: none; height: 100%; }
.sp-tick-row img { width: auto; height: calc(clamp(44px, 4.2vw, 62px) * var(--f, 1)); max-width: 196px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; mix-blend-mode: multiply; }
@keyframes sp-tick { to { transform: translateX(-50%); } }
/* Broadcast partners: full-color network marks */
.sp-tick.is-media .sp-tick-row { gap: clamp(56px, 6vw, 104px); }
.sp-tick.is-media .sp-tick-row img { height: calc(clamp(40px, 3.6vw, 54px) * var(--f, 1)); max-width: 220px; filter: none; opacity: 1; mix-blend-mode: normal; }
.sp-tick.is-media .sp-tick-track { animation-duration: 36s; }
.sp-hero.no-tick { --tick: 0px; }

@media (max-width: 900px) {
	.sp-hero-in { grid-template-columns: 1fr; }
	.sp-hero-side { padding-bottom: 0; }
	.sp-hero-ctl { top: calc(var(--nav-h, 72px) + 16px); bottom: auto; }
}
@media (max-width: 640px) {
	.sp-hero { --tick: 72px; }
	.sp-hero-in { gap: 20px; padding-top: calc(var(--nav-h, 72px) + 40px); padding-bottom: 20px; }
	.sp-hero h1:not(#_) { font-size: clamp(54px, 16vw, 72px) !important; }
	.sp-hero .btns, .sp-hero .btns .btn { width: 100%; }
	.sp-hero-slides::after { background: linear-gradient(0deg, rgba(12, 12, 14, .94) 0%, rgba(12, 12, 14, .72) 48%, rgba(12, 12, 14, .25) 78%, rgba(12, 12, 14, .5) 100%); }
	.sp-tick-row img { height: calc(40px * var(--f, 1)); max-width: 140px; }
	.sp-tick.is-media .sp-tick-row img { height: calc(36px * var(--f, 1)); max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
	.sp-hs, .sp-hs.is-on { transition: none; }
	.sp-hs img, .sp-hs.is-on img { animation: none; transform: none; }
	.sp-tick-track { animation: none; }
}

/* The pause control stays out of sight until a keyboard user tabs to it */
.sp-hero-pause:not(:focus-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.sp-hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; background: rgba(18, 16, 22, .7); }

/* Teen Pride: every letter in its own Pride color (Headline style: All rainbow letters) */
.sp-hero.is-rainbow h1:not(#_) { position: relative; width: max-content; max-width: 100%; font-family: var(--tp-font, 'Fredoka', sans-serif); font-size: clamp(84px, 13.4vw, 236px) !important; font-weight: 700; line-height: .84 !important; letter-spacing: -.02em; text-transform: uppercase; text-shadow: none; }
.sp-hero.is-rainbow .rb-word { display: flex; flex-direction: column; align-items: flex-start; }
.sp-hero.is-rainbow .rw { display: block; white-space: nowrap; }
.sp-hero.is-rainbow .rw + .rw { margin-left: .42em; }
.sp-hero.is-rainbow .rl { display: inline-block; color: var(--c); -webkit-text-stroke: .025em rgba(26, 19, 37, .55); paint-order: stroke fill; filter: drop-shadow(0 .045em 0 rgba(26, 19, 37, .55)) drop-shadow(0 12px 28px rgba(0, 0, 0, .35)); transform: rotate(var(--tilt, 0deg)); animation: sp-rl-in .9s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.25s + var(--i) * .06s); }
.sp-hero.is-rainbow .rl:nth-child(odd) { --tilt: -4deg; }
.sp-hero.is-rainbow .rl:nth-child(even) { --tilt: 3deg; }
.sp-hero.is-rainbow .rl-pink { --c: #FF4FA0; }
.sp-hero.is-rainbow .rl-orange { --c: #FF8A3D; }
.sp-hero.is-rainbow .rl-yellow { --c: #FFD23F; }
.sp-hero.is-rainbow .rl-green { --c: #2ED47A; }
.sp-hero.is-rainbow .rl-blue { --c: #3D8BFF; }
.sp-hero.is-rainbow .rl-purple { --c: #B57BFF; }
/* {Accent} word: the script face, large, in the same Pride colors */
.sp-hero.is-rainbow .rw-script { display: block; width: max-content; max-width: 100%; margin: -.04em 0 0 .3em !important; padding: .06em .2em .24em .12em; font-family: var(--accent), cursive; font-size: 1.55em; font-weight: 400; line-height: .78; letter-spacing: 0; text-transform: none; background: linear-gradient(90deg, #FF4FA0 0%, #FF8A3D 20%, #FFD23F 40%, #2ED47A 60%, #3D8BFF 80%, #B57BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 .03em 0 rgba(26, 19, 37, .5)) drop-shadow(0 12px 28px rgba(0, 0, 0, .35)); transform: rotate(-4deg); transform-origin: left center; animation: sp-rw-in 1.1s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.35s + var(--i) * .06s); }
/* With the buttons under the intro, the script word's bottom lines up with the buttons (no empty space under the letters) */
@media (min-width: 901px) { .sp-hero.is-rainbow.btns-right .rw-script { margin-bottom: -.32em !important; } }
@keyframes sp-rw-in { from { opacity: 0; transform: rotate(-12deg) scale(.7); } to { opacity: 1; transform: rotate(-4deg); } }
/* Hover bounce: keeps the entrance animation in the list so it doesn't replay (and blank the letter) when the pointer leaves.
   The hop uses the separate translate/rotate properties, so it stacks on the letter's tilt. */
@media (hover: hover) { .sp-hero.is-rainbow .rl:hover { animation: sp-rl-in .9s cubic-bezier(.3, 1.6, .5, 1) both, sp-rl-hop .7s cubic-bezier(.3, 1.4, .5, 1); animation-delay: calc(.25s + var(--i) * .06s), 0s; } }
@keyframes sp-rl-in { from { opacity: 0; transform: translateY(.4em) scale(.6) rotate(calc(var(--tilt, 0deg) * -3)); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }
@keyframes sp-rl-hop { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 0 -.16em; rotate: -9deg; } 55% { translate: 0 0; rotate: 6deg; } 75% { translate: 0 -.05em; rotate: -2deg; } }

/* Sparkle stickers around the headline */
.sp-hero .sp-spark > span { font-size: 1em; font-style: normal; position: absolute; display: block; width: .26em; height: .26em; color: #1A1325; animation: sp-spark 2.8s ease-in-out infinite alternate; }
.sp-hero .sp-spark svg { width: 100%; height: 100%; stroke-width: 1.4; }
.sp-hero .sp-spark .s1 { top: -.16em; left: 3.05em; --c: #FFD23F; }
.sp-hero .sp-spark .s2 { top: .9em; right: -.34em; width: .22em; height: .22em; --c: #FF4FA0; animation-delay: -1.1s; }
.sp-hero .sp-spark .s3 { bottom: .3em; left: -.12em; width: .2em; height: .2em; --c: #3D8BFF; animation-delay: -2s; }
.sp-hero .sp-spark .f { fill: var(--c); }
@keyframes sp-spark { from { transform: scale(.85) rotate(-12deg); } to { transform: scale(1.12) rotate(14deg); } }

/* Youth partner logos: full color */
.sp-tick.is-youth .sp-tick-row { gap: clamp(56px, 6vw, 104px); }
.sp-tick.is-youth .sp-tick-row img { max-width: 260px; object-fit: contain; filter: none; opacity: 1; mix-blend-mode: normal; }
.sp-tick.is-youth .sp-tick-track { animation-duration: 32s; }

@media (max-width: 640px) {
	.sp-hero.is-rainbow h1:not(#_) { font-size: clamp(70px, 23vw, 108px) !important; }
	.sp-hero .sp-spark .s2 { right: -.1em; }
}
@media (prefers-reduced-motion: reduce) {
	.sp-hero.is-rainbow .rl, .sp-hero.is-rainbow .rw-script, .sp-hero .sp-spark > span { animation: none; }
}

/* Logo lockup under the intro (Parade: City of Long Beach + Long Beach Pride) */
.sp-lockup { margin-top: clamp(24px, 2.6vw, 36px); padding-top: clamp(16px, 1.6vw, 22px); border-top: 1px solid rgba(255, 255, 255, .28); max-width: 460px; }
.sp-lockup-l { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.sp-lockup-logos { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 24px); margin-top: 14px; }
.sp-lockup-logos img { display: block; width: auto; height: clamp(28px, 2.3vw, 38px); }
.sp-lockup-logos img.sp-lockup-lbp { height: clamp(44px, 3.8vw, 60px); }
.sp-lockup-plus { position: relative; width: 14px; height: 14px; flex: none; }
.sp-lockup-plus::before, .sp-lockup-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, .8); transform: translate(-50%, -50%); }
.sp-lockup-plus::before { width: 14px; height: 1.5px; }
.sp-lockup-plus::after { width: 1.5px; height: 14px; }

/* Readable body copy over photos (all rotating heroes): brighter text, a soft
   shadow and a gentle scrim behind the right-hand column. */
.sp-hero .sp-hero-side .lead:not(#_) { color: rgba(255, 255, 255, .96); text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .55); }
.sp-hero-slides::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, rgba(12, 12, 14, .62) 0%, rgba(12, 12, 14, .38) 34%, rgba(12, 12, 14, 0) 58%); }
@media (max-width: 900px) { .sp-hero-slides::before { background: none; } }

/* Compact headline: smaller title, accent word on its own line, flush left and close under the first line */
main .sp-hero.is-compact h1.d-hero:not(#_) { font-size: clamp(48px, 6.2vw, 96px) !important; line-height: .96 !important; }
main .sp-hero.dark.is-compact h1 i.rb:not(#_):not(#__) { margin: -.3em -.16em -.14em -.06em !important; padding: .3em .16em .16em .06em !important; font-size: 2.05em !important; }
@media (max-width: 640px) { main .sp-hero.dark.is-compact h1 i.rb:not(#_):not(#__) { margin-top: -.26em !important; font-size: 1.8em !important; } }
main .sp-hero.is-compact h1.d-hero:not(#_) { font-size: clamp(44px, 5.4vw, 84px) !important; }
main .sp-hero.is-compact h1.d-hero:not(#_) .ln1, main .sp-hero.is-compact h1.d-hero:not(#_) { white-space: normal; }
main .sp-hero.dark.is-compact h1 i.rb:not(#_):not(#__) { margin-top: -.4em !important; }
@media (min-width: 901px) { main .sp-hero.is-compact .sp-hero-copy { white-space: nowrap; } main .sp-hero.is-compact .sp-hero-copy .btns { white-space: normal; } }
main .sp-hero.dark.is-compact h1 i.rb:not(#_):not(#__) { margin-top: -.2em !important; }
main .sp-hero.dark.is-compact h1 i.rb:not(#_):not(#__) { margin-top: -.3em !important; }

/* Script accents never lose a stroke. The rainbow fill only paints inside the
   word's own box, so each accent carries enough padding (cancelled by an equal
   negative margin, so nothing moves) to hold the script's swashes: the end
   of "Parade", the top of Teen Pride's "Pride". */
main .sp-hero.dark h1 i.rb:not(#_):not(#__),
main .sp-hero.dark.is-compact h1 i.rb:not(#_):not(#__) { padding-right: .32em !important; margin-right: -.32em !important; }
.sp-hero.is-rainbow .rw-script:not(#_) { padding-top: .2em; margin-top: -.18em !important; }

/* Sponsors page logo banner in full color (owner, 2026-11-05). Media and youth variants keep their look. */
.sp-tick:not(.is-media):not(.is-youth) .sp-tick-row img { filter: none; opacity: 1; mix-blend-mode: normal; }
