/* Intro loader for the front door (portal.html). Rebuilt from the owner's hex-loader zip (easing, keyframes,
   draw/fade timings), restyled 2026-11-11 to the site theme (orange since 2026-11-12): STC hexagon, white STC mark inside it,
   blue-black "digital flow" backdrop (shared with the PIN screen, see front-door.css). il- prefixed. No network loads. */
.il{--il-text:#d5e0ff;--il-muted:rgba(213,224,255,.66);--il-dim:rgba(213,224,255,.42);--il-accent:#f26b1d;--il-glow:#ff8a3d;--il-ease:cubic-bezier(.2,0,0,1);
  position:fixed;inset:0;z-index:2000;color:var(--il-text);display:flex;align-items:center;justify-content:center;
  font-family:system-ui,sans-serif;line-height:1.6;transition:opacity .7s var(--il-ease),visibility .7s;cursor:pointer}
.il *{box-sizing:border-box;margin:0;padding:0}
.il.il-exit{opacity:0;visibility:hidden;pointer-events:none}
.il-logo{text-align:center;transition:opacity .6s var(--il-ease),transform .6s var(--il-ease)}
.il.il-exit .il-logo{opacity:0;transform:scale(1.1)}
.il-mark{position:relative;width:17rem;height:17rem;margin:auto}
.il-mark svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}
.il-hex{fill:none;stroke:url(#il-grad);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:320;stroke-dashoffset:320;
  animation:il-draw 1.6s var(--il-ease) .25s forwards;filter:drop-shadow(0 0 10px color-mix(in oklab,var(--il-glow) 55%,transparent))}
.il-hex-fill{fill:rgba(242,107,29,.10);stroke:none;opacity:0;animation:il-fade .9s var(--il-ease) 1.6s forwards}
@keyframes il-draw{to{stroke-dashoffset:0}}
.il-mark img{position:absolute;left:50%;top:50%;width:74%;height:auto;transform:translate(-50%,-50%) scale(.94);
  filter:brightness(0) invert(1) drop-shadow(0 0 12px rgba(255,138,61,.45));opacity:0;animation:il-mark .8s var(--il-ease) 1.9s forwards}
@keyframes il-mark{to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.il-word{margin-top:1.6rem;font-size:.95rem;letter-spacing:.4em;text-transform:uppercase;color:var(--il-muted);opacity:0;animation:il-fade .7s var(--il-ease) 1.9s forwards}
@keyframes il-fade{to{opacity:1}}
/* Meeting 2026-11-12: orange to match the install colours, "Powered by STC" under Welcome. */
.il-powered{margin-top:.5rem;font-size:.78rem;letter-spacing:.24em;text-transform:uppercase;color:var(--il-dim);opacity:0;animation:il-fade .7s var(--il-ease) 2.2s forwards}
.il-powered b{color:var(--il-glow);font-weight:700}
.il-bottom{position:absolute;left:0;right:0;bottom:max(2.6rem,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center}
.il-progress{text-align:center;position:relative}
.il-percent{position:absolute;right:-.4rem;top:-1.6rem;font:11px monospace;letter-spacing:.16em;color:var(--il-muted)}
.il-bar{width:13rem;height:.6rem;border:1px solid var(--il-dim);border-radius:999px;padding:.13rem}
.il-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#d9530f,#ffb27a);box-shadow:0 0 10px rgba(255,138,61,.6);border-radius:999px;transition:width .3s var(--il-ease)}
.il-caption{margin-top:1rem;font:11px monospace;letter-spacing:.16em;text-transform:uppercase;color:var(--il-dim)}
.il-done{display:none;color:var(--il-muted);font:11px/2 monospace;letter-spacing:.16em;text-transform:uppercase;min-height:44px;padding:10px;text-align:center}
.il.il-is-ready .il-progress{display:none}
.il.il-is-ready .il-done{display:block}
.il-cursor{display:inline-block;width:.55em;height:1em;background:var(--il-muted);vertical-align:text-bottom;animation:il-blink .9s steps(1) infinite}
@keyframes il-blink{50%{opacity:0}}
/* While the intro shows, hold the front-door card back so it rises in as the intro fades. */
.il-active .pin-card,.il-active .welcome-card{animation:none;opacity:0}
@media(max-width:480px){.il-mark{width:15rem;height:15rem}.il-word{letter-spacing:.18em;padding:0 16px}}
@media(prefers-reduced-motion:reduce){.il{display:none!important}.il-active .pin-card,.il-active .welcome-card{opacity:1}}

/* Self-contained backdrop (owner 2026-11-13: the intro now runs on pages without front-door.css too).
   Same look as front-door.css; il- names so it never clashes with it. */
.il{isolation:isolate;overflow:hidden;
  background:radial-gradient(900px 520px at 50% -8%,rgba(29,107,181,.55) 0%,rgba(0,69,124,.22) 45%,transparent 75%),
    radial-gradient(700px 420px at 100% 100%,rgba(0,69,124,.30) 0%,transparent 70%),
    radial-gradient(600px 380px at 0% 85%,rgba(13,52,102,.35) 0%,transparent 70%),
    linear-gradient(180deg,#04172e 0%,#020c1c 55%,#01060f 100%)}
.il::before{content:"";position:absolute;inset:-100px 0;z-index:-1;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%2364a8ff' stroke-opacity='.13' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%2364a8ff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size:56px 100px;
  -webkit-mask-image:radial-gradient(ellipse 75% 70% at 50% 45%,#000 0%,rgba(0,0,0,.55) 55%,transparent 100%);
  mask-image:radial-gradient(ellipse 75% 70% at 50% 45%,#000 0%,rgba(0,0,0,.55) 55%,transparent 100%);
  animation:il-drift 24s linear infinite}
.il::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:repeating-linear-gradient(115deg,transparent 0 140px,rgba(90,169,255,.07) 140px 141px,transparent 141px 300px),
    repeating-linear-gradient(115deg,transparent 0 220px,rgba(124,192,255,.10) 220px 222px,transparent 222px 520px);
  background-size:600px 600px,1040px 1040px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 30%,#000 70%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 30%,#000 70%,transparent 100%);
  animation:il-flow 18s linear infinite}
@keyframes il-drift{to{transform:translateY(-100px)}}
@keyframes il-flow{to{background-position:600px 0,1040px 0}}
@media(prefers-reduced-motion:reduce){.il::before,.il::after{animation:none}}
/* Personal greeting after sign-in (owner 2026-11-13): 4 s in, "WELCOME" gives way to "Welcome back, First Last". */
.il-hello{height:0;margin:0;overflow:visible;opacity:0;transform:translateY(10px);filter:blur(6px);pointer-events:none;
  transition:opacity .9s var(--il-ease),transform .9s var(--il-ease),filter .9s var(--il-ease)}
.il-hello-pre{display:block;font-size:.78rem;letter-spacing:.32em;text-transform:uppercase;color:var(--il-muted)}
.il-hello-name{display:block;margin-top:.35rem;font-size:clamp(1.7rem,4.2vw,2.6rem);font-weight:700;letter-spacing:.02em;line-height:1.15;
  background:linear-gradient(90deg,#ffd2ad 0%,#ff8a3d 45%,#ffb27a 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 0 28px rgba(255,138,61,.25)}
.il.il-greet .il-word,.il.il-greet .il-powered{transition:opacity .6s var(--il-ease),transform .6s var(--il-ease)}
.il.il-hello-on .il-word{opacity:0!important;transform:translateY(-6px)}
.il.il-hello-on .il-powered{opacity:0!important}
.il.il-hello-on .il-hello{height:auto;margin-top:-2.4rem;opacity:1;transform:none;filter:none}
@media(max-width:480px){.il.il-hello-on .il-hello{margin-top:-1.9rem}.il-hello-pre{letter-spacing:.22em}}
