/* About: the synopsis, one sentence at a time in big type. As the page scrolls, the words of the current sentence light
   up from dim grey to white in reading order, and the key facts pop in the site's cyan and magenta while their numbers
   count up (js/about.js builds .about-lines and sets the classes). Between the hero (css/hero.css) and the portfolio
   wall (css/work.css).
   The section starts 230vh before the end of the hero track (810vh), so it is stuck on screen from the start of the
   explosion (5.8 screens into the hero) and the first sentence lights up over the flying particles. It has no background
   and ignores the pointer, so the hero shows and works through it until the hero scrolls away.
   Its last 150vh stay on screen under the pinned portfolio wall (css/work.css): the last sentence fades out first
   (--about-out, js/about.js), then PORTFOLIO zooms in over the still-running warp, which fades as the rows arrive. */
.about { position: relative; z-index: 3; height: 670vh; margin-top: -230vh; pointer-events: none; }
.about-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.about-stage > .about-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Warp stars fill the stage behind the sentences; js/about-warp.js draws them and sets --warp (0 to 1) for the fade. */
.about-warp { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: var(--warp, 0); }
/* --title-gate (js/work-entrance.js) is how far PORTFOLIO has zoomed in: the sentence only shows again once PORTFOLIO is gone. */
.about-lines { position: relative; z-index: 1; width: min(1180px, 100%); display: grid; opacity: calc((1 - var(--about-out, 0)) * (1 - var(--title-gate, 0))); }
/* Every sentence sits in the same grid cell; only the current one shows. The next one rises in, the last one lifts away. */
.about-line { grid-area: 1 / 1; align-self: center; margin: 0; font-size: clamp(28px, 3.9vw, 68px); font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; text-wrap: balance; opacity: 0; translate: 0 40px; transition: opacity 0.45s var(--ease), translate 0.6s var(--ease); }
.about-line.is-current { opacity: 1; translate: 0 0; }
.about-line.is-past { translate: 0 -40px; }
.about-word { color: rgba(255, 255, 255, 0.16); transition: color 0.25s ease; }
.about-word.is-lit { color: var(--text); }
/* The heart emoji keeps its own colour, so before it lights up it is greyed and dimmed like the words around it. */
.about-emoji { display: inline-block; transition: opacity 0.25s ease, filter 0.25s ease; }
.about-word:not(.is-lit) .about-emoji { opacity: 0.2; filter: grayscale(1); }
/* Once lit, the heart beats and sends soft filled hearts in dark red out from behind it, growing a little as they fade. */
.about-emoji { position: relative; isolation: isolate; }
.about-emoji::before, .about-emoji::after { z-index: -1; }
.about-emoji::before, .about-emoji::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.15em; height: 1.15em; margin: -0.6em 0 0 -0.575em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C1 8.4 3 4.5 6.7 4.5c2.2 0 3.6 1.2 4.3 2.4l1 1.4 1-1.4c.7-1.2 2.1-2.4 4.3-2.4 3.7 0 5.7 3.9 4.3 7.2C19.5 16.4 12 21 12 21z' fill='%238b0f22'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; pointer-events: none; }
.about-word.is-lit .about-emoji { animation: about-beat 1.2s ease-in-out infinite; }
.about-word.is-lit .about-emoji::before, .about-word.is-lit .about-emoji::after { animation: about-ripple 1.2s ease-out infinite; }
.about-word.is-lit .about-emoji::after { animation-delay: 0.6s; }
@keyframes about-beat { 0%, 100% { scale: 1; } 14% { scale: 1.18; } 28% { scale: 1; } 42% { scale: 1.12; } 70% { scale: 1; } }
@keyframes about-ripple { 0% { scale: 0.9; opacity: 0.7; } 100% { scale: 1.6; opacity: 0; } }
/* Key facts: once lit they take the signal colours (cyan for interface, magenta for models, alternating) and pop once. */
.about-fact { display: inline-block; }
.about-fact.is-lit { animation: about-pop 0.5s var(--ease); }
.about-fact.is-lit.is-ui { color: var(--ui); text-shadow: var(--glow-ui); }
.about-fact.is-lit.is-ai { color: var(--ai); text-shadow: 0 0 0.7em rgba(255, 46, 136, 0.7); }
@keyframes about-pop { 0% { scale: 1; } 40% { scale: 1.14; } 100% { scale: 1; } }
