/* OPN-01 opening, previously on, eyecatch */
#opening { position: fixed; inset: 0; z-index: 9050; pointer-events: none; opacity: 0; transition: opacity .5s; background: #000; overflow: hidden; }
#opening.on { opacity: 1; pointer-events: auto; }
#opening.op-fade { opacity: 0; transition: opacity 1.1s; }
#opening .op-skip { position: absolute; top: 14px; right: 16px; z-index: 9; opacity: .35; } #opening .op-skip:hover { opacity: 1; }
#opening .op-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 7; }
#opening .op-flash.on { animation: opFlash .38s ease-out; }
@keyframes opFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
#opening .op-body { position: absolute; inset: 0; }

/* previously on */
#opening .op-pstills i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s, transform 7s linear; filter: saturate(.5) contrast(1.05) sepia(.15); }
#opening .op-pstills i.on { opacity: .85; transform: scale(1); }
#opening .op-ptag { position: absolute; left: 6vw; top: 9vh; color: #fff; text-shadow: 0 2px 12px #000; }
#opening .op-ptag small { letter-spacing: .55em; font-size: 12px; color: #ffcc80; display: block; }
#opening .op-ptag b { font: 400 clamp(30px, 4.5vw, 60px) "Bebas Neue", var(--head), sans-serif; letter-spacing: .06em; display: block; }
#opening .op-ptag span { opacity: .75; letter-spacing: .1em; }
#opening .op-pline { position: absolute; left: 0; right: 0; bottom: 10vh; text-align: center; color: #fff; font-size: clamp(16px, 1.8vw, 24px);
  padding: 14px 10vw; background: linear-gradient(transparent, rgba(0,0,0,.75)); text-shadow: 0 2px 8px #000; min-height: 1.4em; }

/* the OP */
#opening .op-bars::before, #opening .op-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 8vh; background: #000; z-index: 6; }
#opening .op-bars::before { top: 0; } #opening .op-bars::after { bottom: 0; }
#opening .op-stage { position: absolute; inset: 0; }
#opening .op-shot { position: absolute; inset: 0; overflow: hidden; transition: opacity .45s; }
#opening .op-shot.out { opacity: 0; }
#opening .op-face, #opening .op-pic { position: absolute; background: center / cover no-repeat; }
#opening .op-name { position: absolute; color: #fff; z-index: 2; text-shadow: 0 3px 14px rgba(0,0,0,.8); }
#opening .op-name b { display: block; font: 400 clamp(46px, 8vw, 120px) "Bebas Neue", var(--head), sans-serif; letter-spacing: .05em; line-height: .95; }
#opening .op-name small { display: block; letter-spacing: .3em; font-size: 13px; opacity: .85; margin-top: 6px; }
/* character: slanted colour band, the face cut on the diagonal */
#opening .op-char { background: #07090d; }
#opening .op-char .op-band { position: absolute; left: -10%; right: -10%; top: 38%; height: 30%; background: var(--opc); transform: skewY(-8deg); opacity: .85; }
#opening .op-char .op-face { right: 0; top: 0; bottom: 0; width: 58%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
#opening .op-sil { background: radial-gradient(circle at 60% 30%, #3a3f48 0 13%, transparent 14%), radial-gradient(ellipse at 60% 90%, #2b2f36 0 38%, transparent 39%) !important; }
#opening .op-char .op-name { left: 6vw; bottom: 18vh; }
/* plane */
#opening .op-plane { background: linear-gradient(180deg, #0b1a2b, #1f3a55 70%, #0b1a2b); }
#opening .op-plane .op-pic { inset: 10vh 0; background-size: contain; }
#opening .op-jet { display: grid; place-items: center; font-size: 26vh; color: rgba(255,255,255,.15); font-style: normal; }
#opening .op-pn { right: 6vw; bottom: 12vh; text-align: right; } #opening .op-plane .op-pn b { color: var(--opc); }
/* picture / text */
#opening .op-image .op-pic { inset: 0; }
#opening .op-cap { position: absolute; left: 0; right: 0; bottom: 12vh; text-align: center; color: #fff; font-size: 22px; letter-spacing: .3em; text-shadow: 0 2px 10px #000; }
#opening .op-text { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 0 8vw; }
#opening .op-text b { font: 400 clamp(36px, 6vw, 90px) "Bebas Neue", var(--head), sans-serif; letter-spacing: .08em; }
#opening .op-text small { letter-spacing: .4em; opacity: .7; margin-top: 8px; }
/* motions */
#opening .op-m-slide .op-face, #opening .op-m-slide .op-pic { animation: opSlide 3.2s cubic-bezier(.15,.8,.2,1) both; }
#opening .op-m-slide .op-name { animation: opSlideN .9s cubic-bezier(.15,.8,.2,1) both; }
#opening .op-m-pan .op-face, #opening .op-m-pan .op-pic { animation: opPan 6s linear both; }
#opening .op-m-zoom .op-face, #opening .op-m-zoom .op-pic, #opening .op-m-zoom b { animation: opZoom 5s ease-out both; }
#opening .op-m-shake { animation: opShake .5s linear 2; }
#opening .op-m-cut .op-name, #opening .op-m-cut b { animation: opCut .25s steps(2) both; }
@keyframes opSlide { from { transform: translateX(30%); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(0); } }
@keyframes opSlideN { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes opPan { from { transform: translateX(-6%) scale(1.06); } to { transform: translateX(6%) scale(1.06); } }
@keyframes opZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes opShake { 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, -2px); } }
@keyframes opCut { from { opacity: 0; } to { opacity: 1; } }
/* title drop */
#opening .op-title { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; opacity: 0; pointer-events: none; background: rgba(0,0,0,0); transition: background .3s; }
#opening.op-titled .op-title { opacity: 1; background: rgba(0,0,0,.55); animation: opDrop .7s cubic-bezier(.2,1.4,.3,1) both; }
#opening .op-title small { letter-spacing: .55em; opacity: .7; font-size: 12px; }
#opening .op-title h1 { font: 400 clamp(56px, 11vw, 170px) "Bebas Neue", var(--head), sans-serif; letter-spacing: .06em; margin: 4px 0; line-height: .9;
  text-shadow: 0 0 40px rgba(79,195,247,.5); }
#opening .op-title p { letter-spacing: .25em; opacity: .85; }
@keyframes opDrop { from { transform: scale(1.6); filter: blur(10px); } to { transform: none; filter: none; } }

/* eyecatch */
#eyecatch { position: fixed; inset: 0; z-index: 9040; display: none; background: #000; cursor: pointer; }
#eyecatch.on { display: block; animation: eyIn .35s ease both; }
#eyecatch i { position: absolute; inset: 0; background: center / cover no-repeat; animation: opZoom 4s ease-out both; }
#eyecatch .ey-txt { position: absolute; left: 0; right: 0; bottom: 14vh; text-align: center; }
#eyecatch .ey-txt b { font: 400 clamp(36px, 6vw, 84px) "Bebas Neue", var(--head), sans-serif; color: #fff; letter-spacing: .12em;
  background: rgba(0,0,0,.55); padding: 4px 26px; }
@keyframes eyIn { from { clip-path: inset(50% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { #opening *, #eyecatch * { animation: none !important; } }
/* OPN-02: after the title drop the title becomes a small logo in the corner while the montage plays */
#opening.op-logo .op-title { inset: auto auto 10vh 4vw; align-items: flex-start; background: transparent !important; animation: none; opacity: 1;
  transform: scale(.42); transform-origin: left bottom; transition: transform .7s cubic-bezier(.6,0,.2,1), inset .7s; }
#opening.op-logo .op-title small, #opening.op-logo .op-title p { display: none; }
/* OPN-03 picture picker in the editor */
#op-picker { border: 1px solid var(--line); padding: 8px; margin: 6px 0; max-height: 340px; overflow: auto; background: var(--panel2); }
#op-picker .op-pics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
#op-picker .op-pics i { width: 96px; height: 54px; background: #000 center / cover; cursor: pointer; border: 2px solid transparent; }
#op-picker .op-pics i:hover { border-color: var(--accent); } #op-picker .op-pics i.got { border-color: #66bb6a; }
