/*
Theme Name: Taynton Crown
Description: Minimal launch page for Taynton Crown Cyber Security Advisory.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tayntoncrown
*/
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#02040b;color:#f5f7ff}main{min-height:100vh;min-height:100svh;display:grid;place-items:center}main img{display:block;width:auto;height:auto;max-width:100%;max-height:100vh;max-height:100svh;object-fit:contain}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.admin-bar main{min-height:calc(100svh - 32px)}body.admin-bar main img{max-height:calc(100svh - 32px)}@media(max-width:782px){body.admin-bar main{min-height:calc(100svh - 46px)}body.admin-bar main img{max-height:calc(100svh - 46px)}}

.stage{position:relative;width:min(100vw,150vh);width:min(100vw,150svh);margin:auto}.stage img{width:100%;height:auto;max-height:none;display:block}.reveal{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;visibility:hidden}.playing .reveal{visibility:visible;animation:tcFade .85s 3.35s both}.playing .draw{stroke-dasharray:1;stroke-dashoffset:1;animation:tcDraw .85s ease both}.playing .rim{animation:tcIn .6s .65s both}.playing .tower{animation-delay:1.05s;animation-duration:1s}.playing .w1{animation-delay:1.75s}.playing .w2{animation-delay:2s}.playing .w3{animation-delay:2.25s}.playing .rays{animation:tcLight .7s 2.75s both}.playing .flash{animation:tcFlash .7s 3s both}@keyframes tcDraw{to{stroke-dashoffset:0}}@keyframes tcIn{from{opacity:0}to{opacity:1}}@keyframes tcLight{from{opacity:0}to{opacity:.65}}@keyframes tcFlash{0%,100%{opacity:0}50%{opacity:1}}@keyframes tcFade{from{opacity:1}to{opacity:0}}body.admin-bar .stage{width:min(100vw,calc((100svh - 32px)*1.5))} @media(max-width:782px){body.admin-bar .stage{width:min(100vw,calc((100svh - 46px)*1.5))}} 
.playing .reveal{animation:tcFade 1.35s 4.05s both;animation-timing-function:cubic-bezier(.45,0,.25,1)}
.playing .draw{animation-duration:1.45s;animation-timing-function:cubic-bezier(.45,.05,.25,1);stroke-linecap:round;stroke-linejoin:round}
.playing .rim{animation:tcIn 1.25s .45s both}.playing .tower{animation-delay:.85s;animation-duration:1.65s}.playing .w1{animation-delay:1.65s}.playing .w2{animation-delay:1.95s}.playing .w3{animation-delay:2.25s}.playing .rays{animation:tcLight 1.4s 2.55s both}.playing .flash{animation:none}.cinematic-flare{opacity:0;pointer-events:none}.playing .cinematic-flare{animation:cinema 2.15s 3.55s both;transform-origin:768px 418px}.playing .flare-streak{animation:streak 2.15s 3.55s both;transform-origin:768px 418px}@keyframes cinema{0%{opacity:0;transform:scale(.45)} 26%{opacity:.95;transform:scale(1)} 40%{opacity:.85;transform:scale(1.12)} 100%{opacity:0;transform:scale(1.45)}}@keyframes streak{0%{transform:scaleX(.1)}45%{transform:scaleX(1)}100%{transform:scaleX(1.3)}}
.flare-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

/* Synchronized construction, followed by the existing cinematic reveal. */
.playing .draw,.playing .tower,.playing .w1,.playing .w2,.playing .w3{animation:tcDraw 4s cubic-bezier(.35,.05,.35,1) 0s both}
.playing .rim{animation:tcIn 4s cubic-bezier(.35,.05,.35,1) 0s both}
.playing .rays{animation:tcLight 4s ease-in-out 0s both}
.playing .reveal{animation:tcFade 1.35s cubic-bezier(.45,0,.25,1) 4.65s both}
.playing .cinematic-flare{animation:cinema 2.15s 4.1s both}
.playing .flare-streak{animation:streak 2.15s 4.1s both}

@media(prefers-reduced-motion:reduce){.stage.playing .reveal{visibility:hidden;animation:none}.stage.playing .cinematic-flare{animation:none;opacity:0}}
