/* Depth and motion, loaded after site.css. */

/* film grain over everything, so the black is never flat */
body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* hero: the words rise in, the sphere sits under them, the console floats over the sphere */
.hero { padding-top: 104px; padding-bottom: 40px; }
.hero h1 span { display: inline-block; }
html.js .hero h1 span { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 110ms + 80ms); }
html.js .hero p, html.js .hero .cta { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .45s; }
html.js .hero .cta { animation-delay: .58s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.stage { position: relative; height: clamp(380px, 56vw, 700px); margin-top: -30px; pointer-events: none; }
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(600px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 36% 30%, #ffc061 0%, #ff5a1f 40%, #7a1000 78%, #2a0500 100%); box-shadow: 0 0 160px 40px rgba(255, 90, 31, .28); transition: opacity 1.4s ease; }
.stage canvas { position: absolute; left: 50%; top: 50%; width: min(1000px, 154vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.4s ease; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); }
.stage canvas.lit { opacity: 1; }
.stage:has(canvas.lit)::before { opacity: 0; }

.console { position: relative; z-index: 3; width: min(800px, calc(100% - 32px)); margin: clamp(-260px, -21vw, -110px) auto 0; text-align: left; border-radius: 18px; background: rgba(8, 12, 16, .62); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); border: 1px solid rgba(255, 255, 255, .11); box-shadow: 0 50px 90px -34px #000, inset 0 1px 0 rgba(255, 255, 255, .07); }
html.js .console { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .8s; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.console-bar span { margin-left: 10px; font: 400 12.5px var(--mono); color: var(--mute); }
.console-body { font: 400 13.5px/1.9 var(--mono); padding: 18px 20px 22px; min-height: 258px; color: #d6d5da; white-space: pre-wrap; overflow-wrap: anywhere; }
.console-body .l { display: block; }
.console-body .dim { color: #6b7681; }
.console-body .no { color: #8a8990; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.console-body .ok { color: var(--ink); }
.console-body .ok b { color: var(--ember); font-weight: 400; }
.console-body .tool { color: #a9a8ae; }
.console-body .done { color: #8fdcae; }
.console-body .caret { display: inline-block; width: 8px; height: 1.05em; background: var(--ember); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* things arrive as you reach them */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv .mrow { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease, background .2s; transition-delay: calc(var(--n, 0) * 55ms + 150ms); }
html.js .rv.in .mrow { opacity: 1; transform: none; }

/* an ember follows the pointer round the edge of a tile */
.tile { position: relative; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), rgba(255, 122, 51, .9), rgba(255, 90, 31, .18) 45%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tile:hover::after { opacity: 1; }
.mrow:not(.head):hover { background: linear-gradient(90deg, rgba(255, 90, 31, .07), transparent 60%); }
.btn:not(.ghost):hover { box-shadow: 0 0 34px -4px rgba(255, 110, 40, .55); }

/* closing band: the sphere again, smaller and hotter */
.close { padding-top: 60px; }
.close-orb { position: relative; height: 380px; pointer-events: none; }
.close-orb canvas { position: absolute; left: 50%; top: 50%; width: min(620px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.2s; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); }
.close-orb canvas.lit { opacity: 1; }
.close h2 { margin-top: -20px; position: relative; }

@media (prefers-reduced-motion: reduce) {
  html.js .hero h1 span, html.js .hero p, html.js .hero .cta, html.js .console { animation: none; }
  html.js .rv, html.js .rv .mrow { opacity: 1; transform: none; transition: none; }
}

/* the bar leaves as you scroll down and comes back the moment you scroll up */
.bar { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.bar.away { transform: translateY(-101%); }

/* the lineup: the strongest model gets the tall panel, each with its own sphere, hotter as it gets stronger */
.lineup { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 44px; }
.lm { background: var(--bg); padding: 30px; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; transition: border-color .2s; }
.lm:hover { border-color: #2f3842; }
.lm-0 { grid-row: 1 / 3; min-height: 500px; }
.lm > *:not(canvas) { position: relative; z-index: 1; }
.lm canvas { position: absolute; right: -120px; bottom: -130px; width: 400px; aspect-ratio: 1; opacity: 0; transition: opacity 1.2s; -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); pointer-events: none; }
.lm-0 canvas { width: 760px; right: -230px; bottom: -270px; }
.lm canvas.lit { opacity: 1; }
.lm-top { display: flex; align-items: center; gap: 12px; }
.lm-top img { width: 24px; height: 24px; }
.lm h3 { font-size: 28px; }
.lm-0 h3 { font-size: 40px; }
.lm .role { color: #c3cedb; margin-top: 12px; font-size: 16px; }
.lm-0 .role { font-size: 19px; }
.lm-id { display: inline-block; align-self: flex-start; margin-top: 14px; font-size: 12.5px; color: var(--mute); background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 5px 10px; }
.lm dl { display: flex; gap: 30px; margin-top: auto; padding-top: 26px; }
.lm dt { color: var(--mute); font-size: 13px; }
.lm dd { margin: 4px 0 0; font-family: var(--mono); font-size: 16px; }
@media (max-width: 860px) { .lineup { grid-template-columns: 1fr; grid-template-rows: auto; } .lm-0 { grid-row: auto; min-height: 380px; } .lm dl { gap: 18px; flex-wrap: wrap; } }

/* lineup: words and prices keep clear of the sphere */
.lm dl { margin-top: 22px; padding-top: 0; }
.lm-1 > *:not(canvas), .lm-2 > *:not(canvas) { max-width: 62%; }
.lm-1 dl, .lm-2 dl { gap: 20px; flex-wrap: wrap; row-gap: 12px; }
.lm-1 canvas, .lm-2 canvas { right: -150px; bottom: -110px; width: 420px; }
.lm-0 canvas { width: 720px; right: -200px; bottom: -330px; }
@media (max-width: 860px) { .lm-1 > *:not(canvas), .lm-2 > *:not(canvas) { max-width: 100%; } .lm-1 canvas, .lm-2 canvas { opacity: .35 !important; } }
