Files

118 lines
8.5 KiB
CSS

/* /uta's own motion (ut-): the film scrub and the five entrances. Transform, opacity and clip-path only.
Every hidden starting state sits under .js and outside reduced motion, so JS off and reduced motion show the end. */
/* ---- signature: scroll scrubs the film ---- */
.ut-scrub { position: relative; height: 260svh; }
.ut-scrub-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--bg); }
.ut-scrub-in { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 27px; align-items: center; padding-top: 60px; }
.ut-scrub-l { grid-column: 1 / 7; }
.ut-scrub-l .lv-side { margin: 10px 0 27px; }
.ut-caps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--x-e10); display: grid; }
.ut-caps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 17px; padding: 14px 0; border-bottom: 1px solid var(--x-e10); }
.ut-caps-n { font: 606 12px/1.9 var(--mono); letter-spacing: .14em; color: light-dark(#737373, var(--text-tertiary)); transition: color .3s cubic-bezier(0, 0, .2, 1); }
.ut-caps h3 { margin: 0; font-size: 17px; font-weight: 497; line-height: 1.35; color: light-dark(#737373, var(--text-tertiary)); transition: color .3s cubic-bezier(0, 0, .2, 1); }
.ut-caps li[data-on] h3, .ut-caps li[data-on] .ut-caps-n { color: var(--ink); }
/* the body of the capability being read: all four share one grid cell, only the one being read shows */
.ut-caps-x { display: grid; margin-top: 17px; padding-left: 61px; }
.ut-caps-x p { grid-area: 1 / 1; margin: 0; font-size: 15px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); opacity: 0; transform: translateY(6px); transition: opacity .35s cubic-bezier(0, 0, .2, 1), transform .35s cubic-bezier(0, 0, .2, 1); }
.ut-caps-x p[data-on] { opacity: 1; transform: none; }
html:not(.js) .ut-caps-x { display: block; }
html:not(.js) .ut-caps-x p { opacity: 1; transform: none; margin-bottom: 10px; }
/* reduced motion: no scrub, so every capability reads in full, one after another */
@media (prefers-reduced-motion: reduce) {
.ut-scrub { height: auto; }
.ut-scrub-pin { position: relative; height: auto; padding: 72px 0; }
.ut-caps-x { display: block; }
.ut-caps-x p { opacity: 1; transform: none; margin-bottom: 10px; }
}
.ut-scrub-film { grid-column: 8 / 14; position: relative; margin: 0; height: min(76svh, 640px); aspect-ratio: 4 / 5; justify-self: end; border-radius: 20px; overflow: hidden; background: #000; cursor: ew-resize; touch-action: pan-y; }
.ut-scrub-film img, .ut-scrub-film video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 88%; }
.ut-scrub-meta { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; font: 500 13px var(--mono); color: rgba(255, 255, 255, .78); }
.ut-scrub-meta b { font-weight: 500; color: #fafafa; }
.ut-scrub-bar { flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ut-scrub-bar i { display: block; height: 100%; background: #fafafa; transform-origin: 0 50%; transform: scaleX(0); }
/* entrance 1, page-curl: a paper sheet over the scene curls away from its bottom-left corner toward the top right;
a grey underside trails the fold a beat behind the sheet */
.ut-curl { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
.ut-curl::before, .ut-curl::after { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
.ut-curl::before { background: light-dark(#e4e4e7, var(--muted)); }
.ut-curl::after { background: var(--bg); } /* the sheet is the page */
@media (prefers-reduced-motion: no-preference) {
.js .ut-curl { display: block; }
.js .ut-scrub[data-in] .ut-curl::after { animation: ut-curl 1.1s cubic-bezier(.4, 0, .2, 1) both; }
.js .ut-scrub[data-in] .ut-curl::before { animation: ut-curl 1.1s cubic-bezier(.4, 0, .2, 1) .09s both; }
}
@keyframes ut-curl {
0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
50% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 0); }
100% { clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0, 100% 0); }
}
/* ---- entrance 2, iris: the studio board opens from a circle at its centre ---- */
.ut-iris { clip-path: circle(150% at 50% 50%); }
@media (prefers-reduced-motion: no-preference) {
.js .ut-iris { clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1); }
.js .ut-iris[data-in] { clip-path: circle(150% at 50% 50%); }
}
/* ---- entrance 3, scroll-tilt: Hanzo's model cards lean on rotateX with scroll speed and level out ---- */
.ut-tilt { perspective: 1400px; }
.ut-tilt > * { transform: rotateX(var(--ut-tilt, 0deg)); transform-origin: 50% 0; }
@media (prefers-reduced-motion: reduce) { .ut-tilt > * { transform: none; } }
/* ---- entrance 4, count-roll: the 01 / 02 / 03 reels roll up into their numbers ---- */
.ut-cnt { display: inline-flex; }
.ut-cnt-c { display: inline-block; height: 2em; overflow: hidden; }
.ut-cnt-r { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -2em)); }
.ut-cnt-r > span { display: block; height: 2em; }
@media (prefers-reduced-motion: no-preference) {
.js .ut-fits .ut-cnt-r { transform: translateY(0); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 90ms); }
.js .ut-fits[data-in] .ut-cnt-r { transform: translateY(calc(var(--d) * -2em)); }
.js .ut-fits .cr-fits-list li { opacity: .35; transition: opacity .6s cubic-bezier(0, 0, .2, 1); }
.js .ut-fits[data-in] .cr-fits-list li { opacity: 1; }
.js .ut-fits[data-in] .cr-fits-list li:nth-child(2) { transition-delay: .18s; }
.js .ut-fits[data-in] .cr-fits-list li:nth-child(3) { transition-delay: .36s; }
}
.ut-fits-art img, .ut-fits-art video { object-position: 50% 88%; }
/* ---- entrance 5, spiral-in: the band's headline, lede and asks spiral in from the edge to their places ---- */
.ut-band h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 497; letter-spacing: -.035em; line-height: 1.05; color: #f5f5f5; text-wrap: balance; }
.ut-band { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
.js .ut-band .ut-sp { opacity: 0; }
.js .ut-band[data-in] .ut-sp { animation: ut-spiral 1.3s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 140ms); }
}
@keyframes ut-spiral {
0% { opacity: 0; transform: rotate(-300deg) translateX(36vw) rotate(300deg) scale(.4); }
35% { opacity: 1; transform: rotate(-170deg) translateX(18vw) rotate(170deg) scale(.7); }
70% { opacity: 1; transform: rotate(-60deg) translateX(5vw) rotate(60deg) scale(.94); }
100% { opacity: 1; transform: rotate(0deg) translateX(0) rotate(0deg) scale(1); }
}
@media (max-width: 900px) {
.ut-scrub { height: 200svh; }
.ut-scrub-in { grid-template-columns: 1fr; gap: 14px; padding-top: 64px; }
.ut-scrub-l, .ut-scrub-film { grid-column: 1; }
.ut-scrub-film { order: -1; justify-self: stretch; height: 34svh; aspect-ratio: auto; border-radius: 16px; }
.ut-scrub-l .lv-side { margin: 6px 0 12px; }
.ut-caps li { grid-template-columns: 32px 1fr; padding: 9px 0; }
.ut-caps h3 { font-size: 15px; }
.ut-caps-x { margin-top: 10px; padding-left: 0; }
.ut-caps-x p { font-size: 14px; }
.ut-scrub-meta { font-size: 13px; }
}
/* the films are framed on their subject: Uta's fan sits low and right in the picture, so the card leans into it */
.ut-scrub-film img, .ut-scrub-film video, .ut-fits-art img, .ut-fits-art video { transform: scale(1.32); transform-origin: 84% 80%; }
/* the band's object: four stems faint behind the words, each rising and falling on its own slow breath */
.ut-band { position: relative; isolation: isolate; }
.ut-band-stems { position: absolute; inset: 12% 22% 0; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7vw; align-items: end; pointer-events: none; }
.ut-band-stems i { display: block; width: 60%; justify-self: center; height: 100%; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 85%); transform-origin: 50% 100%; transform: scaleY(calc(.5 + var(--i) * .14)); }
@media (prefers-reduced-motion: no-preference) {
.js .ut-band[data-in] .ut-band-stems i { animation: ut-breathe calc(5.2s + var(--i) * 1.3s) cubic-bezier(.45, 0, .55, 1) calc(var(--i) * -1.7s) infinite alternate; }
}
@keyframes ut-breathe { from { transform: scaleY(calc(.42 + var(--i) * .12)); } to { transform: scaleY(calc(.62 + var(--i) * .1)); } }
@media (max-width: 900px) { .ut-band-stems { inset: 30% 8% 0; gap: 9vw; } }