/* The opening screen, inside the letterboxed stage, over the tour's first frame: the LHCb logo (ui/logo.js), "Take
   the tour" as a white card, "Skip to explore" outlined. An address that
   starts somewhere gets the same screen without the choices (.in-ld, ui/intro.js createLoading) while the scene
   loads. */
.in,.in-ld{position:absolute;inset:0;z-index:20;color:var(--on-blue);font-family:var(--font);transition:opacity .8s ease}
.in.is-leaving,.in-ld.is-leaving{opacity:0;pointer-events:none}
.in-bg{position:absolute;inset:0;background:radial-gradient(ellipse 70% 60% at 68% 42%,var(--scene-glow) 0%,var(--scene) 50%,var(--scene-edge) 100%);transition:opacity 1.4s ease}
.in.is-ready .in-bg,.in-ld.is-ready .in-bg{opacity:0}
.in-draw{position:absolute;inset-inline-end:4%;top:12%;width:min(58%,820px);height:auto;color:var(--pale);opacity:.5;transition:opacity 1.2s ease}
[dir="rtl"] .in-draw{transform:scaleX(-1)}
.in.is-ready .in-draw,.in-ld.is-ready .in-draw{opacity:0}
.in-draw path,.in-draw circle{stroke-width:1.1;vector-effect:non-scaling-stroke;stroke-dasharray:900;stroke-dashoffset:900;animation:in-draw 2.6s cubic-bezier(.6,0,.2,1) forwards}
.in-draw .d0{stroke-dasharray:3 5;stroke-dashoffset:0;animation:in-fade 1.2s ease both}
.in-draw .d1{animation-delay:.2s}.in-draw .d2{animation-delay:.35s}.in-draw .d3{animation-delay:.55s}
.in-draw .d4{animation-delay:.75s}.in-draw .d5{animation-delay:.95s}.in-draw .d6{animation-delay:1.15s}
@keyframes in-draw{to{stroke-dashoffset:0}}
@keyframes in-fade{from{opacity:0}}
/* a neutral shade behind the text, so the scene keeps its own colours */
.in-scrim{position:absolute;inset:0;background:linear-gradient(to right,rgba(6,10,16,.7) 0%,rgba(6,10,16,.4) 38%,rgba(6,10,16,0) 68%),linear-gradient(to top,rgba(6,10,16,.5),rgba(6,10,16,0) 45%)}
/* fade out at the stage's top and bottom, so the scrim has no edge against the letterbox */
.in-scrim{-webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent)}
[dir="rtl"] .in-scrim{background:linear-gradient(to left,rgba(6,10,16,.7) 0%,rgba(6,10,16,.4) 38%,rgba(6,10,16,0) 68%),linear-gradient(to top,rgba(6,10,16,.5),rgba(6,10,16,0) 45%)}

.in-main{position:absolute;inset-inline-start:6%;bottom:max(9%,34px);width:min(640px,88%);animation:in-rise 1s cubic-bezier(.2,.7,.2,1) both .1s}
@keyframes in-rise{from{opacity:0;transform:translateY(14px)}}
.in-ld .in-main{bottom:max(12%,56px)}   /* no choices under the title: clear of the progress line */
.in-eyebrow{margin:0 0 16px;font-weight:600;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:var(--pale)}
.in h1,.in-ld .wordmark{position:relative;width:max-content;margin:0 0 .26em;margin-inline-start:-.02em;font-family:var(--font-display);font-style:italic;font-weight:600;font-synthesis:none;
  font-size:clamp(64px,min(13vw,24vh),176px);line-height:1;letter-spacing:-.02em;color:var(--pale)}
.in-tag{margin:0;margin-inline-start:.06em;font-size:clamp(16px,1.8vw,24px);line-height:1.35;max-width:30ch;color:#e6f5fc}
.in-choices{display:flex;flex-wrap:wrap;gap:14px;margin-top:clamp(18px,4vh,30px)}
.in-go{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"i b" "i s";align-items:center;gap:2px 16px;text-align:start;
  min-width:min(260px,100%);flex:1 1 260px;max-width:300px;padding:16px 18px;border-radius:var(--r-card);cursor:pointer;font:inherit;color:inherit;
  border:1.5px solid rgba(214,242,252,.6);background:rgba(6,10,16,.45);transition:background .18s,border-color .18s,transform .18s,opacity .3s}
.in-go b{grid-area:b;font-family:var(--font-display);font-style:italic;font-weight:600;font-synthesis:none;font-size:24px;line-height:1.15}
.in-go small{grid-area:s;font-size:14.5px;line-height:1.3;color:var(--on-blue-dim)}
.in-ico{grid-area:i;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--pale)}
.in-ico svg{width:15px;height:15px;fill:currentColor}
.in-explore .in-ico svg{width:18px;height:18px;fill:none}
[dir="rtl"] .in-tour .in-ico svg{transform:scaleX(-1)}
.in-tour{background:var(--card);border-color:var(--card);color:var(--ink);box-shadow:0 12px 30px rgba(5,20,50,.35)}
.in-tour .in-ico{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
.in-tour small{color:var(--dim)}
.in-tour small .lvl{margin-inline-end:6px;padding-block:0;font-size:12.5px;vertical-align:1px} /* the tour's audience level (ui/levels.js) */
.in-tour:hover{background:var(--white)}
.in-explore:hover{border-color:var(--pale);background:rgba(6,10,16,.65)}
.in-go:active{transform:translateY(1px)}
.in-go:focus-visible{outline:2px solid var(--white);outline-offset:4px}
.in.is-chosen .in-go:not(.is-picked){opacity:.35}
.in.is-chosen .in-go.is-picked{animation:in-wait 1.4s ease-in-out infinite}
@keyframes in-wait{50%{box-shadow:0 0 0 10px rgba(214,242,252,.12)}}
.in-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:20px 0 0;font-size:15px}
.in-links>button:not(.lang-btn),.in-links>a{background:none;border:0;padding:6px 0;color:var(--pale);font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(214,242,252,.4);text-underline-offset:3px}
.in-links>button:not(.lang-btn):hover,.in-links>a:hover{color:var(--white);text-decoration-color:currentColor}
.in-links :focus-visible{outline:2px solid var(--on-blue);outline-offset:2px}

.in-load{position:absolute;inset-inline:0;bottom:0;height:24px;display:flex;align-items:flex-end;justify-content:flex-end;padding:0 18px 7px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--on-blue-dim);transition:opacity .8s ease 1s}
.in-load i{position:absolute;inset-inline:0;bottom:0;height:2px;background:rgba(214,242,252,.2)}
.in-load b{position:absolute;inset:0;background:var(--pale);transform-origin:left center;transform:scaleX(0);transition:transform .35s ease}
[dir="rtl"] .in-load b{transform-origin:right center}
.in.is-ready .in-load,.in-ld.is-ready .in-load{opacity:0}
/* the scene could not be built: the reason, without the bar */
.in-ld.is-failed .in-load{height:auto;padding-block:12px;font-size:15px;letter-spacing:0;text-transform:none;color:var(--on-blue)}
.in-ld.is-failed .in-load i{display:none}

/* the HUD waits behind the intro (and until the scene is drawn: hud.css) */
body.mode-intro #hud,body.mode-intro #ctl,body.mode-intro #next,body.mode-intro #topbar{visibility:hidden}

@media (max-width:640px){
  .in-main{inset-inline:20px;width:auto;bottom:max(3%,24px)}
  .in-draw{inset-inline-end:-6%;top:8%;width:112%}
  .in-scrim{-webkit-mask-image:none;mask-image:none;background:linear-gradient(to top,rgba(6,10,16,.85) 0%,rgba(6,10,16,.6) 52%,rgba(6,10,16,0) 80%)}
  [dir="rtl"] .in-scrim{background:linear-gradient(to top,rgba(6,10,16,.85) 0%,rgba(6,10,16,.6) 52%,rgba(6,10,16,0) 80%)}
  .in-eyebrow{font-size:11.5px;letter-spacing:.16em;margin-bottom:12px}
  .in h1,.in-ld .wordmark{font-size:clamp(72px,27vw,104px)}
  .in-tag{font-size:19px}
  .in-choices{gap:12px}
  .in-go{max-width:none;flex-basis:100%;padding:14px 16px;gap:2px 14px}
  .in-go b{font-size:22px}.in-go small{font-size:14px}
  .in-ico{width:44px;height:44px}
  .in-links{gap:4px 16px}
  .in-links .lang-btn{margin-inline-start:auto}
  .in-load{padding-inline:12px}
}
@media (max-height:480px) and (min-width:641px){
  .in-tag{display:none}
  .in-eyebrow{margin-bottom:8px}
}
