/* Cinematic entrance and hover motion. Opacity and transform only, so it stays smooth on phones. Off when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference){
  @keyframes deeCinRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
  @keyframes deeCinFade{from{opacity:0}to{opacity:1}}
  @keyframes deeCinSweep{from{transform:translateX(-120%)}to{transform:translateX(220%)}}
  .hero-copy > *, .hero h1, .hero .lead, .hero .actions{animation:deeCinRise .9s cubic-bezier(.2,.8,.2,1) both}
  .hero .lead{animation-delay:.12s}
  .hero .actions{animation-delay:.24s}
  .cards > *, .section-head + .cards > *, .blog-grid > *, .impact-counter-grid > *{animation:deeCinRise .7s cubic-bezier(.2,.8,.2,1) both}
  .cards > *:nth-child(2), .blog-grid > *:nth-child(2), .impact-counter-grid > *:nth-child(2){animation-delay:.08s}
  .cards > *:nth-child(3), .blog-grid > *:nth-child(3), .impact-counter-grid > *:nth-child(3){animation-delay:.16s}
  .cards > *:nth-child(4), .blog-grid > *:nth-child(4), .impact-counter-grid > *:nth-child(4){animation-delay:.24s}
  .section-head{animation:deeCinFade .8s ease both}
  .kicker, .eyebrow{position:relative;overflow:hidden}
  .kicker::after, .eyebrow::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transform:translateX(-120%);animation:deeCinSweep 2.4s ease .6s 1 both;pointer-events:none}
  #tab-home .ah-hero-card, #tab-home .ah-stat, #tab-home .ah-qa button, #tab-home .ah-strip .ah-tile{animation:deeCinRise .65s cubic-bezier(.2,.8,.2,1) both}
  #tab-home .ah-stat.d2{animation-delay:.08s}
  #tab-home .ah-stat.d3{animation-delay:.16s}
  #tab-home .ah-qa button{transition:transform .25s ease}
  #tab-home .ah-qa button:active{transform:scale(.97)}
}

/* Extras: split headline, glow, gold line, scroll reveal */
@media (prefers-reduced-motion: no-preference){
  .cin-split .cin-ch{display:inline-block;opacity:0;transform-origin:50% 100%;animation:deeCinChar .6s cubic-bezier(.2,.8,.2,1) both}
  @keyframes deeCinChar{from{opacity:0;transform:translateY(18px) rotateX(-40deg)}to{opacity:1;transform:none}}
  .hero{position:relative}
  .hero::before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(216,180,90,.22),transparent 70%);top:-120px;right:-100px;pointer-events:none;animation:deeCinGlow 5s ease-in-out infinite;z-index:0}
  @keyframes deeCinGlow{0%,100%{opacity:.35}50%{opacity:.7}}
  .section-head h2{position:relative}
  .section-head h2::after{content:"";display:block;height:2px;width:100%;background:#d8b45a;margin-top:10px;transform:scaleX(0);transform-origin:left;border-radius:2px}
  .section-head.cin-in h2::after{animation:deeCinLine .9s cubic-bezier(.2,.8,.2,1) .2s both}
  @keyframes deeCinLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}
  .cin-pre{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
  .cin-pre.cin-in{opacity:1;transform:none}
}

/* Hero headline: soft focus-in plus a light sheen. No letter splitting, so the heading always stays visible. */
@media (prefers-reduced-motion: no-preference){
  @keyframes deeCinBlur{from{filter:blur(10px);opacity:0}to{filter:blur(0);opacity:1}}
  @keyframes deeCinSheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
  .hero h1{animation:deeCinRise .9s cubic-bezier(.2,.8,.2,1) both,deeCinBlur 1.1s ease both}
  .hero h1{position:relative}
  .hero h1::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;background:linear-gradient(100deg,transparent,rgba(255,240,190,.38),transparent);transform:translateX(-120%);animation:deeCinSheen 1.6s cubic-bezier(.4,0,.2,1) .7s 1 both;pointer-events:none;mix-blend-mode:overlay}
}

/* Stops the hero glow from pushing past the right edge on phones. Clipping only, no layout change. */
.hero{overflow-x:clip}

/* Artist portal: cards glide in as they reach the screen, tabs ease in, and cards lift slightly on hover. */
@media (prefers-reduced-motion: no-preference){
  .p-panel.cin-tab{animation:deeCinRise .6s cubic-bezier(.2,.8,.2,1) both}
  .p-panel .p-card, .p-panel .ap-card, .sum-panel .card{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
  .p-panel .p-card:hover, .p-panel .ap-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.28)}
  .p-panel .ap-page-title{animation:deeCinFade .7s ease both}
}

/* More cinematic touches: hover lift that does not fight the entrance animation, and a parallax glow on the hero. */
@media (prefers-reduced-motion: no-preference){
  .cards > *, .blog-grid > *, .impact-counter-grid > *{transition:translate .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
  .cards > *:hover, .blog-grid > *:hover, .impact-counter-grid > *:hover{translate:0 -5px;box-shadow:0 18px 36px rgba(0,0,0,.28)}
  .hero::before{translate:0 calc(var(--cin-y,0) * -0.35px)}
}
