
/* ===== Sunset hero variations (3A to 3D) with animation ===== */
.s { position: relative; overflow: hidden; min-height: calc(100svh - var(--hdr, 122px)); display: flex; flex-direction: column; color: var(--nw-canvas-cream); isolation: isolate; }
.s > * { position: relative; }
.s .vstars, .s .layer { position: absolute; inset: 0; pointer-events: none; }
.s .copy { z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 2.2vh, 24px); padding: 4vh clamp(24px, 7vw, 120px); }
.s .v-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(253,240,219,.6); border-radius: 999px; padding: 7px 14px; }
.s h1 { margin: 0; font-family: var(--nw-font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, min(9vw, 16vh), 150px); line-height: .9; }
.s h1 .ln { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .04em; }
.s h1 .ln > span { display: inline-block; animation: lineUp .9s cubic-bezier(.2,.8,.2,1) both; }
.s h1 .ln:nth-child(2) > span { animation-delay: .15s; }
.s .place { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); margin: 0; text-shadow: 0 1px 8px rgba(11,37,53,.5); }
.s .place svg { width: 18px; height: 18px; color: var(--nw-dune-gold); flex: none; }
.s .early { margin: 0; font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(11,37,53,.5); }
.s .fade1, .s .fade2, .s .fade3 { animation: fadeUp .8s ease both; }
.s .fade1 { animation-delay: .35s; } .s .fade2 { animation-delay: .5s; } .s .fade3 { animation-delay: .65s; }
.s .shim { background: linear-gradient(100deg, #E9BA69 30%, #FFF4D6 50%, #E9BA69 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shim 5s linear 1.2s infinite; }
.s .tents { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(40px, 8vh, 84px); background: url("../assets/logo/next-week-tents-tide.svg") repeat-x left bottom / auto 100%; z-index: 4; pointer-events: none; }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes shim { to { background-position: -150% 0; } }

/* 3A Sunrise: the sun climbs from behind the tents while the night sky lifts */
.s3a { background: linear-gradient(180deg, #0B2535 0%, #245C6C 45%, #E9BA69 100%); }
.s3a .night { position: absolute; inset: 0; background: linear-gradient(180deg, #050f18, #0B2535 60%, #12384F); animation: nightLift 12s ease-out both; pointer-events: none; }
.s3a .vstars { animation: starsOut 13s ease-out both; }
.s3a .sun { position: absolute; right: clamp(-60px, 5vw, 100px); bottom: clamp(30px, 6vh, 70px); width: min(38vw, 440px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FDF0DB, #F3CF8E 55%, #E9BA69); box-shadow: 0 0 120px 40px rgba(253,240,219,.25); animation: rise 12s cubic-bezier(.3,.6,.3,1) both; z-index: 1; }
@keyframes nightLift { to { opacity: 0; } }
@keyframes starsOut { from { opacity: 1; } to { opacity: .12; } }
@keyframes rise { from { transform: translateY(85%); } }
@keyframes glow { to { box-shadow: 0 0 170px 70px rgba(253,240,219,.35); } }

/* 3B Sunburst: a giant spinning-ray sun behind the headline, tents drifting in layers, mouse parallax */
.s3b { background: linear-gradient(180deg, #0B2535 0%, #1B4A5E 55%, #C9A060 100%); align-items: center; justify-content: center; text-align: center; gap: clamp(10px, 2vh, 20px); padding: 2vh 20px calc(clamp(40px, 8vh, 84px) + 1vh); }
.s3b .rays { position: absolute; left: 50%; top: 48%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(253,240,219,.13) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 34%); mask: radial-gradient(circle, #000 0, transparent 34%); animation: spin 140s linear infinite; }
.s3b .parallax { position: absolute; inset: 0; pointer-events: none; transition: transform .25s ease-out; }
.s3b .sun { position: absolute; left: 50%; top: 48%; width: min(56vh, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FDF0DB, #F3CF8E 60%, #E9BA69); box-shadow: 0 0 140px 50px rgba(253,240,219,.22); animation: breathe 6s ease-in-out infinite; }
.s3b .sunbox { position: relative; z-index: 3; width: min(56vh, 560px); aspect-ratio: 1; display: grid; place-content: center; text-align: center; color: var(--nw-tide-blue); }
.s3b h1 { font-size: clamp(40px, min(7.5vw, 11vh), 110px); }
.s3b h1 .ln { margin: 0 auto; }
.s3b .v-pill { border-color: var(--nw-tide-blue); margin: 0 auto 1.4vh; }
.s3b .row { z-index: 3; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.s3b .hint { position: relative; z-index: 3; }
.s3b .t1, .s3b .t2, .s3b .t3 { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; background-image: url("../assets/logo/next-week-tents-tide.svg"); pointer-events: none; }
.s3b .t1 { --h: 120px; height: var(--h); background-size: auto var(--h); opacity: .3; animation: drift 90s linear infinite; z-index: 1; }
.s3b .t2 { --h: 90px; height: var(--h); background-size: auto var(--h); opacity: .6; animation: drift 55s linear infinite; z-index: 2; }
.s3b .t3 { --h: clamp(40px, 8vh, 84px); height: var(--h); background-size: auto var(--h); animation: drift 30s linear infinite; z-index: 4; }
.s3b .tents { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.035); } }
@keyframes drift { to { background-position-x: calc(var(--h) * -2.662); } }

/* 3C Day to night loop: the sun sets behind the tents, the moon rises, stars come out, then back again */
.s3c { background: linear-gradient(180deg, #050f18 0%, #0B2535 28%, #245C6C 66%, #E9BA69 92%, #F0CC85 100%); background-size: 100% 300%; animation: skyCycle 26s ease-in-out infinite alternate; }
.s3c .vstars { animation: starsCycle 26s ease-in-out infinite alternate; }
.s3c .sun { position: absolute; right: clamp(-60px, 6vw, 110px); bottom: clamp(30px, 6vh, 70px); width: min(36vw, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FDF0DB, #F3CF8E 55%, #E9BA69); box-shadow: 0 0 120px 40px rgba(253,240,219,.25); animation: sunCycle 26s ease-in-out infinite alternate; z-index: 1; }
.s3c .moon { position: absolute; right: clamp(40px, 12vw, 200px); top: 16%; width: clamp(70px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 16px -8px 0 0 #FDF0DB, 0 0 50px 8px rgba(253,240,219,.25); animation: moonCycle 26s ease-in-out infinite alternate; z-index: 1; }
@keyframes skyCycle { from { background-position: 0 100%; } 45% { background-position: 0 100%; } to { background-position: 0 0; } }
@keyframes starsCycle { from { opacity: 0; } 45% { opacity: 0; } to { opacity: 1; } }
@keyframes sunCycle { from { transform: translateY(0); } 45% { transform: translateY(0); } to { transform: translateY(95%); } }
@keyframes moonCycle { from { transform: translateY(-260%); opacity: 0; } 45% { transform: translateY(-260%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 3D Water: half-sunk sun on the horizon, shimmering reflection, rolling waves, a boat drifting by */
.s3d { background: #0B2535; justify-content: space-between; }
.s3d .skyb { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: linear-gradient(180deg, #0B2535 0%, #245C6C 55%, #E9BA69 100%); }
.s3d .sea { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; background: linear-gradient(180deg, #B98B45 0%, #2F6B7A 18%, #12384F 55%, #0B2535 100%); z-index: 2; overflow: hidden; }
.s3d .sun { position: absolute; left: 62%; top: 62%; width: min(32vw, 380px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FDF0DB, #F3CF8E 55%, #E9BA69); box-shadow: 0 0 120px 40px rgba(253,240,219,.25); animation: bob 7s ease-in-out infinite; z-index: 1; }
.s3d .refl { position: absolute; left: 62%; top: 0; bottom: 0; width: min(18vw, 220px); margin-left: calc(min(18vw, 220px) / -2); background: repeating-linear-gradient(180deg, rgba(243,207,142,.75) 0 3px, transparent 3px 11px); -webkit-mask: linear-gradient(180deg, #000, transparent 90%); mask: linear-gradient(180deg, #000, transparent 90%); animation: shimmer 3.2s ease-in-out infinite alternate; }
.s3d .wave { position: absolute; left: 0; right: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 7q30-10 60 0t60 0' fill='none' stroke='%23FDF0DB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x; }
.s3d .w1 { top: 12%; opacity: .45; animation: waveMove 14s linear infinite; }
.s3d .w2 { top: 40%; opacity: .3; animation: waveMove 9s linear infinite reverse; }
.s3d .w3 { top: 68%; opacity: .2; animation: waveMove 6s linear infinite; }
.s3d .boat { position: absolute; top: calc(62% - 38px); left: 0; width: 46px; z-index: 1; animation: sail 70s linear infinite; }
.s3d .boat svg { width: 100%; display: block; animation: bobSmall 4s ease-in-out infinite; }
.s3d .copy.top { padding-bottom: 0; }
.s3d .copy.bottom { margin-top: auto; padding-top: 0; padding-bottom: calc(clamp(40px, 8vh, 84px) + 3vh); z-index: 5; }
.s3d .tents { z-index: 6; }
@keyframes bob { 50% { transform: translate(-50%, calc(-50% + 8px)); } }
@keyframes shimmer { from { transform: scaleX(.65); opacity: .6; } to { transform: scaleX(1); opacity: 1; } }
@keyframes waveMove { to { background-position-x: 120px; } }
@keyframes sail { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 60px)); } }
@keyframes bobSmall { 50% { transform: translateY(3px) rotate(2deg); } }

@media (max-width: 760px) {
  .s3a .sun, .s3c .sun { width: 80vw; right: -20vw; }
  .s3c .moon { right: 8vw; top: 12%; }
  .s3b .sunbox { width: min(78vw, 360px); }
  .s3b h1 { font-size: clamp(34px, 11vw, 56px); }
  .s3d .sun { left: 70%; width: 56vw; }
  .s3d .refl { left: 70%; }
  .s h1 { font-size: clamp(44px, 15vw, 70px); }
}

.s3b .sun, .s3b .sunbox { width: min(50vh, 520px); }
.s3b .shim { background: linear-gradient(100deg, #B5651D 30%, #E0902F 50%, #B5651D 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.s3c h1, .s3c .v-pill { text-shadow: 0 2px 20px rgba(11,37,53,.6); }
.s3d .tents { background-image: url("../assets/logo/next-week-tents-gold.svg"); opacity: .4; }
.marquee-track { animation-duration: 75s; }
.marquee { border-top: 2px solid var(--nw-tide-blue); }
