/* UCD — Arrival screen, on every opening or reload of the catalogue: the emblem fills with silver
   (about 2.3 s, whatever the loading speed), then everything fades out in .75 s. See intro.js. */
.intro { display: none; }
html.intro-on, html.intro-on body { overflow: hidden; }
html.intro-on .intro { display: grid; }
.intro {
  --intro-bg: #040e20; --intro-glow: #173a6638; --intro-card: #0b192f; --intro-line: #23334c;
  --intro-ink: #edf2fa; --intro-muted: #9caac0; --intro-sub: #b0c4df; --intro-ring: #c6daf5;
  --intro-metal: linear-gradient(90deg, #7799bd, #edf5ff, #7799bd); --intro-shadow: 0 16px 45px #00000035;
  --intro-ease-out: cubic-bezier(.16, 1, .3, 1); --intro-ease-slow: cubic-bezier(.4, 0, .2, 1);
  position: fixed; inset: 0; z-index: 1000; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 42%, var(--intro-glow), transparent 62%), var(--intro-bg);
  color: var(--intro-ink); font-family: 'Segoe UI', Arial, sans-serif; cursor: pointer;
  transition: opacity .75s var(--intro-ease-slow), visibility 0s linear .75s;
}
:root[data-theme="light"] .intro {
  --intro-bg: #f5f7fb; --intro-glow: #d9e5f4; --intro-card: #ffffff; --intro-line: #d9e1ee;
  --intro-ink: #14233d; --intro-muted: #62718a; --intro-sub: #37659a; --intro-ring: #214770;
  --intro-metal: linear-gradient(90deg, #214770, #7fa3cc, #214770); --intro-shadow: 0 16px 45px #213d6314;
}
.intro.out { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }
.intro-in { display: flex; flex-direction: column; align-items: center; transition: transform 1s var(--intro-ease-slow); }
.intro.out .intro-in { transform: scale(1.05); }
/* Navy tile, as in the header; the silver emblem fills from the bottom, then a reflection crosses it */
.intro-badge { position: relative; width: 124px; height: 124px; border-radius: 30px; background: radial-gradient(circle at 50% 30%, #0e2a5c, #04122e 78%); border: 1px solid #dce5f133; box-shadow: 0 34px 70px -34px #000000b3; overflow: hidden; animation: introBadge .9s var(--intro-ease-out) both; }
:root[data-theme="light"] .intro-badge { border-color: #21477040; box-shadow: 0 34px 70px -34px #213d6399; }
.intro-ghost, .intro-fill { position: absolute; left: 22px; right: 22px; top: 17px; bottom: 19px; }
.intro-ghost img, .intro-fill img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-ghost { opacity: .2; }
.intro-fill { clip-path: inset(100% 0 0 0); animation: introFill 1.5s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro-badge::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 60%; background: linear-gradient(100deg, #ffffff00 0%, #ffffff8c 50%, #ffffff00 100%); transform: translateX(0) skewX(-12deg); opacity: 0; animation: introGlint .75s 1.55s var(--intro-ease-out) forwards; }
.intro-word { margin-top: 28px; text-align: center; }
.intro-word b { display: block; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: .34em; margin-right: -.34em; animation: introWord 1.1s .6s var(--intro-ease-out) both; }
.intro-word small { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; color: var(--intro-sub); animation: introFade .9s .95s ease both; }
.intro-word small::before, .intro-word small::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.intro-word small::after { margin-left: -.5em; }
.intro-line { width: 168px; height: 2px; margin-top: 26px; border-radius: 2px; background: var(--intro-line); overflow: hidden; }
.intro-line i { display: block; height: 100%; background: var(--intro-metal); transform-origin: left center; transform: scaleX(0); animation: introLine 2s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
/* "Made by": the portrait appears, a silver ring is drawn around it, the name is underlined, a reflection crosses the pill */
.intro-credit { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--intro-card); border: 1px solid var(--intro-line); box-shadow: var(--intro-shadow); white-space: nowrap; overflow: hidden; transform: translateX(-50%); animation: introCredit .8s .8s var(--intro-ease-out) both; }
.intro-face { position: relative; width: 40px; height: 40px; flex: none; }
.intro-credit img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #9bbbe94d; animation: introFace .6s .95s var(--intro-ease-out) both; }
.intro-ring { position: absolute; left: -3px; top: -3px; width: 46px; height: 46px; transform: rotate(-90deg); overflow: visible; }
.intro-ring circle { fill: none; stroke: var(--intro-ring); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 142.2; stroke-dashoffset: 142.2; animation: introRing .8s 1.05s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro-by { font-size: 13px; color: var(--intro-muted); letter-spacing: .02em; }
.intro-by em { font-style: normal; }
.intro-by b { position: relative; display: inline-block; font-weight: 600; color: var(--intro-ink); }
.intro-by b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; border-radius: 2px; background: var(--intro-metal); transform: scaleX(0); transform-origin: left center; animation: introLine .6s 1.3s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro-credit::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -30%; width: 26%; background: linear-gradient(100deg, #edf5ff00 0%, #edf5ff52 50%, #edf5ff00 100%); transform: translateX(0) skewX(-18deg); opacity: 0; pointer-events: none; animation: introCreditGlint .75s 1.5s var(--intro-ease-out) forwards; }
:root[data-theme="light"] .intro-credit::after { background: linear-gradient(100deg, #ffffff00 0%, #ffffffcc 50%, #ffffff00 100%); }
@keyframes introBadge { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes introFill { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes introGlint { 0% { opacity: 0; transform: translateX(0) skewX(-12deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(380%) skewX(-12deg); } }
@keyframes introWord { from { opacity: 0; transform: scaleX(1.18); } to { opacity: 1; transform: none; } }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introCredit { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes introShine { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.35); } }
@keyframes introFace { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes introRing { to { stroke-dashoffset: 0; } }
@keyframes introCreditGlint { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(560%) skewX(-18deg); } }
@media(max-width:760px) {
  .intro-badge { width: 108px; height: 108px; border-radius: 26px; }
  .intro-ghost, .intro-fill { left: 19px; right: 19px; top: 15px; bottom: 17px; }
  .intro-word b { font-size: 28px; }
}
/* With reduced motion (system setting), the screen keeps its length without movement: fades, the emblem filling,
   a reflection in place and the silver line. The rules override the site-wide reset in style.css and signature.css. */
@media(prefers-reduced-motion:reduce) {
  .intro { transition: opacity .75s ease, visibility 0s linear .75s !important; }
  .intro.out .intro-in { transform: none; }
  .intro-badge { animation: introFade .8s ease both !important; }
  .intro-fill { animation: introFill 1.5s .25s cubic-bezier(.65, 0, .35, 1) forwards, introShine .8s 1.55s ease both !important; }
  .intro-badge::after { animation: none !important; }
  .intro-word b { animation: introFade 1s .6s ease both !important; }
  .intro-word small { animation: introFade .9s .95s ease both !important; }
  .intro-line i { animation: introLine 2s .15s cubic-bezier(.65, 0, .35, 1) forwards !important; }
  .intro-credit { animation: introFade .8s .8s ease both !important; }
  .intro-credit img { animation: introFade .6s .95s ease both !important; }
  .intro-ring circle { animation: introRing .8s 1.05s cubic-bezier(.65, 0, .35, 1) forwards !important; }
  .intro-by b::after { animation: introLine .6s 1.3s cubic-bezier(.65, 0, .35, 1) forwards !important; }
  .intro-credit::after { animation: introCreditGlint .75s 1.5s ease forwards !important; }
}
