/* scene intro — cold prologue, breakdown, drop lockup. Stage px: 1920×1080 (landscape), 1080×1920 (portrait). */

.s-intro {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em;
  color: #9FA9B4; /* slate ink */
  --intro-talk: 240px;
}

/* ------------------------------------------------------------------ backdrop plate (oversized: covers letterbox) */
.s-intro__bd { position: absolute; inset: -1600px; pointer-events: none; }
.s-intro__bd > i { position: absolute; inset: 0; display: block; }
.s-intro__bd-black { background: #000; }
.s-intro__bd-slate {
  background:
    radial-gradient(1500px 980px at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.5) 100%),
    #0A0D11;
}
.s-intro__bd-grain { opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.s-intro__cold { position: absolute; left: 50%; top: 50%; width: 1700px; height: 1000px; margin: -500px 0 0 -850px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(94, 107, 120, 0.2), rgba(94, 107, 120, 0.06) 55%, transparent 100%); }

/* ------------------------------------------------------------------ type blocks */
.s-intro__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.s-intro__grp { display: block; transform-origin: 50% 50%; }
/* mask line: clipped only at the bottom edge (the floor, 0.14em under the line box so deep descenders such as the
   « g » of « visages » survive); free on the sides and above */
.s-intro__ln { display: block; line-height: 1.2; padding: 0 0.04em; clip-path: inset(-60% -60% -0.14em -60%); }
.s-intro__ln + .s-intro__ln { margin-top: -0.2em; }
.s-intro__in { display: block; will-change: transform; }

/* bar 0 */
.s-intro__pro { font-size: 212px; }
.s-intro__noun { position: relative; display: inline-block; }
.s-intro__ul { position: absolute; left: 0.02em; right: 0.01em; bottom: 0.16em; height: 2px; display: block; transform: scaleX(0); transform-origin: 0 50%; }

/* bar 1 */
.s-intro__part { font-size: 300px; line-height: 1.2; }
.s-intro__word { display: block; padding: 0 0.05em; letter-spacing: -0.025em; }
/* 1.4 « Non monétisés. »: green, smaller so it fits the frame (it vibrates, see intro.js) */
.s-intro__word--green { font-size: 0.72em; color: #5EE08F; text-shadow: 0 0 0.22em rgba(94, 224, 143, 0.38), 0 0 0.9em rgba(94, 224, 143, 0.16); }

.s-intro__scan { position: absolute; left: -400px; right: -400px; top: 0; height: 0; pointer-events: none; }
.s-intro__scan-line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; display: block;
  background: rgba(94, 107, 120, 0.7); box-shadow: 0 0 14px rgba(94, 107, 120, 0.55); }
.s-intro__scan-trail { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; display: block;
  background: linear-gradient(180deg, rgba(94, 107, 120, 0), rgba(94, 107, 120, 0.2)); }
.s-intro__scan.is-frozen .s-intro__scan-line { background: rgba(159, 169, 180, 0.9); box-shadow: 0 0 22px rgba(159, 169, 180, 0.5); }
.s-intro__scan.is-frozen .s-intro__scan-trail { opacity: 0; }

/* bar 2 */
.s-intro__q { font-size: 210px; }
.s-intro__warm { color: var(--ink); text-shadow: 0 0 60px rgba(243, 217, 168, 0.28); margin-right: -0.03em; }

/* bar 3 */
.s-intro__watch { font-size: 148px; color: var(--ink); }
.s-intro__watch .s-intro__ln { clip-path: inset(-60% -200% -0.14em -200%); }
.s-intro__row { display: block; text-align: center; white-space: nowrap; }
.s-intro__row--p { display: none; }
.s-intro__row .c, .s-intro__u .c { display: inline-block; will-change: transform; }

/* bar 4 */
.s-intro__home { font-size: 150px; color: var(--ink); }

/* ------------------------------------------------------------------ door ajar (behind « parl ») */
.s-intro__slit { position: absolute; left: 50%; top: 7%; bottom: 15%; width: 0; pointer-events: none; }
.s-intro__slit > i { position: absolute; display: block; }
.s-intro__slit-core { left: -10px; width: 20px; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(243, 217, 168, 0), rgba(243, 217, 168, 0.22) 28%, #FFF3E0 44%, #FFFAF2 50%, #FFF3E0 56%, rgba(243, 217, 168, 0.22) 72%, rgba(243, 217, 168, 0));
  /* the soft wings fade out before the floor (no box edge), only the bright line itself runs down to the floor spill */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent), linear-gradient(90deg, transparent 38%, #000 46%, #000 54%, transparent 62%);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent), linear-gradient(90deg, transparent 38%, #000 46%, #000 54%, transparent 62%);
  -webkit-mask-size: 100% 100%, 100% 30%; mask-size: 100% 100%, 100% 30%;
  -webkit-mask-position: 0 0, 0 100%; mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* halo: fades out vertically (never ends in a box edge) */
.s-intro__slit-halo { left: -170px; width: 340px; top: -6%; bottom: -4%;
  background: radial-gradient(closest-side, rgba(243, 217, 168, 0.26), rgba(227, 160, 98, 0.08) 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.s-intro__slit-floor { left: -420px; width: 840px; top: 100%; height: 300px; transform-origin: 50% 0;
  background: conic-gradient(from 146deg at 50% 0%, rgba(243, 217, 168, 0) 0deg, rgba(243, 217, 168, 0.12) 14deg, rgba(255, 236, 205, 0.36) 34deg, rgba(243, 217, 168, 0.12) 54deg, rgba(243, 217, 168, 0) 68deg, rgba(243, 217, 168, 0) 360deg);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, 0.6) 55%, transparent);
  mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, 0.6) 55%, transparent); }

/* ------------------------------------------------------------------ drop lockup */
.s-intro__wash { position: absolute; inset: -1600px; pointer-events: none; opacity: 0;
  background: radial-gradient(1300px 900px at 50% 50%, rgba(233, 184, 119, 0.62), rgba(227, 160, 98, 0.42) 50%, rgba(176, 104, 66, 0.3) 100%); }
.s-intro__glow { position: absolute; left: 50%; top: 50%; width: 1500px; height: 980px; margin: -520px 0 0 -750px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 192, 136, 0.22), rgba(227, 160, 98, 0.10) 46%, rgba(217, 115, 127, 0.04) 72%, transparent); }

.s-intro__lock { position: absolute; inset: 0; transform-origin: 50% 50%; color: var(--ink); }
.s-intro__talk { font-size: var(--intro-talk); }
.s-intro__talkmask { clip-path: inset(-60% -100% 0 -100%); }
.s-intro__talkline { position: relative; display: inline-block; white-space: nowrap; }
.s-intro__talkline .pl-word { position: relative; display: inline-block; vertical-align: baseline; }
.s-intro__talkline .pl-word .parl { color: var(--ink); }
.s-intro__talkline .pl-word .oire { position: absolute; left: 100%; top: 0; transform-origin: 30% 60%; opacity: 0; }
.s-intro__sheen { position: absolute; left: 0; top: 0; padding-right: 0.04em; color: transparent;
  background: linear-gradient(100deg, rgba(255, 250, 240, 0) 40%, rgba(255, 250, 240, 0.95) 50%, rgba(255, 250, 240, 0) 60%);
  background-size: 260% 100%; background-repeat: no-repeat; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; opacity: 0; }

.s-intro__mark { position: absolute; left: 50%; top: 50%; width: 208px; height: 208px; margin: -322px 0 0 -104px; }
.s-intro__mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.s-intro__mark .pl-lamp, .s-intro__mark .pl-glow { transform-box: fill-box; transform-origin: 50% 50%; }

.s-intro__tag { position: absolute; left: 50%; top: 50%; transform: translateX(-50%); margin-top: 158px; font-size: 68px; white-space: nowrap; color: var(--ink); }
.s-intro__tag .s-intro__ln { display: inline-block; vertical-align: top; padding: 0; }
.s-intro__tag .s-intro__ln + .s-intro__ln { margin-left: 0.22em; }
.s-intro__tag .s-intro__ln + .s-intro__ln { margin-top: 0; }

/* ------------------------------------------------------------------ portrait (1080×1920) */
.is-portrait .s-intro { --intro-talk: 164px; }
.is-portrait .s-intro__pro { font-size: 122px; }
.is-portrait .s-intro__part { font-size: 158px; }
.is-portrait .s-intro__word--green { font-size: 150px; line-height: 1.04; white-space: normal; max-width: 900px; margin: 0 auto; text-align: center; }
.is-portrait .s-intro__q { font-size: 140px; }
.is-portrait .s-intro__watch { font-size: 118px; }
.is-portrait .s-intro__row--l { display: none; }
.is-portrait .s-intro__row--p { display: block; }
.is-portrait .s-intro__row--p + .s-intro__row--p { margin-top: -0.12em; }
.is-portrait .s-intro__home { font-size: 112px; }
.is-portrait .s-intro__slit { top: 26%; bottom: 30%; }
.is-portrait .s-intro__wash { background: radial-gradient(900px 1500px at 50% 50%, rgba(233, 184, 119, 0.62), rgba(227, 160, 98, 0.42) 50%, rgba(176, 104, 66, 0.3) 100%); }
.is-portrait .s-intro__glow { width: 1100px; height: 1300px; margin: -700px 0 0 -550px; }
.is-portrait .s-intro__mark { width: 146px; height: 146px; margin: -238px 0 0 -73px; }
.is-portrait .s-intro__tag { font-size: 52px; margin-top: 122px; }
.is-portrait .s-intro__cold { width: 1100px; height: 1500px; margin: -750px 0 0 -550px; }
