/* YYC PREMIUM EXPERIENCE LAYER — BUILD 6
   Visual-only enhancement layer. Existing auth, Supabase data, portals and content remain untouched. */

:root{
  --yyc-gold:#e7bf70;
  --yyc-gold-soft:#f5d99b;
  --yyc-ink:#05090c;
  --yyc-glass:rgba(8,13,17,.58);
  --yyc-line:rgba(235,198,120,.16);
}

html{scroll-behavior:smooth}
body{
  background-color:var(--yyc-ink);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-5;
  pointer-events:none;
  opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode:soft-light;
}

/* Premium floating navigation */
.topbar{
  transition:background .35s ease,box-shadow .35s ease,border-color .35s ease,transform .35s ease;
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
}
body.yyc-premium-scrolled .topbar{
  background:rgba(5,9,12,.78);
  border-bottom-color:rgba(231,191,112,.18);
  box-shadow:0 16px 45px rgba(0,0,0,.24);
}
.desktop-nav .nav-link,
.desktop-nav .nav-admin{
  transition:color .25s ease,background .25s ease,border-color .25s ease,transform .25s ease;
}
.desktop-nav .nav-admin:hover,
.desktop-nav .nav-link:hover{
  transform:translateY(-1px);
}

/* Hero depth without cursor-following movement */
.hero-photo{
  transform:scale(1.035);
  animation:yycPremiumHeroZoom 18s ease-in-out infinite alternate;
  will-change:transform;
}
.hero-vignette{
  background:
    radial-gradient(circle at 50% 36%,rgba(0,0,0,0) 0%,rgba(2,6,9,.12) 44%,rgba(2,6,9,.82) 100%),
    linear-gradient(180deg,rgba(2,5,7,.20),transparent 30%,rgba(2,5,7,.62));
}
.hero-main{
  filter:drop-shadow(0 28px 60px rgba(0,0,0,.24));
}
.hero-actions .btn{
  position:relative;
  overflow:hidden;
}
.hero-actions .btn::after{
  content:"";
  position:absolute;
  top:-80%;
  left:-45%;
  width:28%;
  height:260%;
  transform:rotate(22deg) translateX(-260%);
  background:linear-gradient(90deg,transparent,rgba(255,249,224,.28),transparent);
  transition:transform .8s cubic-bezier(.16,1,.3,1);
}
.hero-actions .btn:hover::after{transform:rotate(22deg) translateX(620%)}
.hero-actions .btn:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(0,0,0,.26)}

/* Premium section rhythm */
main > .section{
  scroll-margin-top:88px;
}
.section{
  position:relative;
}
.section::after{
  content:"";
  position:absolute;
  left:clamp(18px,5vw,72px);
  right:clamp(18px,5vw,72px);
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(231,191,112,.14),transparent);
  pointer-events:none;
}
.section-head h2{
  letter-spacing:-.025em;
}
.section-kicker{
  opacity:.9;
  letter-spacing:.22em!important;
}

/* Editorial image treatment */
.glimpse-card,
.glimpse-feature,
.leader-card,
.gallery-card,
.event-card,
.update-card,
.join-card{
  transition:transform .45s cubic-bezier(.16,1,.3,1),border-color .35s ease,box-shadow .45s ease;
}
.glimpse-card:hover,
.glimpse-feature:hover,
.leader-card:hover,
.gallery-card:hover,
.event-card:not(.event-skeleton):hover,
.update-card:hover{
  transform:translateY(-7px);
  border-color:rgba(231,191,112,.30);
  box-shadow:0 24px 55px rgba(0,0,0,.24);
}
.glimpse-card img,
.glimpse-feature img,
.leader-photo img,
.gallery-card img{
  transition:transform .8s cubic-bezier(.16,1,.3,1),filter .5s ease;
}
.glimpse-card:hover img,
.glimpse-feature:hover img,
.leader-card:hover img,
.gallery-card:hover img{
  transform:scale(1.045);
  filter:saturate(1.05) contrast(1.03);
}

/* Glass content surfaces */
.culture-panel,
.join-card{
  border-color:rgba(231,191,112,.17)!important;
  box-shadow:0 25px 80px rgba(0,0,0,.24);
}
.culture-panel{
  background:linear-gradient(145deg,rgba(7,12,16,.60),rgba(7,11,14,.32))!important;
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
}

/* Gallery feels like an editorial portfolio */
.gallery-card{overflow:hidden}
.gallery-card::after{
  content:"↗";
  position:absolute;
  right:13px;
  top:13px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.20);
  border-radius:50%;
  background:rgba(3,7,9,.46);
  backdrop-filter:blur(10px);
  color:#f2d49a;
  opacity:0;
  transform:translateY(6px);
  transition:.3s ease;
}
.gallery-card:hover::after{opacity:1;transform:none}

/* Premium join CTA */
.join-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 20%,rgba(231,191,112,.12),transparent 27%),
    linear-gradient(135deg,rgba(16,20,23,.95),rgba(7,11,14,.90))!important;
}
.join-card::before{
  content:"";
  position:absolute;
  width:320px;
  height:320px;
  right:-170px;
  top:-170px;
  border-radius:50%;
  border:1px solid rgba(231,191,112,.12);
  box-shadow:0 0 0 35px rgba(231,191,112,.025),0 0 0 70px rgba(231,191,112,.015);
  pointer-events:none;
}

/* Back-to-top control */
.yyc-premium-backtop{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:140;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(231,191,112,.28);
  border-radius:50%;
  background:rgba(5,9,12,.78);
  color:#edcf8d;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 15px 38px rgba(0,0,0,.28);
  opacity:0;
  transform:translateY(12px) scale(.94);
  pointer-events:none;
  transition:opacity .28s ease,transform .28s ease,border-color .25s ease;
  cursor:pointer;
}
.yyc-premium-backtop.visible{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.yyc-premium-backtop:hover{
  border-color:rgba(231,191,112,.60);
  transform:translateY(-3px);
}

/* Thin scroll progress */
.yyc-premium-progress{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:2px;
  z-index:999;
  pointer-events:none;
  background:transparent;
}
.yyc-premium-progress span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#9b7335,#f4d18a,#b48743);
  box-shadow:0 0 12px rgba(231,191,112,.48);
  transition:width .08s linear;
}

/* Keyboard/search-ready visual language */
.yyc-premium-hint{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  color:#7f8885;
  font:700 8px/1 "Space Grotesk",sans-serif;
  letter-spacing:.13em;
}
.yyc-premium-hint kbd{
  padding:5px 7px;
  border:1px solid rgba(255,255,255,.12);
  border-bottom-color:rgba(231,191,112,.24);
  border-radius:6px;
  background:rgba(255,255,255,.035);
  color:#c8b48b;
}

/* Better focus states */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid rgba(231,191,112,.72);
  outline-offset:3px;
}

/* Reveal polish — does not hide existing public content */
body.yyc-scroll-ready .section .reveal:not(.yyc-scroll-in){
  will-change:transform,opacity;
}
body.yyc-scroll-ready .section .reveal.yyc-scroll-in{
  animation:yycPremiumReveal .72s cubic-bezier(.16,1,.3,1) both;
  animation-delay:var(--yyc-reveal-delay,0ms);
}

/* Mobile premium adjustments */
@media(max-width:760px){
  .yyc-premium-backtop{
    right:13px;
    bottom:calc(13px + env(safe-area-inset-bottom));
    width:42px;
    height:42px;
  }
  .hero-photo{animation-duration:24s}
  .section::after{left:14px;right:14px}
  .culture-panel{backdrop-filter:blur(12px)}
  .glimpse-card:hover,
  .glimpse-feature:hover,
  .leader-card:hover,
  .gallery-card:hover,
  .event-card:not(.event-skeleton):hover,
  .update-card:hover{transform:none}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-photo{animation:none!important;transform:scale(1.02)}
  .hero-actions .btn::after{display:none}
  .yyc-premium-backtop,.yyc-premium-progress span{transition:none}
  body.yyc-scroll-ready .section .reveal.yyc-scroll-in{animation:none}
}
@media print{
  .yyc-premium-progress,.yyc-premium-backtop{display:none!important}
}

@keyframes yycPremiumHeroZoom{
  from{transform:scale(1.035)}
  to{transform:scale(1.075)}
}
@keyframes yycPremiumReveal{
  from{opacity:.01;transform:translateY(20px)}
  to{opacity:1;transform:none}
}


/* Remove the rectangular glass/blur block from the Culture in Motion panel. */
.culture-panel{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
@media(max-width:760px){.culture-panel{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}


/* =========================================================
   YYC PREMIUM MOTION — cinematic, restrained, luxury feel
   ========================================================= */

/* Hero: soft cinematic depth */
.hero-main{
  animation:yycHeroContentIn 1.15s cubic-bezier(.16,1,.3,1) both;
}
.hero-logo-stage{
  animation:yycLogoFloat 6.5s ease-in-out 1.1s infinite;
}
.hero-logo-stage::before{
  animation:yycLuxuryCrestTrace 8.8s cubic-bezier(.45,0,.25,1) infinite;
}
.hero-logo-ring{
  animation:yycLuxuryAura 5.8s ease-in-out infinite;
}
.hero-logo-shine::before{
  animation:yycLuxuryShine 8.8s cubic-bezier(.45,0,.25,1) infinite;
}
.brand-lockup h1{
  animation:yycTitleReveal 1s cubic-bezier(.16,1,.3,1) .18s both;
}
.brand-lockup .brand-subtitle,
.hero-main .hero-association,
.hero-main .hero-slogan,
.hero-main .hero-quote,
.hero-main .hero-social,
.hero-main .hero-actions{
  animation:yycSoftRise .85s cubic-bezier(.16,1,.3,1) both;
}
.hero-main .hero-association{animation-delay:.32s}
.hero-main .hero-slogan{animation-delay:.43s}
.hero-main .hero-quote{animation-delay:.54s}
.hero-main .hero-social{animation-delay:.65s}
.hero-main .hero-actions{animation-delay:.76s}

/* Culture panel: no box blur, but cinematic content motion */
.culture-panel{
  animation:yycCultureIn 1.1s cubic-bezier(.16,1,.3,1) .35s both;
}
.culture-panel > *{
  animation:yycSoftRise .8s cubic-bezier(.16,1,.3,1) both;
}
.culture-panel > *:nth-child(1){animation-delay:.48s}
.culture-panel > *:nth-child(2){animation-delay:.58s}
.culture-panel > *:nth-child(3){animation-delay:.68s}
.culture-panel > *:nth-child(4){animation-delay:.78s}
.culture-panel img{
  transition:transform .65s cubic-bezier(.16,1,.3,1),filter .5s ease;
}
.culture-panel img:hover{
  transform:scale(1.07) rotate(1deg);
  filter:saturate(1.12) brightness(1.06);
}

/* Gold nav underline glides instead of snapping */
.desktop-nav .nav-link::after,
.desktop-nav .nav-admin::after{
  transform-origin:left center;
  transform:scaleX(0);
  transition:transform .35s cubic-bezier(.16,1,.3,1);
}
.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-admin:hover::after{
  transform:scaleX(1);
}

/* Section headings enter like an editorial site */
.section-head{
  animation:yycSoftRise .8s cubic-bezier(.16,1,.3,1) both;
}

/* Cards: restrained float + image depth */
.glimpse-card,
.glimpse-feature,
.leader-card,
.gallery-card,
.event-card,
.update-card{
  will-change:transform;
}
.glimpse-card:hover,
.glimpse-feature:hover,
.leader-card:hover,
.gallery-card:hover,
.event-card:not(.event-skeleton):hover,
.update-card:hover{
  transition-duration:.55s;
}

/* Premium CTA breathing glow */
.hero-actions .btn:first-child{
  animation:yycCtaBreath 4.5s ease-in-out 2s infinite;
}
.hero-actions .btn:first-child:hover{
  animation-play-state:paused;
}

/* Scroll-in elements get a cleaner cinematic rise */
body.yyc-scroll-ready .section .reveal.yyc-scroll-in{
  animation:yycPremiumReveal .9s cubic-bezier(.16,1,.3,1) both;
}

/* Avoid motion stacking on the first hero after initial load */
@media(max-width:760px){
  .hero-main{animation-duration:.95s}
  .hero-logo-stage{animation-duration:7s}
  .culture-panel{animation-duration:.9s}
}
@media(prefers-reduced-motion:reduce){
  .hero-main,
  .hero-logo-stage,
  .brand-lockup h1,
  .brand-lockup .brand-subtitle,
  .hero-main .hero-association,
  .hero-main .hero-slogan,
  .hero-main .hero-quote,
  .hero-main .hero-social,
  .hero-main .hero-actions,
  .culture-panel,
  .culture-panel > *,
  .section-head,
  .hero-actions .btn:first-child{
    animation:none!important;
  }
}

@keyframes yycHeroContentIn{
  from{opacity:0;transform:translateY(24px) scale(.985)}
  to{opacity:1;transform:none}
}
@keyframes yycLogoFloat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-7px) scale(1.012)}
}
@keyframes yycTitleReveal{
  from{opacity:0;transform:translateY(18px);letter-spacing:.08em}
  to{opacity:1;transform:none;letter-spacing:normal}
}
@keyframes yycSoftRise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}
@keyframes yycCultureIn{
  from{opacity:0;transform:translateX(34px) scale(.985)}
  to{opacity:1;transform:none}
}
@keyframes yycCtaBreath{
  0%,100%{box-shadow:0 10px 28px rgba(0,0,0,.18)}
  50%{box-shadow:0 14px 38px rgba(231,191,112,.16)}
}
@keyframes yycLuxuryCrestTrace{
  0%,12%{opacity:.15;transform:rotate(0deg)}
  45%{opacity:.9;transform:rotate(150deg)}
  70%,100%{opacity:.18;transform:rotate(360deg)}
}
@keyframes yycLuxuryAura{
  0%,100%{opacity:.62;transform:scale(1)}
  50%{opacity:1;transform:scale(1.025)}
}
@keyframes yycLuxuryShine{
  0%,34%{opacity:0;transform:translateX(0) rotate(20deg)}
  45%{opacity:1}
  58%{opacity:0;transform:translateX(430%) rotate(20deg)}
  100%{opacity:0;transform:translateX(430%) rotate(20deg)}
}


/* =========================================================
   YYC HERO CINEMATIC LANDSCAPE MOTION
   Slow camera drift + atmospheric light + subtle water flow
   ========================================================= */
.hero{
  overflow:hidden;
}
.hero-photo{
  transform-origin:50% 55%;
  animation:yycHeroCinematic 28s cubic-bezier(.45,0,.25,1) infinite alternate;
  will-change:transform,background-position;
}
.hero-photo::before,
.hero-photo::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}

/* Very soft atmospheric light drifting across the sky */
.hero-photo::before{
  background:
    radial-gradient(ellipse 42% 24% at 72% 25%,rgba(255,204,111,.12),transparent 68%),
    radial-gradient(ellipse 34% 20% at 25% 34%,rgba(255,236,180,.055),transparent 72%);
  mix-blend-mode:screen;
  opacity:.62;
  animation:yycHeroAtmosphere 18s ease-in-out infinite alternate;
}

/* Water-only shimmer/flow near the lower landscape.
   Kept extremely subtle so it reads as moving water, not an overlay. */
.hero-photo::after{
  inset:52% -12% -8%;
  background:
    repeating-linear-gradient(
      168deg,
      transparent 0 18px,
      rgba(235,211,163,.025) 19px 21px,
      transparent 22px 39px
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(214,191,142,.055) 46%,
      rgba(240,221,177,.09) 66%,
      transparent 100%
    );
  background-size:100% 100%,100% 100%;
  mix-blend-mode:screen;
  opacity:.48;
  transform:translate3d(0,0,0) skewX(-2deg);
  animation:yycRiverFlow 11s linear infinite;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 25%,#000 78%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 25%,#000 78%,transparent 100%);
}

/* Slight depth drift on the culture side without moving the actual panel */
.hero-grid-line{
  animation:yycHeroLineBreath 9s ease-in-out infinite;
}
.hero-grid-line.line-b{animation-delay:-4.5s}

@media(max-width:760px){
  .hero-photo{
    animation-duration:32s;
  }
  .hero-photo::after{
    inset:58% -18% -5%;
    opacity:.34;
  }
  .hero-photo::before{
    opacity:.42;
  }
}
@media(prefers-reduced-motion:reduce){
  .hero-photo,
  .hero-photo::before,
  .hero-photo::after,
  .hero-grid-line{
    animation:none!important;
  }
}

@keyframes yycHeroCinematic{
  0%{
    transform:scale(1.035) translate3d(-.35%,0,0);
  }
  50%{
    transform:scale(1.06) translate3d(.35%,-.25%,0);
  }
  100%{
    transform:scale(1.08) translate3d(-.1%,-.45%,0);
  }
}
@keyframes yycHeroAtmosphere{
  0%{transform:translate3d(-3%,0,0) scale(1);opacity:.40}
  50%{transform:translate3d(2%,1%,0) scale(1.05);opacity:.72}
  100%{transform:translate3d(5%,-1%,0) scale(1.08);opacity:.48}
}
@keyframes yycRiverFlow{
  0%{background-position:0 0,0 0;transform:translate3d(-1.5%,0,0) skewX(-2deg)}
  50%{background-position:5% 13px,0 2px;transform:translate3d(1%,1px,0) skewX(-2deg)}
  100%{background-position:10% 26px,0 0;transform:translate3d(4%,0,0) skewX(-2deg)}
}
@keyframes yycHeroLineBreath{
  0%,100%{opacity:.12;transform:scaleY(1)}
  50%{opacity:.28;transform:scaleY(1.02)}
}


/* =========================================================
   YYC HERO RECREATION — cinematic landscape grade
   Uses the existing hero photograph, but recreates the
   premium photographic treatment in layers so no source
   asset is lost.
   ========================================================= */

/* Natural dark-gold cinematic grade */
.hero-photo{
  background-position:50% 46%;
  filter:saturate(1.06) contrast(1.075) brightness(.93);
}

/* Layered photographic atmosphere:
   warm sky glow + cool mountain separation + foreground depth */
.hero-photo::before{
  background:
    radial-gradient(ellipse 48% 30% at 72% 18%,rgba(255,205,119,.15),transparent 70%),
    radial-gradient(ellipse 36% 22% at 28% 28%,rgba(255,229,181,.065),transparent 74%),
    linear-gradient(180deg,rgba(7,12,16,.02) 0%,rgba(7,12,16,.04) 42%,rgba(3,7,10,.22) 100%);
  mix-blend-mode:screen;
  opacity:.68;
  animation:yycHeroRecreatedLight 20s ease-in-out infinite alternate;
}

/* Soft mist separation across the distant hills */
.hero-photo::after{
  inset:28% -8% 18%;
  background:
    radial-gradient(ellipse 58% 26% at 50% 52%,rgba(225,213,185,.055),transparent 72%),
    linear-gradient(180deg,transparent 0%,rgba(206,194,168,.035) 52%,transparent 100%);
  mix-blend-mode:screen;
  opacity:.72;
  filter:blur(3px);
  transform:translate3d(0,0,0) scale(1.04);
  animation:yycHeroMistDrift 16s ease-in-out infinite alternate;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 22%,#000 78%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 22%,#000 78%,transparent 100%);
}

/* Keep the center visually clean for the YYC identity */
.hero-main{
  position:relative;
  z-index:2;
}
.hero-main::before{
  content:"";
  position:absolute;
  inset:8% -10% 4%;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(2,6,9,.16),transparent 68%);
  filter:blur(16px);
}

/* Extra edge falloff gives the landscape more depth without
   making the image look artificially edited. */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(2,5,7,.28),transparent 25%,transparent 75%,rgba(2,5,7,.20)),
    linear-gradient(180deg,rgba(2,5,7,.10),transparent 24%,transparent 72%,rgba(2,5,7,.32));
}

/* Slightly wider, slower camera movement for the recreated composition */
@keyframes yycHeroCinematic{
  0%{transform:scale(1.045) translate3d(-.30%,0,0)}
  50%{transform:scale(1.065) translate3d(.28%,-.18%,0)}
  100%{transform:scale(1.09) translate3d(-.08%,-.38%,0)}
}
@keyframes yycHeroRecreatedLight{
  0%{transform:translate3d(-2%,0,0) scale(1);opacity:.48}
  50%{transform:translate3d(1.5%,.5%,0) scale(1.045);opacity:.72}
  100%{transform:translate3d(4%,-.5%,0) scale(1.075);opacity:.54}
}
@keyframes yycHeroMistDrift{
  0%{transform:translate3d(-1.5%,0,0) scale(1.04);opacity:.38}
  100%{transform:translate3d(2%,1%,0) scale(1.075);opacity:.64}
}

@media(max-width:760px){
  .hero-photo{
    background-position:50% 48%;
    filter:saturate(1.04) contrast(1.055) brightness(.95);
  }
  .hero-photo::before{opacity:.48}
  .hero-photo::after{inset:34% -15% 20%;opacity:.48}
  .hero-main::before{inset:4% -18% 0}
}
@media(prefers-reduced-motion:reduce){
  .hero-photo::before,
  .hero-photo::after{
    animation:none!important;
  }
}


/* =========================================================
   YYC HERO BACKGROUND VISIBILITY — richer landscape, less crush
   ========================================================= */

/* Let the actual Tulunad landscape read clearly instead of
   getting buried under the existing dark treatment. */
.hero-photo{
  filter:saturate(1.08) contrast(1.045) brightness(.99);
  background-position:50% 44%;
}

/* Softer side falloff: keeps text readable while revealing
   the hills/sky and foreground of the photograph. */
.hero-vignette{
  background:
    linear-gradient(90deg,
      rgba(2,4,7,.48) 0%,
      rgba(3,5,8,.24) 32%,
      rgba(3,5,8,.08) 60%,
      rgba(3,5,8,.46) 100%),
    linear-gradient(180deg,
      rgba(2,4,7,.34) 0%,
      rgba(2,4,7,.02) 30%,
      rgba(2,5,8,.05) 67%,
      rgba(2,5,8,.58) 100%);
}

/* A restrained warm daylight lift across the upper landscape. */
.hero-glow{
  background:
    radial-gradient(ellipse 42% 32% at 72% 18%,rgba(255,205,119,.18),transparent 68%),
    radial-gradient(ellipse 35% 25% at 30% 26%,rgba(255,229,181,.08),transparent 72%),
    radial-gradient(circle at 50% 48%,rgba(245,195,92,.045),transparent 34%);
}

/* Make the fixed navigation feel integrated with the hero,
   rather than like a separate black bar. */
.topbar{
  background:linear-gradient(180deg,rgba(2,5,8,.82),rgba(4,8,11,.66));
  border-bottom-color:rgba(239,196,100,.14);
}
body.yyc-premium-scrolled .topbar{
  background:rgba(5,9,12,.84);
}

/* Add a very subtle atmospheric horizon bloom. */
.hero::before{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  bottom:7%;
  height:30%;
  z-index:-2;
  pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(220,200,160,.055),transparent 68%);
  filter:blur(18px);
  opacity:.8;
}

@media(max-width:760px){
  .hero-photo{
    filter:saturate(1.06) contrast(1.035) brightness(1.01);
    background-position:50% 46%;
  }
  .hero-vignette{
    background:
      linear-gradient(180deg,
        rgba(2,4,7,.28) 0%,
        rgba(2,4,7,.04) 28%,
        rgba(2,5,8,.12) 64%,
        rgba(2,5,8,.64) 100%);
  }
  .hero-glow{opacity:.72}
}


/* =========================================================
   YYC PERFORMANCE PASS — smooth 60fps feel
   ========================================================= */

/* Avoid expensive full-page compositing layers. */
body::before{
  opacity:.022;
  mix-blend-mode:normal;
}
.topbar{
  backdrop-filter:blur(9px) saturate(112%);
  -webkit-backdrop-filter:blur(9px) saturate(112%);
}

/* One calm hero camera move; atmospheric layers stay static. */
.hero-photo{
  animation-duration:42s;
  will-change:transform;
}
.hero-photo::before,
.hero-photo::after{
  animation:none!important;
  will-change:auto;
}
.hero-grid-line{
  animation:none!important;
}

/* Remove unnecessary GPU promotion from every card/image. */
.glimpse-card,
.glimpse-feature,
.leader-card,
.gallery-card,
.event-card,
.update-card{
  will-change:auto;
}
.glimpse-card img,
.glimpse-feature img,
.leader-photo img,
.gallery-card img{
  will-change:auto;
}

/* Keep hover polish, but don't animate expensive image filters. */
.glimpse-card img,
.glimpse-feature img,
.leader-photo img,
.gallery-card img{
  transition:transform .55s cubic-bezier(.16,1,.3,1);
}
.glimpse-card:hover img,
.glimpse-feature:hover img,
.leader-card:hover img,
.gallery-card:hover img{
  filter:none;
}

/* Cheaper glass surfaces. */
.culture-panel,
.join-card,
.gallery-card::after,
.yyc-premium-backtop{
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

/* Scroll progress should update without a visible transition. */
.yyc-premium-progress span{
  transition:none;
}

/* Reduce continuous glow animation on the main CTA. */
.hero-actions .btn:first-child{
  animation:none!important;
}

/* Disable decorative motion on low-power / touch devices. */
@media (hover:none), (max-width:760px){
  .hero-photo{
    animation-duration:55s;
  }
  .hero-photo::before,
  .hero-photo::after{
    animation:none!important;
  }
  .culture-panel img:hover{
    transform:none;
    filter:none;
  }
}

/* Users who prefer reduced motion get a fully static composition. */
@media(prefers-reduced-motion:reduce){
  .hero-photo{animation:none!important}
}

/* =========================================================
   YYC LUXURY REFINEMENT — clean premium finish
   Visual-only: no auth, data, portal or content behavior changes.
   ========================================================= */

/* Quiet gold hairlines and stronger editorial hierarchy. */
.section-head h2{
  text-shadow:0 10px 30px rgba(0,0,0,.22);
}
.section-kicker{
  color:rgba(245,217,155,.86)!important;
  text-shadow:0 0 18px rgba(231,191,112,.08);
}

/* Refined navigation: less heavy, more floating. */
.topbar{
  box-shadow:0 10px 32px rgba(0,0,0,.16);
}
.desktop-nav .nav-link,
.desktop-nav .nav-admin{
  letter-spacing:.035em;
}
.desktop-nav .nav-link.active,
.desktop-nav .nav-admin.active{
  color:#f1d39a;
}

/* Luxury card edge: depth comes from border/light, not large blur. */
.glimpse-card,
.glimpse-feature,
.leader-card,
.gallery-card,
.event-card,
.update-card,
.join-card{
  border-color:rgba(231,191,112,.13);
  box-shadow:0 18px 48px rgba(0,0,0,.16);
}
.glimpse-card:hover,
.glimpse-feature:hover,
.leader-card:hover,
.gallery-card:hover,
.event-card:not(.event-skeleton):hover,
.update-card:hover{
  border-color:rgba(231,191,112,.32);
  box-shadow:0 22px 52px rgba(0,0,0,.22),0 0 0 1px rgba(231,191,112,.035) inset;
}

/* Premium buttons: crisp outline + restrained highlight. */
.hero-actions .btn,
.join-card .btn,
.form-actions .btn{
  border-radius:999px;
  letter-spacing:.07em;
  font-weight:700;
}
.hero-actions .btn.gold,
.join-card .btn.gold{
  box-shadow:0 10px 28px rgba(0,0,0,.20),0 0 0 1px rgba(255,239,195,.08) inset;
}
.hero-actions .btn.gold:hover,
.join-card .btn.gold:hover{
  box-shadow:0 16px 36px rgba(0,0,0,.24),0 0 26px rgba(231,191,112,.10);
}

/* Hero identity gets a subtle luxury halo without changing the photo. */
.hero-logo-stage{
  filter:drop-shadow(0 18px 36px rgba(0,0,0,.28));
}
.hero-logo-ring{
  box-shadow:0 0 28px rgba(231,191,112,.10),inset 0 0 18px rgba(255,239,195,.05);
}
.brand-lockup h1{
  text-shadow:0 8px 34px rgba(0,0,0,.28);
}

/* Keep the Culture section clean — no rectangular glass panel. */
.culture-panel{
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}

/* Footer gets the same restrained premium language. */
.footer{
  border-top-color:rgba(231,191,112,.12)!important;
}
.footer-brand strong{
  letter-spacing:.08em;
}
.footer-legal a:hover{
  color:#f0d39a!important;
}

@media(max-width:760px){
  .topbar{box-shadow:0 8px 24px rgba(0,0,0,.14)}
  .hero-logo-stage{filter:drop-shadow(0 14px 28px rgba(0,0,0,.24))}
  .hero-actions .btn,
  .join-card .btn,
  .form-actions .btn{letter-spacing:.045em}
}

@media(prefers-reduced-motion:reduce){
  .hero-actions .btn,
  .join-card .btn{transition:none!important}
}


/* =========================================================
   YYC ADMIN ANALYTICS — live overview refinement
   ========================================================= */
.yyc-admin-analytics-grid{
  display:grid;
  grid-template-columns:1.25fr .9fr;
  gap:14px;
  margin-top:16px;
}
.yyc-analytics-panel{
  border:1px solid rgba(231,191,112,.13);
  border-radius:20px;
  padding:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  box-shadow:0 18px 48px rgba(0,0,0,.14);
}
.yyc-analytics-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.yyc-analytics-head h3{
  margin:5px 0 4px;
  color:#eee5d1;
  font:600 22px/1.05 "Cormorant Garamond",serif;
}
.yyc-analytics-head p{
  margin:0;
  color:#7d8784;
  font-size:10px;
  line-height:1.55;
}
.yyc-analytics-chip{
  white-space:nowrap;
  border:1px solid rgba(231,191,112,.22);
  border-radius:999px;
  padding:7px 10px;
  color:#e9cf97;
  font:800 8px/1 Inter,sans-serif;
  letter-spacing:.1em;
}
.yyc-analytics-bars{margin-top:22px;display:grid;gap:15px}
.yyc-analytics-row{display:grid;gap:7px}
.yyc-analytics-label{display:flex;justify-content:space-between;gap:10px;color:#aeb5b2;font-size:10px}
.yyc-analytics-label b{color:#eee5d1}
.yyc-analytics-track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.055);
}
.yyc-analytics-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#b89050,#ead39e);
  box-shadow:0 0 18px rgba(231,191,112,.16);
}
.yyc-analytics-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:22px;
}
.yyc-analytics-metrics div{
  padding:14px 10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  text-align:center;
  background:rgba(255,255,255,.018);
}
.yyc-analytics-metrics b{display:block;color:#eee5d1;font-size:21px}
.yyc-analytics-metrics span{display:block;margin-top:4px;color:#7d8784;font:700 7px/1 Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.yyc-analytics-note{
  margin-top:12px;
  padding:11px 12px;
  border-left:2px solid rgba(231,191,112,.5);
  color:#8e9794;
  font-size:9px;
  line-height:1.5;
}
.yyc-admin-quick-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.yyc-admin-quick{
  appearance:none;
  border:1px solid rgba(231,191,112,.11);
  border-radius:16px;
  padding:15px;
  text-align:left;
  color:#eee5d1;
  background:rgba(255,255,255,.018);
  cursor:pointer;
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}
.yyc-admin-quick:hover{
  transform:translateY(-2px);
  border-color:rgba(231,191,112,.3);
  background:rgba(231,191,112,.045);
}
.yyc-admin-quick span{display:block;color:#e4c98f;font-size:17px;margin-bottom:9px}
.yyc-admin-quick b{display:block;font:700 10px/1 Inter,sans-serif;letter-spacing:.04em}
.yyc-admin-quick small{display:block;margin-top:6px;color:#7d8784;font-size:8px;line-height:1.4}
@media(max-width:800px){
  .yyc-admin-analytics-grid{grid-template-columns:1fr}
  .yyc-admin-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .yyc-analytics-panel{padding:15px}
  .yyc-analytics-head{display:block}
  .yyc-analytics-chip{display:inline-block;margin-top:10px}
  .yyc-admin-quick-grid{grid-template-columns:1fr}
}


/* =========================================================
   YYC ADMIN LIVE SYNC — automatic backend refresh
   ========================================================= */
.yyc-admin-syncbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:300px;
  margin-top:4px;
}
.yyc-admin-syncbar > span:not(.yyc-admin-sync-dot){
  color:#7f8a86;
  font:700 8px/1 Inter,sans-serif;
  letter-spacing:.09em;
  white-space:nowrap;
}
.yyc-admin-sync-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d6b76b;
  box-shadow:0 0 12px rgba(231,191,112,.45);
  flex:0 0 auto;
}
.yyc-admin-sync-dot.offline{
  background:#8b6f57;
  box-shadow:none;
}
.yyc-admin-syncbar .mini-btn{
  white-space:nowrap;
  padding:8px 11px;
  font-size:8px;
}
@media(max-width:760px){
  .yyc-admin-syncbar{
    width:100%;
    min-width:0;
    justify-content:flex-start;
    flex-wrap:wrap;
    margin-top:14px;
  }
}


/* =========================================================
   YYC CINEMATIC EXPERIENCE — FINAL SCENE POLISH
   Controlled motion only; no heavy effects or cursor-following.
   ========================================================= */

/* 1 — Hero behaves like an opening title sequence. */
@media(min-width:981px){
  .hero-main,
  .culture-panel{
    will-change:opacity,transform;
  }
  .hero-main{
    animation:
      yycHeroContentIn 1.15s cubic-bezier(.16,1,.3,1) both,
      yycHeroBreath 8s ease-in-out 2.8s infinite;
  }
  .culture-panel{
    animation:
      yycCultureIn 1.1s cubic-bezier(.16,1,.3,1) .35s both,
      yycCultureBreath 9s ease-in-out 3s infinite;
  }
}
@keyframes yycHeroBreath{
  0%,100%{filter:brightness(1)}
  50%{filter:brightness(1.018)}
}
@keyframes yycCultureBreath{
  0%,100%{filter:brightness(1)}
  50%{filter:brightness(1.012)}
}

/* 2 — A restrained atmosphere layer makes the hero read like a scene,
      while remaining extremely cheap to render. */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-2;
  background:
    radial-gradient(circle at 52% 44%,rgba(245,213,143,.035),transparent 22%),
    linear-gradient(180deg,rgba(0,0,0,.04),transparent 28%,rgba(0,0,0,.12));
  opacity:.75;
}

/* 3 — Section entry gets a soft light sweep in addition to the existing rise. */
.section.yyc-section-navigate{
  position:relative;
  overflow:hidden;
}
.section.yyc-section-navigate::after{
  animation:yycSceneLightPass 1.05s cubic-bezier(.16,1,.3,1) both;
}
@keyframes yycSceneLightPass{
  0%{background-position:-120% 0,0 0;opacity:.20}
  45%{opacity:.78}
  100%{background-position:160% 0,0 0;opacity:1}
}

/* 4 — Section kicker appears like a film chapter marker. */
.section-kicker{
  transition:letter-spacing .7s cubic-bezier(.16,1,.3,1),color .35s ease;
}
.section-head.reveal.visible ~ *{}
.section.yyc-section-navigate .section-kicker{
  animation:yycChapterKicker .65s cubic-bezier(.16,1,.3,1) both;
}
@keyframes yycChapterKicker{
  from{opacity:.15;letter-spacing:.34em;transform:translateY(5px)}
  to{opacity:1;letter-spacing:.25em;transform:none}
}

/* 5 — Editorial cards settle into focus rather than simply popping in. */
.glimpse-card,
.glimpse-feature,
.leader-card,
.event-card,
.update-card,
.gallery-card{
  transition:
    transform .55s cubic-bezier(.16,1,.3,1),
    box-shadow .55s ease,
    border-color .35s ease,
    filter .45s ease;
}
.glimpse-card:hover,
.glimpse-feature:hover,
.leader-card:hover,
.event-card:not(.event-skeleton):hover,
.update-card:hover,
.gallery-card:hover{
  filter:saturate(1.035);
}

/* 6 — Images breathe slightly while their cards stay still. */
.glimpse-card img,
.glimpse-feature img,
.leader-card img,
.event-card img,
.gallery-card img{
  transform-origin:center center;
}

/* 7 — CTA buttons get one soft highlight sweep on hover, not a constant animation. */
.hero-actions .btn,
.join-card .btn{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.hero-actions .btn::before,
.join-card .btn::before{
  content:"";
  position:absolute;
  top:-25%;
  bottom:-25%;
  left:-55%;
  width:20%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  opacity:0;
  pointer-events:none;
}
.hero-actions .btn:hover::before,
.join-card .btn:hover::before{
  opacity:1;
  animation:yycCtaSweep .78s cubic-bezier(.16,1,.3,1);
}
@keyframes yycCtaSweep{
  from{transform:translateX(0) skewX(-18deg)}
  to{transform:translateX(720%) skewX(-18deg)}
}

/* 8 — Final JOIN section gets a subtle cinematic focus at entry. */
.join-section.yyc-section-navigate .join-card{
  animation:yycJoinReveal .85s cubic-bezier(.16,1,.3,1) .08s both;
}
@keyframes yycJoinReveal{
  from{opacity:.12;transform:translateY(18px) scale(.985);filter:brightness(.94)}
  to{opacity:1;transform:none;filter:none}
}

/* 9 — Keep the system lightweight on low-data devices and reduced motion. */
@media(max-width:820px){
  .hero::after{opacity:.48}
  .hero-main,.culture-panel{animation-duration:.9s}
}
@media(prefers-reduced-motion:reduce){
  .hero-main,
  .culture-panel,
  .section.yyc-section-navigate::after,
  .section.yyc-section-navigate .section-kicker,
  .join-section.yyc-section-navigate .join-card{
    animation:none!important;
  }
  .hero-actions .btn:hover::before,
  .join-card .btn:hover::before{
    animation:none!important;
    opacity:0;
  }
}
@media(max-width:820px){
  .yyc-low-data .hero-main,
  .yyc-low-data .culture-panel{
    animation:none!important;
  }
  .yyc-low-data .section.yyc-section-navigate::after{
    animation:none!important;
  }
}
