/* ============================================================
   FEELING STANDARD — motion layer for sofritostudio.com (mock-up)
   Spec: ~/workspace/registers/motion-destination-standard-20261102.md
   One curve for everything: cubic-bezier(0.22, 1, 0.36, 1).
   Loops animate transform/opacity ONLY (G3).
   ============================================================ */
:root{ --fs-curve: cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- entrance choreography (Part 7 values) ---- */
@keyframes fs-blur-rise{ from{ opacity:0; transform:translateY(38px); filter:blur(10px);} to{ opacity:1; transform:translateY(0); filter:blur(0);} }
@keyframes fs-rise-18{ from{ opacity:0; transform:translateY(18px);} to{ opacity:1; transform:translateY(0);} }
@keyframes fs-fade{ from{ opacity:0;} to{ opacity:1;} }
.fs-enter{ opacity:0; }
.fs-enter.go-blur{ animation:fs-blur-rise .9s var(--fs-curve) both; }
.fs-enter.go-rise{ animation:fs-rise-18 1s var(--fs-curve) both; }
.fs-enter.go-fade{ animation:fs-fade .8s var(--fs-curve) both; }

/* ---- scroll-conducted reveals ---- */
.fs-reveal{ opacity:0; transform:translateY(24px); }
@supports (animation-timeline: view()){
  .fs-reveal{
    animation:fs-scroll-rise linear both;
    animation-timeline:view();
    animation-range:entry entry 65%;
  }
  @keyframes fs-scroll-rise{ from{ opacity:.3; transform:translateY(24px);} to{ opacity:1; transform:translateY(0);} }
}
/* JS fallback state (IntersectionObserver one-shot, identical end state) */
.fs-reveal.fs-in{ opacity:1; transform:translateY(0); transition:opacity .42s var(--fs-curve), transform .42s var(--fs-curve); }

/* ---- hero photo: breathing + depth (transform only) ---- */
#hero .fs-photo-frame{ overflow:hidden; }
#hero .fs-photo-frame img{ will-change:transform; }
.fs-breathe{ animation:fs-breath 18s ease-in-out infinite alternate; }
@keyframes fs-breath{ from{ transform:scale(1);} to{ transform:scale(1.04);} }
/* idle self-demonstration: a composed depth drift, performed unattended */
.fs-demo-drift{ animation:fs-drift 4.2s var(--fs-curve) both; }
@keyframes fs-drift{
  0%{ transform:translate(0,0) scale(1.01);} 30%{ transform:translate(-7px,4px) scale(1.02);}
  62%{ transform:translate(6px,-4px) scale(1.02);} 100%{ transform:translate(0,0) scale(1.01);}
}
@keyframes fs-cta-pulse{ 0%{ box-shadow:0 0 30px rgba(234,88,12,.3);} 50%{ box-shadow:0 0 52px rgba(234,88,12,.55);} 100%{ box-shadow:0 0 30px rgba(234,88,12,.3);} }
.fs-cta-pulse{ animation:fs-cta-pulse 1.6s var(--fs-curve) 1; }

/* ---- tactile responses ---- */
a[href="#apply"], #sticky-apply a{ transition:transform .32s var(--fs-curve), background-color .32s var(--fs-curve), box-shadow .32s var(--fs-curve); }
a[href="#apply"]:hover{ transform:translateY(-2px) scale(1.02); }
#demos .glass-panel{ transition:transform .38s var(--fs-curve), border-color .38s var(--fs-curve); }
#demos .glass-panel:hover{ transform:translateY(-4px); }
button.fq-answer{ transition:transform .3s var(--fs-curve), border-color .3s var(--fs-curve); }
button.fq-answer:hover{ transform:translateY(-1px) scale(1.005); }
.fq-screen.active{ animation:fs-rise-18 .38s var(--fs-curve) both; }
#faq details[open ] > div, #faq details[open ] > p{ animation:fs-rise-18 .38s var(--fs-curve) both; }

/* ---- pop-out apply card ---- */
.fs-scrim{ position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.66); backdrop-filter:blur(3px);
  opacity:0; pointer-events:none; transition:opacity .34s var(--fs-curve); }
.fs-scrim.open{ opacity:1; pointer-events:auto; }
.fs-card{ position:fixed; z-index:90; left:50%; top:50%; width:min(680px, calc(100vw - 32px));
  max-height:92dvh; overflow-y:auto; overscroll-behavior:contain;
  background:#0c0c0e; border:1px solid rgba(255,255,255,.12); border-radius:16px;
  padding:28px 28px 32px; box-shadow:0 30px 80px rgba(0,0,0,.6);
  opacity:0; pointer-events:none; transform:translate(-50%,-46%) scale(.97);
  transition:opacity .36s var(--fs-curve), transform .36s var(--fs-curve); }
.fs-card.open{ opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
.fs-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.fs-card-kicker{ font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#fb923c; margin-bottom:6px; }
.fs-card-title{ font-size:22px; font-weight:700; color:#fff; line-height:1.2; }
.fs-card-sub{ font-size:14px; color:#a1a1aa; margin-top:6px; line-height:1.5; }
.fs-close{ flex:none; width:40px; height:40px; border-radius:9999px; border:1px solid rgba(255,255,255,.16);
  background:transparent; color:#e4e4e7; font-size:18px; line-height:1; cursor:pointer;
  transition:transform .3s var(--fs-curve), background-color .3s var(--fs-curve); }
.fs-close:hover{ transform:scale(1.08); background:rgba(255,255,255,.06); }
body.fs-locked{ overflow:hidden; }

/* ---- focus-visible, designed in ---- */
.fs-card :focus-visible, a[href="#apply"]:focus-visible, .fs-close:focus-visible,
#demos a:focus-visible, button.fq-answer:focus-visible{
  outline:2px solid #fb923c; outline-offset:3px; border-radius:6px; }

/* ---- reduced motion: CSS layer forces final states ---- */
@media (prefers-reduced-motion: reduce){
  .fs-enter, .fs-reveal{ opacity:1 !important; transform:none !important; animation:none !important; }
  .fs-breathe, .fs-demo-drift, .fs-cta-pulse, .fq-screen.active{ animation:none !important; }
  .fs-card, .fs-scrim{ transition:none !important; }
  a[href="#apply"]:hover, #demos .glass-panel:hover, button.fq-answer:hover{ transform:none !important; }
}
