/* RepublicaPass V17 — mobile first, tighter vertical rhythm and richer motion */
:root{
  --rp17-green:#0df28a;
  --rp17-header-h:68px;
  --rp17-ease:cubic-bezier(.2,.8,.2,1);
}

/* ---------- Header: shorter, animated and no dead space ---------- */
.rp-premium-v15 .rp-premium-header{
  min-height:68px;
  padding-inline:28px;
  transition:min-height .28s var(--rp17-ease),background .28s ease,border-color .28s ease,box-shadow .28s ease,backdrop-filter .28s ease;
}
.rp-homepage-v16 .rp-premium-header{
  min-height:68px;
  animation:rp17HeaderIn .7s var(--rp17-ease) both;
}
.rp-premium-v15.rp-scrolled .rp-premium-header{
  min-height:58px;
  background:rgba(1,9,6,.88);
  border-bottom-color:rgba(13,242,138,.10);
  box-shadow:0 12px 38px rgba(0,0,0,.24);
  backdrop-filter:blur(18px) saturate(1.1);
}
.rp-homepage-v16.rp-scrolled .rp-premium-header{
  position:fixed;
  top:0;
  left:50%;
  width:min(100%,1540px);
  transform:translateX(-50%);
}
.rp-premium-v15.rp-scrolled .rp-wordmark{transform:scale(.94);transform-origin:left center}
.rp-premium-v15 .rp-wordmark{transition:transform .28s var(--rp17-ease),filter .28s ease}
.rp-premium-v15 .rp-wordmark:hover{filter:drop-shadow(0 0 14px rgba(13,242,138,.15))}
.rp-premium-v15 .rp-premium-nav>a:not(.btn){padding:23px 0 20px;transition:color .2s ease,transform .2s var(--rp17-ease)}
.rp-premium-v15 .rp-premium-nav>a:not(.btn):hover{transform:translateY(-1px)}
.rp-premium-v15.rp-scrolled .rp-premium-nav>a:not(.btn){padding:19px 0 17px}
.rp-premium-v15 .rp-premium-nav>a:not(.btn)::after{transform:scaleX(0);transform-origin:center;transition:transform .28s var(--rp17-ease)}
.rp-premium-v15 .rp-premium-nav>a:not(.btn):hover::after{transform:scaleX(1)}

/* Slim scroll progress — purely visual, no layout impact */
.rp-scroll-progress{
  position:fixed;z-index:1900;left:0;top:0;width:100%;height:2px;pointer-events:none;
  transform:scaleX(var(--rp-scroll-progress,0));transform-origin:left center;
  background:linear-gradient(90deg,#0df28a,#6dffc0);
  box-shadow:0 0 16px rgba(13,242,138,.50);
  opacity:.9;
}

/* ---------- Home hero: content starts higher instead of being vertically centered ---------- */
.rp-cinema-hero{
  min-height:clamp(630px,82svh,820px);
}
.rp-cinema-photo{
  left:24%;
  animation:rp17PhotoFade .9s var(--rp17-ease) both;
}
.rp-cinema-photo img{
  object-position:center 53%;
  animation:rp17PhotoDrift 17s ease-in-out 1s infinite alternate;
}
.rp-cinema-overlay::after{
  content:"";
  position:absolute;inset:-15% -20%;pointer-events:none;
  background:linear-gradient(108deg,transparent 32%,rgba(13,242,138,.045) 47%,rgba(255,255,255,.035) 50%,transparent 60%);
  transform:translateX(-48%);
  animation:rp17HeroLight 9s ease-in-out 1.2s infinite;
  mix-blend-mode:screen;
}
.rp-cinema-grain{opacity:.085}
.rp-cinema-orbit-left{animation:rp17OrbitLeft 8s ease-in-out infinite}
.rp-cinema-orbit-right{animation:rp17OrbitRight 9.5s ease-in-out -2s infinite}

.rp-cinema-copy{
  position:relative;
  left:auto;
  right:auto;
  top:auto;
  bottom:auto;
  width:min(610px,43vw);
  margin-left:max(5.2vw,64px);
  padding-top:clamp(118px,14.5vh,146px);
  padding-bottom:132px;
  transform:none;
}
.rp-cinema-kicker{margin-bottom:20px}
.rp-cinema-kicker b{transform:scaleX(0);transform-origin:left;animation:rp17LineGrow .9s var(--rp17-ease) .7s forwards}
.rp-cinema-copy h1{font-size:clamp(60px,5.25vw,88px)}
.rp-cinema-copy h1 strong{
  background:linear-gradient(90deg,#0df28a 0%,#77ffc1 46%,#0df28a 78%);
  background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:rp17GreenShimmer 6s ease-in-out 1.5s infinite;
}
.rp-cinema-copy h2{margin:22px 0 18px;font-size:clamp(34px,2.9vw,50px)}
.rp-cinema-copy>p{font-size:14px;line-height:1.65}
.rp-cinema-actions{margin-top:27px;gap:14px}
.rp-cinema-actions .btn{min-height:54px;transition:transform .25s var(--rp17-ease),box-shadow .25s ease,background .25s ease,border-color .25s ease}
.rp-cinema-primary>span{transition:transform .26s var(--rp17-ease)}
.rp-cinema-primary:hover>span{transform:translateX(5px)}
.rp-cinema-primary{animation:rp17PrimaryPulse 4.6s ease-in-out 1.8s infinite}
.rp-cinema-secondary .rp-cinema-ticket{display:inline-block;animation:rp17TicketFloat 3.2s ease-in-out infinite}
.rp-cinema-trust{margin-top:28px}
.rp-cinema-trust i{animation:rp17TrustPulse 3.4s ease-in-out infinite}
.rp-cinema-trust span:nth-child(2) i{animation-delay:-1.1s}.rp-cinema-trust span:nth-child(3) i{animation-delay:-2.1s}
.rp-cinema-bottom-left{bottom:36px}.rp-cinema-bottom-right{bottom:34px}.rp-cinema-scroll{bottom:18px}

/* ---------- More expressive scroll reveals ---------- */
.rp-homepage-v16 .homev3-heading.reveal,
.rp-homepage-v16 .public-guide-card.reveal,
.rp-homepage-v16 .homev3-event.reveal{
  transform:translateY(34px) scale(.975);
  filter:blur(8px);
  transition-duration:.82s;
  transition-timing-function:var(--rp17-ease);
}
.rp-homepage-v16 .homev3-heading.reveal.visible,
.rp-homepage-v16 .public-guide-card.reveal.visible,
.rp-homepage-v16 .homev3-event.reveal.visible{transform:none;filter:none}
.rp-homepage-v16 .homev3-event.visible{animation:rp17CardSettle .9s var(--rp17-ease) both}
.rp-homepage-v16 .homev3-event-image::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(110deg,transparent 32%,rgba(255,255,255,.12) 49%,transparent 62%);
  transform:translateX(-130%);transition:transform .8s var(--rp17-ease);
}
.rp-homepage-v16 .homev3-event:hover .homev3-event-image::before{transform:translateX(130%)}
.rp-homepage-v16 .public-guide-card>span{transition:transform .35s var(--rp17-ease),box-shadow .35s ease}
.rp-homepage-v16 .public-guide-card:hover>span{transform:translateY(-4px) rotate(-4deg) scale(1.06);box-shadow:0 0 28px rgba(13,242,138,.10)}
.rp-homepage-v16 .homev3-section{scroll-margin-top:68px}

/* ---------- Internal public pages: reduce excess space above content ---------- */
.rp-premium-v15 .public-page-shell{padding-top:0}
.rp-premium-v15 .public-page-hero{padding-top:44px;padding-bottom:24px}
.rp-premium-v15 .public-page-hero::before{margin-bottom:15px}
.rp-premium-v15 .event-hero{margin-top:8px;min-height:440px}
.rp-premium-v15 .event-hero-content{padding-top:48px;padding-bottom:42px}
.rp-premium-v15 .event-hero h1{margin-top:8px}

/* ---------- Mobile first ---------- */
@media(max-width:820px){
  :root{--rp17-header-h:62px}
  .rp-homepage-v16 .rp-premium-header,
  .rp-premium-v15 .rp-premium-header{
    min-height:62px;
    padding:0 15px;
  }
  .rp-homepage-v16 .rp-premium-header{animation-name:rp17HeaderInMobile}
  .rp-homepage-v16.rp-scrolled .rp-premium-header,
  .rp-premium-v15.rp-scrolled .rp-premium-header{min-height:56px}
  .rp-homepage-v16.rp-scrolled .rp-premium-header{left:0;width:100%;transform:none}
  .rp-premium-v15 .rp-wordmark{font-size:18px;gap:8px}.rp-premium-v15 .rp-wordmark img{width:29px;height:29px}
  .rp-premium-v15 .public-menu-toggle{width:40px;height:40px;border-radius:12px;font-size:18px;transition:transform .25s var(--rp17-ease),background .25s ease}
  .rp-premium-v15.public-menu-open .public-menu-toggle{transform:rotate(90deg);background:rgba(13,242,138,.08)}
  .rp-premium-v15 .mobile-public-nav{top:64px!important;transform:translateY(-12px) scale(.97);transform-origin:top center;transition:opacity .24s ease,transform .32s var(--rp17-ease)!important}
  .rp-premium-v15.public-menu-open .mobile-public-nav{transform:none}
  .rp-premium-v15 .mobile-public-nav>a{opacity:0;transform:translateY(-6px);transition:opacity .25s ease,transform .32s var(--rp17-ease),background .2s ease}
  .rp-premium-v15.public-menu-open .mobile-public-nav>a{opacity:1;transform:none}
  .rp-premium-v15.public-menu-open .mobile-public-nav>a:nth-of-type(1){transition-delay:.03s}.rp-premium-v15.public-menu-open .mobile-public-nav>a:nth-of-type(2){transition-delay:.06s}.rp-premium-v15.public-menu-open .mobile-public-nav>a:nth-of-type(3){transition-delay:.09s}.rp-premium-v15.public-menu-open .mobile-public-nav>a:nth-of-type(4){transition-delay:.12s}.rp-premium-v15.public-menu-open .mobile-public-nav>a:nth-of-type(5){transition-delay:.15s}

  .rp-cinema-hero{min-height:0}
  .rp-cinema-photo{left:0}
  .rp-cinema-photo img{
    object-position:63% center;
    transform:scale(1.035);
    animation:rp17MobilePhoto 18s ease-in-out 1s infinite alternate;
  }
  .rp-cinema-overlay{
    background:
      linear-gradient(90deg,rgba(0,8,6,.965) 0%,rgba(0,8,6,.88) 40%,rgba(0,8,6,.47) 74%,rgba(0,8,6,.28) 100%),
      linear-gradient(180deg,rgba(0,6,4,.73) 0%,rgba(0,6,4,.08) 29%,rgba(0,7,5,.18) 64%,rgba(0,8,5,.88) 100%);
  }
  .rp-cinema-copy{
    width:auto;
    margin:0;
    padding:92px 24px 96px;
  }
  .rp-cinema-kicker{font-size:7px;gap:7px;letter-spacing:.21em;margin-bottom:16px}
  .rp-cinema-copy h1{font-size:clamp(48px,10.5vw,72px)}
  .rp-cinema-copy h2{margin:18px 0 15px;font-size:clamp(31px,6.5vw,43px)}
  .rp-cinema-copy>p{max-width:520px;font-size:13px;line-height:1.58}
  .rp-cinema-actions{margin-top:22px;gap:10px}
  .rp-cinema-actions .btn{min-height:50px;padding-inline:21px}
  .rp-cinema-trust{margin-top:21px}
  .rp-cinema-trust span{font-size:10px}
  .rp-cinema-bottom-left{left:24px;bottom:24px}.rp-cinema-bottom-right,.rp-cinema-scroll{display:none}
  .rp-cinema-orbit-left{width:720px;height:720px;left:-585px;top:-30px}.rp-cinema-orbit-right{width:520px;height:520px;right:-420px;bottom:-305px}

  .rp-homepage-v16 .rp-home-events{padding-top:54px!important}
  .homev3-section{padding-top:54px;padding-bottom:54px}
  .rp-premium-v15 .public-page-hero{padding-top:30px;padding-bottom:18px}
  .rp-premium-v15 .event-hero{margin:4px 10px 0;min-height:360px}
  .rp-premium-v15 .event-hero-content{padding:34px 18px 28px}
  .rp-premium-v15 .event-hero h1{font-size:clamp(38px,9.6vw,58px);line-height:.94}
  .rp-premium-v15 input,.rp-premium-v15 select,.rp-premium-v15 textarea{font-size:16px}
  .rp-premium-v15 button,.rp-premium-v15 .btn{min-height:46px}
}

@media(max-width:560px){
  .rp-homepage-v16 .rp-premium-header,.rp-premium-v15 .rp-premium-header{min-height:58px;padding-inline:13px}
  .rp-premium-v15 .rp-wordmark{font-size:17px}.rp-premium-v15 .rp-wordmark img{width:27px;height:27px}
  .rp-premium-v15 .mobile-public-nav{top:60px!important;left:8px;right:8px}

  .rp-cinema-copy{padding:82px 18px 72px}
  .rp-cinema-kicker{margin-bottom:14px}.rp-cinema-kicker span:nth-of-type(3),.rp-cinema-kicker span:nth-of-type(4),.rp-cinema-kicker i:nth-of-type(2),.rp-cinema-kicker i:nth-of-type(3){display:none}
  .rp-cinema-copy h1{font-size:clamp(44px,13.4vw,58px);letter-spacing:-.065em}
  .rp-cinema-copy h2{margin:15px 0 13px;font-size:clamp(29px,8.6vw,38px);line-height:1}
  .rp-cinema-copy>p{font-size:12.5px;line-height:1.55}
  .rp-cinema-actions{display:grid;grid-template-columns:1fr;margin-top:19px}
  .rp-cinema-actions .btn{width:100%;min-height:48px;font-size:12px;border-radius:9px}
  .rp-cinema-trust{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin-top:18px}
  .rp-cinema-trust span{border:0;margin:0;padding:0;font-size:9px;gap:7px}.rp-cinema-trust span:last-child{grid-column:1/-1}
  .rp-cinema-trust i{width:21px;height:21px;border-radius:7px;font-size:11px}
  .rp-cinema-bottom-left{display:none}
  .rp-cinema-overlay{background:linear-gradient(90deg,rgba(0,8,6,.97),rgba(0,8,6,.79) 56%,rgba(0,8,6,.36)),linear-gradient(180deg,rgba(0,6,4,.78),rgba(0,6,4,.06) 35%,rgba(0,8,5,.84) 100%)}
  .rp-cinema-photo img{object-position:65% center}
  .rp-homepage-v16 .rp-home-events{padding-top:42px!important}
  .homev3-section{padding:46px 15px}
  .rp-premium-v15 .public-page-hero{padding:24px 16px 14px}
  .rp-premium-v15 .public-page-hero h1{font-size:clamp(38px,12vw,54px);margin-bottom:12px}
  .rp-premium-v15 .event-hero{min-height:320px;margin-inline:8px;border-radius:14px}
  .rp-premium-v15 .event-hero-content{padding:28px 15px 22px}
  .rp-premium-v15 .event-hero h1{font-size:clamp(36px,11vw,50px)}
}

@media(max-width:390px){
  .rp-cinema-copy{padding:76px 15px 62px}
  .rp-cinema-copy h1{font-size:43px}.rp-cinema-copy h2{font-size:28px}
  .rp-cinema-copy>p{font-size:12px}.rp-cinema-kicker{font-size:6.5px}
  .rp-cinema-trust{gap:7px}
}

/* ---------- Motion ---------- */
@keyframes rp17HeaderIn{0%{opacity:0;transform:translate(-50%,-14px)}100%{opacity:1;transform:translate(-50%,0)}}
@keyframes rp17HeaderInMobile{0%{opacity:0;transform:translateY(-12px)}100%{opacity:1;transform:none}}
@keyframes rp17PhotoFade{0%{opacity:.15;filter:blur(5px)}100%{opacity:1;filter:none}}
@keyframes rp17PhotoDrift{0%{transform:translate3d(calc(var(--hero-x) * .28),calc(var(--hero-y) * .28),0) scale(1.025)}100%{transform:translate3d(calc(var(--hero-x) * .28 - 12px),calc(var(--hero-y) * .28 - 4px),0) scale(1.055)}}
@keyframes rp17MobilePhoto{0%{transform:translate3d(0,0,0) scale(1.035)}100%{transform:translate3d(-10px,-2px,0) scale(1.065)}}
@keyframes rp17HeroLight{0%,18%{transform:translateX(-52%);opacity:0}36%{opacity:.75}62%{transform:translateX(52%);opacity:.18}100%{transform:translateX(52%);opacity:0}}
@keyframes rp17OrbitLeft{0%,100%{opacity:.42;transform:scale(.985) translate3d(0,0,0)}50%{opacity:.94;transform:scale(1.018) translate3d(7px,3px,0)}}
@keyframes rp17OrbitRight{0%,100%{opacity:.38;transform:scale(.98) translate3d(0,0,0)}50%{opacity:.92;transform:scale(1.025) translate3d(-7px,-4px,0)}}
@keyframes rp17LineGrow{to{transform:scaleX(1)}}
@keyframes rp17GreenShimmer{0%,30%{background-position:100% 50%}65%,100%{background-position:0% 50%}}
@keyframes rp17PrimaryPulse{0%,100%{box-shadow:0 12px 34px rgba(13,242,138,.15)}50%{box-shadow:0 16px 44px rgba(13,242,138,.25)}}
@keyframes rp17TicketFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(-4deg)}}
@keyframes rp17TrustPulse{0%,100%{border-color:rgba(13,242,138,.30);box-shadow:inset 0 0 10px rgba(13,242,138,.02)}50%{border-color:rgba(13,242,138,.60);box-shadow:inset 0 0 15px rgba(13,242,138,.07),0 0 12px rgba(13,242,138,.05)}}
@keyframes rp17CardSettle{0%{opacity:0;transform:translateY(26px) scale(.965)}70%{opacity:1;transform:translateY(-2px) scale(1.004)}100%{opacity:1;transform:none}}

@media(prefers-reduced-motion:reduce){
  .rp-homepage-v16 .rp-premium-header,.rp-cinema-photo,.rp-cinema-photo img,.rp-cinema-overlay::after,.rp-cinema-orbit,.rp-cinema-copy h1 strong,.rp-cinema-primary,.rp-cinema-secondary .rp-cinema-ticket,.rp-cinema-trust i,.rp-homepage-v16 .homev3-event.visible{animation:none!important}
  .rp-cinema-kicker b{transform:none!important;animation:none!important}
}
