/* Liova Studio — fin du reel (rafale des matières → équerre → logo). Aucune dépendance. */
.liova-fin { --lf-bg: #F7F7F3; --lf-ink: #111111; --lf-cobalt: #254DFF;
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--lf-bg); overflow: hidden; cursor: pointer; }
.liova-fin[data-mode="scroll"] { aspect-ratio: auto; height: 300vh; overflow: visible; cursor: default; }
.liova-fin[data-mode="scroll"] .lf-view { position: sticky; top: 0; height: 100vh; }
.lf-view { position: absolute; inset: 0; overflow: hidden; }
.liova-fin[data-mode="scroll"] .lf-view { position: sticky; }
/* scène de 1000 × 800 unités, mise à l'échelle par le script */
.lf-stage { position: absolute; left: 50%; top: 50%; width: 1000px; height: 800px; margin: -400px 0 0 -500px; transform-origin: 50% 50%; }
.lf-card { position: absolute; left: 50px; top: 62.5px; width: 900px; height: 675px; border-radius: 67.5px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(17,17,17,.10); will-change: transform, opacity, filter; }
.lf-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.lf-card img.on { visibility: visible; }
.lf-eq { position: absolute; left: 500px; top: 400px; width: 72px; height: 72px; will-change: transform; }
.lf-eq i { position: absolute; left: 0; top: 0; background: var(--lf-cobalt); }
.lf-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; will-change: opacity, filter, transform; }
.lf-word { display: flex; align-items: baseline; gap: 12px; }
.lf-liova { font-family: "Instrument Serif", serif; font-style: normal; font-size: 104px; color: var(--lf-cobalt); letter-spacing: -1px; line-height: 1.2; }
.lf-studio { font-family: "Inter", system-ui, sans-serif; font-weight: 500; font-size: 70px; color: var(--lf-ink); letter-spacing: -2px; line-height: 1.2; }
.lf-tag { font-family: "Inter", system-ui, sans-serif; font-weight: 500; font-size: 28px; color: rgba(17,17,17,.5); margin-top: 16px; letter-spacing: -.2px; }

/* ---------- Mode intro : plein écran à l'ouverture du site (mobile first) ---------- */
.liova-fin[data-mode="intro"] { position: fixed; inset: 0; z-index: 9999; aspect-ratio: auto; width: 100%; height: 100vh; height: 100dvh;
  cursor: default; transition: opacity .6s cubic-bezier(.4,0,.2,1); }
.liova-fin[data-mode="intro"] .lf-mark { transition: filter .6s ease-in, transform .6s ease-in; }
.liova-fin.lf-out { opacity: 0; pointer-events: none; }
.liova-fin.lf-out .lf-mark { filter: blur(8px) !important; transform: scale(1.06) !important; }
/* le site attend derrière, légèrement en retrait et flou, puis se met au point pendant l'ouverture */
html:has(.liova-fin[data-mode="intro"]) { overflow: hidden; }
html:has(.liova-fin[data-mode="intro"]) [data-liova-site] { transform: scale(.965); filter: blur(10px); }
html.lf-opening [data-liova-site], html.lf-open [data-liova-site] { transform: none; filter: none;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .7s ease-out; }
/* intro déjà vue dans cette session (voir LISEZMOI) */
html.lf-skip-intro .liova-fin[data-mode="intro"] { display: none; }
html.lf-skip-intro { overflow: auto; }
html.lf-skip-intro [data-liova-site] { transform: none; filter: none; }
.lf-skip { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font: 500 13px/1 "Inter", system-ui, sans-serif; letter-spacing: -.1px; color: rgba(17,17,17,.45);
  background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  opacity: 0; animation: lf-skip-in .4s ease-out 1s forwards; }
.lf-skip:hover { color: #111; }
@keyframes lf-skip-in { to { opacity: 1; } }

/* ---------- Écran vertical (mobile first) : scène 1000 × 1500, carte 3:4 ---------- */
.liova-fin.lf-portrait .lf-stage { height: 1500px; margin-top: -750px; }
.liova-fin.lf-portrait .lf-card { top: 150px; height: 1200px; }
.liova-fin.lf-portrait .lf-eq { top: 750px; }
