/* Opening animation: the Cafe La Vie sign on white.
   Black glossy faces, lit warm sides, a glow, then the lights flicker on and a
   sheen crosses the faces. Pure CSS timeline (about 2.8 s); intro.js only builds
   the SVG and handles skip. */
.intro {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: grid; place-items: center;
  background: #fff;
  /* If the script never starts the show, the cover still goes away */
  animation: introFail .01s 6s forwards;
}
.intro.is-on { animation: introOut .45s ease 2.35s forwards; }
.intro.is-skip { animation: introSkip .3s ease forwards; pointer-events: none; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@keyframes introSkip { to { opacity: 0; visibility: hidden; } }
@keyframes introFail { to { visibility: hidden; } }

/* ---- the sign ---- */
.intro__stage { position: relative; width: min(88vw, 780px); }
.sign { display: block; width: 100%; height: auto; overflow: visible; }

.face { animation: faceIn .45s cubic-bezier(.2, .7, .2, 1) calc(.05s + var(--k) * .08s) both; }
@keyframes faceIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* sides: grow out from the face unlit, then the lamps come on */
.sides { opacity: 0; animation: show .01s calc(.45s + var(--k) * .06s) forwards; }
@keyframes show { to { opacity: 1; } }
.side {
  fill: #9b8d7c;
  transform: translate(calc(var(--i) * -1.05px), calc(var(--i) * .9px));
  animation:
    depth .5s cubic-bezier(.2, .7, .2, 1) calc(.45s + var(--k) * .06s) both,
    litSide .8s linear .95s both;
}
@keyframes depth { from { transform: translate(0, 0); } }
@keyframes litSide {
  0% { fill: #9b8d7c; } 8% { fill: color-mix(in srgb, #fff4cf, #ffc548 calc(var(--i) * 2.6%)); } 15% { fill: #b8a78d; } 24% { fill: color-mix(in srgb, #fff4cf, #ffc548 calc(var(--i) * 2.6%)); }
  32% { fill: #c9b793; } 42%, 100% { fill: color-mix(in srgb, #fff4cf, #ffc548 calc(var(--i) * 2.6%)); }
}

.glow { opacity: 0; animation: lamp .8s linear .95s forwards; }
@keyframes lamp {
  0% { opacity: 0; } 8% { opacity: 1; } 15% { opacity: .2; } 24% { opacity: 1; }
  32% { opacity: .35; } 42%, 100% { opacity: .95; }
}

.sheen { animation: sweep .75s cubic-bezier(.4, 0, .2, 1) 1.6s both; }
@keyframes sweep {
  from { transform: translateX(-140px) skewX(-20deg); }
  to { transform: translateX(1240px) skewX(-20deg); }
}

/* ---- skip ---- */
.intro__skip {
  position: absolute; inset-inline: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0 auto; width: max-content;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(42, 27, 18, .3); background: rgba(255, 255, 255, .85); color: #2a1b12;
  font: inherit; font-weight: 600; cursor: pointer;
  opacity: 0; animation: show .3s ease .5s forwards;
}
.intro__skip:hover { background: #f6e7d3; }
.intro__skip:focus-visible { outline: 3px solid #92400e; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
