/**
 * PROPRIETARY SOFTWARE NOTICE
 *
 * Copyright (c) Pro Star CMS Development. All rights reserved.
 *
 * This website, its source code, database structure, administrative system,
 * content management system, visual editor, assistant, and all related
 * components, documentation, and methods (the "Software") were designed and
 * developed by Pro Star CMS Development and are its exclusive proprietary and
 * confidential property. The Software is protected by United States copyright
 * law, trade secret law, and other applicable intellectual property laws.
 *
 * No license or other right is granted by access to, possession of, or display
 * of this source code, whether express or implied, by estoppel or otherwise.
 * Except as permitted in a written agreement signed by Pro Star CMS Development,
 * no person may copy, modify, adapt, translate, distribute, publish, sublicense,
 * disclose, decompile, reverse engineer, extract, reuse, or reproduce any portion
 * of the Software, or create derivative works from it, in whole or in part.
 *
 * Review of this code is limited to personnel authorized in writing, and only as
 * necessary to perform approved hosting, maintenance, security, or support
 * services. Any unauthorized use or disclosure may result in civil liability and
 * criminal prosecution to the fullest extent permitted by law.
 *
 * This notice must not be removed, altered, or obscured.
 *
 * For questions, requests for authorization, or technical information, contact
 * Chad Sanders directly:
 *
 * Pro Star Web Design
 * Chad Sanders
 * Phone: 256-550-1988
 */

/* White Rabbit Online - shared cinematic layer. Loaded by every page; each page opts in with <html data-cine="page|bridge|lite">
   and one <div class="cine-fx"> right after <body>. Pure CSS except the cursor light in cinema.js. No external resources.
   Profiles: page = full treatment (legal pages, 404). bridge = the LCARS home (grain, vignette, cursor light; the frame stays as designed).
   lite = the crew login (grain and vignette only, dark theme only). Everything animated stops for prefers-reduced-motion. */

.cine-fx{position:fixed;inset:0;z-index:80;pointer-events:none;overflow:hidden;contain:strict}
.cine-fx i{position:absolute;display:block}
body.embed .cine-fx{display:none!important}

/* lens vignette */
.cf-vig{inset:0;background:radial-gradient(ellipse 125% 105% at 50% 50%,transparent 55%,rgba(0,0,0,.5) 100%)}
/* film grain: a small noise tile, jittered in steps so it reads as film and costs almost nothing */
.cf-grain{left:-60px;top:-60px;right:-60px;bottom:-60px;opacity:.075;animation:cfgrain .8s steps(1) infinite;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
@keyframes cfgrain{0%{transform:translate(0,0)}20%{transform:translate(-31px,17px)}40%{transform:translate(22px,-41px)}60%{transform:translate(-14px,-23px)}80%{transform:translate(38px,29px)}100%{transform:translate(0,0)}}
/* cursor light: a warm pool that follows the pointer (mouse only, set up by cinema.js) */
.cf-spot{left:0;top:0;width:62vmax;height:62vmax;margin:-31vmax 0 0 -31vmax;opacity:0;transition:opacity .6s;mix-blend-mode:screen;
  background:radial-gradient(circle,rgba(255,170,70,.11),rgba(255,140,40,.04) 38%,transparent 62%);transform:translate3d(var(--mx,50vw),var(--my,35vh),0);will-change:transform}
.cine-fx.on .cf-spot{opacity:1}
/* letterbox bars that slide in like the start of a feature */
.cf-top,.cf-bot{left:0;right:0;height:var(--bar,0);background:#000;display:none}
.cf-top{top:0;transform-origin:top;animation:cfbar 1.5s cubic-bezier(.2,.75,.2,1) .2s both}
.cf-bot{bottom:0;transform-origin:bottom;animation:cfbar 1.5s cubic-bezier(.2,.75,.2,1) .2s both}
@keyframes cfbar{from{transform:scaleY(6)}to{transform:scaleY(1)}}
/* opening shot: out of black, with one slow warm light leak sweeping across */
.cf-open{inset:0;background:#000;animation:cfopen 1.6s cubic-bezier(.3,.6,.2,1) both}
@keyframes cfopen{0%{opacity:1;visibility:visible}70%{opacity:.12}100%{opacity:0;visibility:hidden}}
.cf-leak{top:0;bottom:0;left:-60%;width:60%;background:linear-gradient(100deg,transparent,rgba(255,170,80,.20) 45%,rgba(255,210,150,.26) 52%,transparent);filter:blur(10px);mix-blend-mode:screen;animation:cfleak 2.4s cubic-bezier(.3,.5,.2,1) .35s both}
@keyframes cfleak{from{transform:translateX(0);opacity:0}15%{opacity:1}to{transform:translateX(330%);opacity:0}}

/* ---------- profiles ---------- */
html[data-cine="bridge"] .cf-vig{background:radial-gradient(ellipse 130% 110% at 50% 50%,transparent 62%,rgba(0,0,0,.42) 100%)}
html[data-cine="bridge"] .cf-grain{opacity:.05}
html[data-cine="bridge"] .cf-leak{display:none}
html[data-cine="lite"] .cf-vig{background:radial-gradient(ellipse 130% 110% at 50% 50%,transparent 62%,rgba(0,0,0,.4) 100%)}
html[data-cine="lite"] .cf-grain{opacity:.045}
html[data-cine="lite"] .cf-spot,html[data-cine="lite"] .cf-leak{display:none}
html[data-cine="lite"][data-theme="light"] .cine-fx{display:none}
html[data-cine="page"]{--bar:clamp(14px,3.4vh,36px)}
html[data-cine="page"] .cf-top,html[data-cine="page"] .cf-bot{display:block}

/* ---------- full treatment for the text pages (privacy, terms, accessibility, 404) ---------- */
html[data-cine="page"]{background:#010208}
html[data-cine="page"] body{min-height:100vh;padding:var(--bar) 0;
  background:radial-gradient(1100px 640px at 80% -10%,rgba(255,153,0,.17),transparent 62%),radial-gradient(900px 620px at 6% 16%,rgba(95,110,255,.15),transparent 62%),radial-gradient(1500px 900px at 50% 125%,rgba(204,153,204,.12),transparent 62%),#010208;background-attachment:fixed}
/* drifting starfield behind everything */
html[data-cine="page"]::before{content:"";position:fixed;inset:-20% -5%;z-index:0;pointer-events:none;opacity:.85;animation:cfstars 240s linear infinite;
  background-image:radial-gradient(1.2px 1.2px at 12% 18%,#fff,transparent),radial-gradient(1px 1px at 34% 72%,#cfe2ff,transparent),radial-gradient(1.4px 1.4px at 58% 33%,#fff,transparent),radial-gradient(1px 1px at 81% 61%,#ffe3bd,transparent),radial-gradient(1px 1px at 92% 12%,#cfe2ff,transparent),radial-gradient(1.2px 1.2px at 47% 90%,#fff,transparent),radial-gradient(1px 1px at 5% 55%,#ffe3bd,transparent);
  background-size:520px 460px,380px 340px,610px 560px,430px 390px,700px 640px,350px 410px,470px 430px}
@keyframes cfstars{to{transform:translate3d(-260px,140px,0)}}
html[data-cine="page"] body>*:not(.cine-fx):not(.skip){position:relative;z-index:1}
html[data-cine="page"] .bar{padding-top:6px}
html[data-cine="page"] .bar i{box-shadow:0 0 18px rgba(255,153,0,.25)}
html[data-cine="page"] main{counter-reset:ch;max-width:860px;margin:clamp(14px,3.5vh,34px) auto;padding:clamp(22px,4.5vw,46px) clamp(18px,4.5vw,50px) clamp(26px,4vw,44px);
  background:linear-gradient(180deg,rgba(18,15,28,.74),rgba(8,8,16,.66));border:1px solid rgba(255,153,0,.26);border-radius:18px;
  box-shadow:0 34px 90px rgba(0,0,0,.65),0 0 60px rgba(255,153,0,.06),inset 0 1px 0 rgba(255,255,255,.07);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
html[data-cine="page"] .crumb{text-transform:uppercase;letter-spacing:.2em;font-size:12px;margin:0}
html[data-cine="page"] h1{margin:.35em 0 .1em;text-transform:uppercase;font-weight:300;letter-spacing:.16em;line-height:1.08;font-size:clamp(28px,6vw,52px);
  background:linear-gradient(180deg,#fff2d9 0%,#ffcc80 45%,#ff9900 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 22px rgba(255,153,0,.35));animation:cftitle 2s cubic-bezier(.2,.7,.2,1) .5s both}
@keyframes cftitle{from{opacity:0;letter-spacing:.5em;filter:blur(8px) drop-shadow(0 0 22px rgba(255,153,0,.35))}60%{opacity:1}to{opacity:1;letter-spacing:.16em;filter:blur(0) drop-shadow(0 0 22px rgba(255,153,0,.35))}}
html[data-cine="page"] h1::after{content:"";display:block;height:2px;margin-top:18px;background:linear-gradient(90deg,#ff9900,#ffcc99 38%,rgba(204,153,204,.5) 70%,transparent);transform-origin:left;animation:cfrule 1.6s cubic-bezier(.3,.7,.2,1) 1s both;-webkit-text-fill-color:initial}
@keyframes cfrule{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}
html[data-cine="page"] .upd{text-transform:uppercase;letter-spacing:.18em;font-size:12px;margin-top:14px}
html[data-cine="page"] h2{margin:1.9em 0 .35em;font-weight:500;letter-spacing:.06em;color:#ffcc99;display:flex;align-items:baseline;gap:.7em;counter-increment:ch}
html[data-cine="page"] h2::before{content:counter(ch,decimal-leading-zero);font-size:.62em;letter-spacing:.2em;color:#a58a6a;border:1px solid rgba(255,153,0,.35);border-radius:999px;padding:.12em .7em;flex:none}
html[data-cine="page"] p,html[data-cine="page"] li{color:#ffe2bd}
html[data-cine="page"] a{text-decoration-thickness:1px;text-underline-offset:3px;transition:color .25s,text-shadow .25s}
html[data-cine="page"] a:hover{color:#d9ecff;text-shadow:0 0 14px rgba(153,204,255,.6)}
html[data-cine="page"] footer{border-top:0;position:relative;text-transform:uppercase;letter-spacing:.16em;font-size:12px;padding:6px 18px 22px}
html[data-cine="page"] footer::before{content:"";display:block;width:min(420px,70%);height:1px;margin:0 auto 18px;background:linear-gradient(90deg,transparent,rgba(255,153,0,.6),transparent)}
/* sections rise into place as you scroll (browsers without scroll-driven animation simply show them) */
@supports (animation-timeline:view()){
  html[data-cine="page"] main>h2,html[data-cine="page"] main>p:not(.crumb):not(.upd),html[data-cine="page"] main>ul{animation:cfrise linear both;animation-timeline:view();animation-range:entry 0% entry 40%}
}
@keyframes cfrise{from{opacity:0;transform:translate3d(0,24px,0)}to{opacity:1;transform:none}}

/* 404: signal lost */
.cf404{margin:.2em 0 0;font-size:clamp(88px,22vw,190px);font-weight:200;line-height:.9;letter-spacing:.08em;color:#ffcc99;text-shadow:-3px 0 rgba(255,60,90,.55),3px 0 rgba(60,200,255,.5),0 0 40px rgba(255,153,0,.35);animation:cfglitch 5.5s steps(1) infinite}
@keyframes cfglitch{0%,92%,100%{transform:none;text-shadow:-3px 0 rgba(255,60,90,.55),3px 0 rgba(60,200,255,.5),0 0 40px rgba(255,153,0,.35)}93%{transform:translateX(-6px) skewX(-6deg);text-shadow:-8px 0 rgba(255,60,90,.7),8px 0 rgba(60,200,255,.7),0 0 40px rgba(255,153,0,.35)}95%{transform:translateX(5px);text-shadow:6px 0 rgba(255,60,90,.7),-6px 0 rgba(60,200,255,.7)}97%{transform:none}}
.cf404-line{position:relative;height:3px;margin:6px 0 18px;overflow:hidden;background:rgba(255,153,0,.12)}
.cf404-line::after{content:"";position:absolute;top:0;bottom:0;width:22%;background:linear-gradient(90deg,transparent,#ffcc99,transparent);animation:cfscan 2.6s ease-in-out infinite}
@keyframes cfscan{from{left:-25%}to{left:103%}}
.cf-btn{display:inline-block;margin-top:10px;padding:11px 26px;border-radius:999px;background:#ff9900;color:#140b00!important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;text-decoration:none!important;box-shadow:0 0 26px rgba(255,153,0,.35);transition:transform .25s,box-shadow .25s}
.cf-btn:hover{transform:translateY(-2px);box-shadow:0 0 40px rgba(255,153,0,.6);color:#140b00!important;text-shadow:none!important}

/* ---------- page-to-page: a quick cross-fade instead of a hard cut (Chrome and Safari; others just navigate) ---------- */
@view-transition{navigation:auto}
::view-transition-old(root){animation:cfvt-out .28s ease both}
::view-transition-new(root){animation:cfvt-in .5s ease both}
@keyframes cfvt-out{to{opacity:0}}
@keyframes cfvt-in{from{opacity:0}}

/* ---------- people who ask for less motion get a still, finished picture (?motion=1 in the address overrides it, for testing) ---------- */
@media (prefers-reduced-motion:reduce){
  html:not(.cine-force) .cf-open,html:not(.cine-force) .cf-leak,html:not(.cine-force) .cf-spot{display:none}
  html:not(.cine-force) .cf-grain,html:not(.cine-force) .cf-top,html:not(.cine-force) .cf-bot,html:not(.cine-force)[data-cine="page"]::before,html:not(.cine-force)[data-cine="page"] h1,html:not(.cine-force)[data-cine="page"] h1::after,html:not(.cine-force) .cf404,html:not(.cine-force) .cf404-line::after,html:not(.cine-force)[data-cine="page"] main>h2,html:not(.cine-force)[data-cine="page"] main>p,html:not(.cine-force)[data-cine="page"] main>ul{animation:none!important}
  html:not(.cine-force)[data-cine="page"] h1{filter:drop-shadow(0 0 22px rgba(255,153,0,.35))}
  @view-transition{navigation:none}
}
@media (max-width:560px){html[data-cine="page"] main{border-radius:12px}}
