/* Opening moment. Witts blue and white, owls below a soft horizon. */
.opening-on,.opening-on body{overflow:hidden}
.opening{position:fixed;inset:0;overflow:hidden;z-index:9999;display:grid;grid-template-rows:1fr auto;grid-template-columns:minmax(0,1fr);background:#deeaff;color:#173756;font-family:Manrope,'Segoe UI',system-ui,sans-serif;animation:op-in .5s ease both;padding-top:env(safe-area-inset-top,0px)}
.opening.leaving{animation:op-out .42s ease both}
.op-words{align-self:center;justify-self:center;width:min(100%,560px);padding:24px 24px 0;text-align:center}
.op-line{margin:0;font-weight:800;font-size:clamp(30px,8.4vw,46px);line-height:1.2;letter-spacing:-.01em}
.op-slot{position:relative;display:inline-block;min-width:6em;min-height:1.2em;text-align:center;vertical-align:bottom;cursor:text}
.op-word{display:inline-block;white-space:nowrap;opacity:0;transform:translateY(.35em);transition:opacity .22s ease,transform .22s ease}
.op-word.in{opacity:1;transform:none}
.op-word.out{opacity:0;transform:translateY(-.35em)}
.op-word.k-idea{color:#c4472f}.op-word.k-business{color:#245fc7}.op-word.k-brand{color:#6a45c9}.op-word.k-health{color:#11786f}.op-word.k-career{color:#9a5f00}.op-word.k-life{color:#a3366e}
.opening .op-input{display:none;-webkit-appearance:none;appearance:none;border:0;border-radius:0;box-shadow:none;outline:0;background:transparent;font:inherit;line-height:inherit;letter-spacing:inherit;color:#245fc7;text-align:center;padding:0;margin:0;height:auto;min-height:0;min-width:4.6em;max-width:80vw}
.opening .op-slot.ready .op-input{display:inline-block}
.op-slot.ready .op-word{display:none}
.op-slot.ready::after{content:"";position:absolute;left:4%;right:4%;bottom:.08em;height:3px;border-radius:3px;background:#a9bfdc}
.op-slot.typing::after{background:#245fc7}
.op-caret{display:none;position:absolute;left:50%;top:.18em;bottom:.22em;width:3px;border-radius:2px;background:#245fc7;animation:op-blink 1s steps(1) infinite}
.op-slot.ready:not(.typing) .op-caret{display:block}
.op-measure{position:absolute;visibility:hidden;white-space:pre;font:inherit}
.op-sub{margin:18px 0 0;font:500 clamp(17px,4.6vw,20px)/1.5 Inter,'Segoe UI',system-ui,sans-serif;color:#344f6b}
.op-go{margin-top:22px;min-height:50px;padding:0 28px;border:0;border-radius:99px;background:#245fc7;color:#fff;font:700 17px Manrope,'Segoe UI',system-ui,sans-serif;cursor:pointer;box-shadow:0 10px 24px #245fc730}
.op-owls{display:flex;justify-content:center;align-items:flex-end;min-width:0;background:#deeaff}
.op-stage{position:relative;width:min(118vw,720px);flex:none;margin-bottom:-2px}
.op-owl-img{display:block;width:100%;max-width:none;height:auto;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 9%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 9%);mask-composite:intersect}
.op-skip{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);right:16px;border:0;background:#ffffffb3;color:#536d89;font:600 14px Inter,'Segoe UI',system-ui,sans-serif;padding:8px 16px;min-height:44px;min-width:44px;border-radius:99px;cursor:pointer}
.op-go:focus-visible,.op-skip:focus-visible,.op-input:focus-visible{outline:3px solid #3268c4;outline-offset:3px}
@keyframes op-in{from{opacity:0}to{opacity:1}}
@keyframes op-out{to{opacity:0;transform:scale(1.02)}}
@keyframes op-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.opening,.opening.leaving{animation:none}.op-word{transition:none}.op-caret{animation:none}}

/* The blank: a one line answer on the underline, or a small box when the answer runs long. */
.opening .op-input{resize:none;overflow:hidden;white-space:pre-wrap;word-break:break-word;line-height:1.15;vertical-align:bottom}
.opening .op-slot.long{display:block;margin:6px auto 4px}
.opening .op-slot.long .op-input{text-align:left;font-weight:600;background:#ffffffc7;border-radius:14px;padding:10px 52px 10px 14px;overflow-y:auto;box-shadow:0 6px 20px #245fc71a}
.op-slot.long::after{display:none}
.op-mic{position:absolute;right:-52px;bottom:.12em;width:44px;height:44px;border:0;border-radius:50%;background:#245fc7;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 16px #245fc740}
.op-mic[hidden]{display:none}
/* The mic waits until the last idea clears, then fades in, so nothing jumps while ideas spin. */
.op-mic{opacity:0;visibility:hidden;transform:scale(.85);transition:opacity .6s ease .15s,transform .6s ease .15s,visibility 0s linear .75s}
.op-slot.ready .op-mic{opacity:1;visibility:visible;transform:none;transition:opacity .6s ease .15s,transform .6s ease .15s,visibility 0s}
.op-slot.long .op-mic{right:8px;bottom:8px;width:38px;height:38px}
.op-mic.on{background:#c43d3d;animation:op-pulse 1.4s ease-out infinite}
@keyframes op-pulse{0%{box-shadow:0 0 0 0 #c43d3d66}100%{box-shadow:0 0 0 14px #c43d3d00}}
.op-sub{max-width:30ch;margin-left:auto;margin-right:auto}
.op-how{margin:10px 0 0;font:500 15px/1.45 Inter,'Segoe UI',system-ui,sans-serif;color:#536d89}
/* The lines under the headline: "Tell us yours." fades in and out, then the team line types out, then how long to talk */
.op-sub{position:relative}
.op-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.op-ghost{visibility:hidden}
.op-sub-vis{opacity:0}
.opening.op-typing .op-sub-vis,.opening.op-typed-done .op-sub-vis{opacity:1}
.op-tcaret{display:none;width:2px;height:1.05em;margin:0 1px -.15em;background:#245fc7;animation:op-tblink .8s steps(1) infinite}
.opening.op-typing .op-tcaret{display:inline-block}
@keyframes op-tblink{50%{opacity:0}}
.op-tell{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);font:700 clamp(20px,5.4vw,24px)/1.3 Manrope,'Segoe UI',system-ui,sans-serif;color:#173756;opacity:0;transition:opacity .45s ease}
.op-tell.show{opacity:1}
.op-how-line{display:block}
.op-how-line+.op-how-line{margin-top:6px}
.op-acct{font-size:14px;font-weight:600;color:#16615a}.op-acct-arrow{color:#16615a;font-weight:700}
.op-how{opacity:0;transition:opacity .5s ease}
.opening.op-how-on .op-how{opacity:1}
.op-limits{margin:4px 0 0;font:italic 400 13px/1.4 Inter,'Segoe UI',system-ui,sans-serif;color:#506882}
.op-status{min-height:1.2em;margin:8px 0 0;font:600 13px/1.4 Inter,'Segoe UI',system-ui,sans-serif;color:#245fc7}
/* Owl nudges. Positions are over the owls in the picture. */
.op-bubble{position:absolute;bottom:88%;max-width:170px;padding:9px 13px;border-radius:16px;background:#fff;color:#173756;font:600 13.5px/1.35 Inter,'Segoe UI',system-ui,sans-serif;text-align:center;box-shadow:0 8px 22px #17375624;opacity:0;transform:translate(-50%,8px) scale(.9);transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.op-bubble::after{content:"";position:absolute;left:50%;top:100%;margin-left:-8px;border:8px solid transparent;border-top-color:#fff}
.op-bubble.show{opacity:1;transform:translate(-50%,0) scale(1)}
.op-b-right{left:70%}
.op-b-left{left:29%}
.op-think{position:absolute;left:58%;bottom:47%;opacity:0;transform:scale(.85);transform-origin:left bottom;transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.op-think.show{opacity:1;transform:none}
.op-think b{display:flex;gap:5px;padding:10px 14px;border-radius:20px;background:#fff;box-shadow:0 8px 22px #17375624}
.op-think b span{width:7px;height:7px;border-radius:50%;background:#536d89;animation:op-dot 1.2s ease-in-out infinite}
.op-think b span:nth-child(2){animation-delay:.2s}.op-think b span:nth-child(3){animation-delay:.4s}
.op-think i{position:absolute;border-radius:50%;background:#fff;box-shadow:0 4px 10px #17375620}
.op-think i:nth-of-type(1){width:11px;height:11px;left:-4px;bottom:-12px}
.op-think i:nth-of-type(2){width:6px;height:6px;left:-12px;bottom:-22px}
@keyframes op-dot{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.op-think b span,.op-mic.on{animation:none}}
.op-think-left{left:13%;bottom:44%;transform-origin:right bottom}
.op-think b.op-think-text{display:block;max-width:150px;padding:9px 13px;font:600 13px/1.35 Inter,'Segoe UI',system-ui,sans-serif;color:#173756;text-align:center;border-radius:20px}
.op-think-left i:nth-of-type(1){left:auto;right:18px;bottom:-12px}
.op-think-left i:nth-of-type(2){left:auto;right:10px;bottom:-22px}
.op-b-top{left:50%;bottom:96%;max-width:190px}
/* Library preview (#/opening-library): the library scene behind everything, owls in the same spot. */
.opening.lib{background:#e6eefb url(/assets/witts-honest-advice-ai-library-background-phone.webp) center top/cover no-repeat}
@media (min-aspect-ratio:4/5){.opening.lib{background-image:url(/assets/witts-honest-advice-ai-library-background-wide.webp?v=2);background-position:center 35%}}
.opening.lib .op-owls{background:transparent}
.opening.lib .op-owl-img{-webkit-mask-image:none;mask-image:none}
.opening.lib .op-words{background:rgba(255,255,255,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:24px;padding:22px 20px;margin:0 14px;width:auto;max-width:560px;box-shadow:0 10px 30px rgba(23,55,86,.12)}
.op-b-br{left:63%;bottom:50%;width:200px;max-width:200px}

/* Smooth idea changes: the slot never changes size; each idea floats centered inside it. */
.op-slot{height:1.2em;min-height:0;line-height:1.2em;vertical-align:top}
.op-word{position:absolute;left:50%;top:50%;line-height:1;transform:translate(-50%,-50%) translateY(.35em);will-change:transform,opacity;backface-visibility:hidden}
.op-word.in{transform:translate(-50%,-50%)}
.op-word.out{transform:translate(-50%,-50%) translateY(-.35em)}
.opening .op-slot.long{height:auto;line-height:inherit}
.op-words{contain:layout}
.op-owl-live{display:block;width:100%;height:auto;aspect-ratio:1904/1080}
.op-words{transition:opacity .45s ease}
.opening.op-wait .op-words{opacity:0}
/* Phones: zoom the library in from the top so the dome, balconies and windows fill the screen and the desk sits behind the owls. */
@media (max-aspect-ratio:4/5){.opening.lib{background-image:url(/assets/witts-honest-advice-ai-library-background-phone-hd.webp);background-size:auto 130%;background-size:auto max(130%,179.2vw);background-position:center top}}

/* The opening mic turns red while it records */
.op-mic.on{background:#c62828;box-shadow:0 0 0 0 rgba(198,40,40,.45);animation:op-rec 1.6s ease-out infinite}
@keyframes op-rec{0%{box-shadow:0 0 0 0 rgba(198,40,40,.45)}100%{box-shadow:0 0 0 18px rgba(198,40,40,0)}}
@media(prefers-reduced-motion:reduce){.op-mic.on{animation:none}}
/* The nearby city under a local business (Oct 23): its own smaller line, so the idea never has to shrink to fit.
   The line keeps its height while ideas cycle, so nothing jumps, and folds away once the blank is theirs. */
.op-place{display:block;height:1.5em;font:600 .46em/1.5 Inter,'Segoe UI',system-ui,sans-serif;color:#536d89;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateY(.35em);transition:opacity .22s ease,transform .22s ease,height .3s ease}
.op-place b{color:#173756;font-weight:700}.op-place.in{opacity:1;transform:none}.op-place.gone{height:0;opacity:0}
@media (prefers-reduced-motion:reduce){.op-place{transition:none}}
/* Map pin by the city (Oct 23), and air between the idea and the city line so tall faces never touch it. */
.op-pin{display:inline-block;width:.78em;height:1.1em;vertical-align:-.22em;margin:0 .18em 0 .1em}
.op-place{margin-top:.55em}
