/* Shared by the bio page, the video page and the homepage: smooth scrolling, parallax, moving line, bolt mark. */
/* Lenis and motion.js move the page; the CSS rule is for browsers without JavaScript. With it on, the two fight over the same scroll. */
@media (prefers-reduced-motion: no-preference) { html:not(.js) { scroll-behavior: smooth; } }

/* Opened with a hash: fade in once the page stands at the right place (motion.js). */
body { transition: opacity .5s ease; }
html.arriving body { opacity: 0; transition: none; }
html.lenis { height: auto; scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* Parallax: the photo is larger than its frame, motion.js moves it. */
.motion .card-photo, .motion .screen img, .motion .story > img, .motion .close > img, .motion .frame img, .motion .picbox img { scale: 1.13; will-change: translate; }
.motion .cut, .motion .name span, .motion .free figure img { will-change: translate; }

/* Large moving line: faint white type behind the content. */
.marquee { position: relative; z-index: 0; overflow: hidden; pointer-events: none; color: rgba(255, 255, 255, .07); font: 900 clamp(170px, 27vw, 430px)/1 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: -.005em; user-select: none; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; padding: .035em 0 .005em; }
.marquee i { flex: none; width: .4em; height: .8em; margin: 0 .12em 0 .14em; background: currentColor; -webkit-mask: url(../img/bolt-mask.svg) center / contain no-repeat; mask: url(../img/bolt-mask.svg) center / contain no-repeat; }

/* Bolt mark: cut like a gem, six gold facets. */
.mark .bolt { width: 14px; height: 28px; margin-right: 2px; fill: none; }
.bolt .f0 { fill: #C9A86B; } .bolt .f1 { fill: #F6E8C2; } .bolt .f2 { fill: #B8955A; } .bolt .f3 { fill: #EFDDB0; } .bolt .f4 { fill: #C9A86B; } .bolt .f5 { fill: #E6D09A; } .bolt .f6 { fill: #8E6F3A; }
.bolt path { transition: fill .25s; }
