/* DIGITHRONEX · The Cut · scenes shared across pages: the title window (TitleWindow.astro), the Work page's opening,
   drawn by title-window.js. The frame is 100vh (the large viewport on phones). */

/* the film fills the frame; the canvas over it is the dark with the letters cut out. Until the letters are drawn
   the film waits in the dark, so no bare frame shows first. The words underneath are the text itself, for reading
   (and for a page without scripts, where they stand over the dark on their own). */
.tw { position: relative; height: 100vh; overflow: hidden; isolation: isolate; background: var(--d-ground); }
.tw-reel, .tw-knock { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-reel { object-fit: cover; }
.tw-knock { z-index: 1; pointer-events: none; }
.tw-words {
  position: absolute; left: 0; right: 0; top: 45.5%; z-index: 2; margin: 0; transform: translateY(-50%);
  text-align: center; color: #F1F2F4; font-weight: 860; font-size: clamp(64px, 17vw, 300px); line-height: .86;
}
.tw-lead {
  position: absolute; left: 50%; top: calc(var(--tw-under, 74vh) + clamp(18px, 3.4vh, 36px)); z-index: 2; margin: 0;
  width: min(34em, calc(100% - 2 * var(--margin))); transform: translateX(-50%); text-align: center; color: rgba(241, 242, 244, .84);
}
.js .tw:not(.is-drawn) .tw-reel { opacity: 0; }
.js .tw-words { opacity: 0; }
@media (max-width: 700px) { .tw-lead { font-size: 16.5px; } }
@keyframes dx-failsafe { to { opacity: 1; } }
