/* BUILD 787: THE FRONT OFFICE IN MOTION.
   Marquis: "I want my site to feel like a front office ... I like all the motion on their pages."
   Everything here is opacity/transform/filter only (no layout), and every
   rule switches off under prefers-reduced-motion or <html data-motion="off">. */

/* Pages slide between each other (Chrome/Edge/Safari 18 cross-page transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fo-out .18s ease both; }
::view-transition-new(root) { animation: fo-in .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fo-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fo-in { from { opacity: 0; transform: translateY(10px); } }

/* The kicker over a page: a live front-office tag with a breathing dot. */
.fo-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: .22em; color: #8FB0FF; text-transform: uppercase; margin-bottom: 8px; }
.fo-dot { width: 8px; height: 8px; border-radius: 50%; background: #2F6BFF; box-shadow: 0 0 0 0 rgba(47,107,255,.6); animation: fo-breathe 2.4s ease-in-out infinite; }
@keyframes fo-breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(47,107,255,.55); } 50% { box-shadow: 0 0 0 7px rgba(47,107,255,0); } }

/* Headlines sweep in. */
.fo-type { background: linear-gradient(100deg, #FFF 0%, #FFF 40%, #C3D4FF 50%, #FFF 60%, #FFF 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; animation: fo-sheen 5.5s ease-in-out 0.4s infinite; }
.fo-type span { -webkit-text-fill-color: #FFD98A; }
.fo-type { -webkit-text-fill-color: transparent; }
@keyframes fo-sheen { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }

/* Cards lift and light up under the pointer, and press in when tapped. */
.panel, .tile, .game-card, .sch-door, .sch-press, .gn-card, .wb-panel, .sc-rail .card, .mv-story, .cr-row {
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease, background-color .22s ease; }
@media (hover: hover) {
  .tile:hover, .game-card:hover, .sch-door:hover, .sch-press:hover, .gn-card:hover, .mv-story:hover {
    transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(47,107,255,.55), 0 0 0 1px rgba(91,139,255,.35); }
  .panel:hover { box-shadow: 0 10px 30px -18px rgba(47,107,255,.5); }
  .cr-row:hover { background-color: rgba(47,107,255,.06); }
}
.btn, .sc-btn, .wb-btn, .chip, .gn-scbtn { transition: transform .12s ease, filter .15s ease, box-shadow .2s ease; }
.btn:active, .sc-btn:active, .wb-btn:active, .chip:active, .gn-scbtn:active { transform: scale(.96); }
@media (hover: hover) { .btn:hover, .sc-btn:hover, .wb-btn:hover { filter: brightness(1.12); box-shadow: 0 0 0 3px rgba(47,107,255,.18); } }

/* The left nav: the lit place has a gliding bar. */
.sc-p { position: relative; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.sc-p.on::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: #2F6BFF;
  animation: fo-bar .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fo-bar { from { transform: scaleY(0); } }
@media (hover: hover) { .sc-p:hover { transform: translateX(3px); } }

/* Anything marked live breathes. */
.live-dot, .is-live::before { animation: fo-live 1.6s ease-in-out infinite; }
@keyframes fo-live { 50% { opacity: .35; } }

/* Gold things catch the light now and then. */
.gold-sheen { position: relative; overflow: hidden; }
.gold-sheen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); animation: fo-glint 6s ease-in-out 1s infinite; pointer-events: none; }
@keyframes fo-glint { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Table rows arrive in order (motion.js arms .fo-rows). */
.fo-rows.fo-armed > tbody > tr { opacity: 0; transform: translateX(-8px); }
.fo-rows.fo-in > tbody > tr { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }

@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; }
  .fo-type { -webkit-text-fill-color: #FFF; background: none; }
}
html[data-motion="off"] *, html[data-motion="off"] ::view-transition-old(root), html[data-motion="off"] ::view-transition-new(root) { animation: none !important; transition: none !important; }
