/* Home: one particle world fixed behind the page; each section is a scene. Without JavaScript or
   canvas, .world keeps a still gradient from the scenes' lights and all text stays readable. */
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(55% 50% at 85% 15%, rgba(90, 100, 255, .2), transparent 70%),
  radial-gradient(50% 45% at 15% 85%, rgba(255, 60, 150, .12), transparent 70%),
  radial-gradient(45% 40% at 95% 90%, rgba(40, 200, 190, .12), transparent 70%),
  #04060A; }
.world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.notes { position: absolute; inset: 0; }
.note { position: absolute; left: 0; top: 0; opacity: 0; max-width: 300px; will-change: transform, opacity; }
.note b { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; text-shadow: 0 0 14px currentColor; }
.note span { display: block; font-size: 13px; line-height: 1.4; color: var(--soft); }
.note.r { translate: -100% 0; text-align: right; }
.note.m { translate: -50% 0; text-align: center; }
/* labels on busy formations sit on a small dark pill, starting from a dot on the anchor point */
.note.pill { translate: -6px -50%; }
.note.pill b { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgba(5, 7, 11, .74); border: 1px solid rgba(230, 233, 237, .1); text-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.note.pill b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.note.pill span { margin: 6px 0 0 8px; max-width: 220px; text-shadow: 0 0 3px #04060A, 0 1px 10px #04060A, 0 0 18px #04060A; }

.scenes { position: relative; z-index: 2; }
.scene { min-height: 140vh; display: flex; align-items: center; padding: 0 6vw; }
.scene.right { justify-content: flex-end; }
.scene.center { justify-content: center; text-align: center; }
.scene .card { max-width: 520px; background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.scene .card::before { display: none; }
.scene .card.wide { max-width: 860px; }
.scene.final .card { margin-top: 38vh; }
.scene h1, .scene h2 { font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.scene h1 { font-size: clamp(44px, 7vw, 108px); margin: 18px 0 20px; }
.scene h2 { font-size: clamp(36px, 4.6vw, 72px); margin: 14px 0 18px; }
.scene .dim { color: rgba(230, 233, 237, .5); }
.scene p { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; }
.sq { display: inline-block; width: .16em; height: .16em; background: var(--ember); border-radius: 2px; margin-left: .04em; box-shadow: 0 0 18px var(--ember); }
.chip { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--soft); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px 5px 6px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .03); }
.chip b { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .08); padding: 3px 7px; border-radius: 999px; color: var(--steel); }
.scene .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.scene.center .ctas { justify-content: center; }
.scene .tags { list-style: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.scene .tags .tag { font-size: 11px; letter-spacing: .06em; text-transform: none; background: var(--steel); color: #0E1013; border-color: transparent; }
.scene .tags .tag.o { background: transparent; color: var(--soft); border-color: rgba(230, 233, 237, .2); }
.scene .card > .tag { margin-top: 16px; }
.label-sim { display: inline-flex; margin-top: 16px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); border: 1px dashed rgba(255, 122, 69, .55); border-radius: 999px; padding: 5px 10px; }
.more { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 2px; }
.more:hover { color: var(--steel); border-color: var(--ember); }
/* .scene .big, not .big: the scene paragraph rule above would otherwise shrink it to body size */
.scene .big { font-size: clamp(40px, 6vw, 96px); font-weight: 500; letter-spacing: -.055em; line-height: 1; max-width: 16ch; margin: 0 auto; color: var(--steel); }
.big em { font-style: normal; }
.noise-word { color: #9aa8ff; } .luck-word { color: var(--ember); }
.home .site-foot { margin-top: 0; }

/* the accounts scene: what the ranking measures */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 22px; }
.facts dt { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.facts div:first-child dt { color: var(--ember); }
.facts dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--soft); }

/* the stack scene: a ring carousel of what we built, the text beside it */
.scene.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4vw; align-items: center; overflow-x: clip; }
.carousel { --R: 330px; --w: 200px; position: relative; height: 440px; perspective: 1500px; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.rc { position: absolute; width: var(--w); height: 250px; left: calc(var(--w) / -2); top: -125px; padding: 20px; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transform: rotateY(var(--rot)) translateZ(var(--R));
  border: 1px solid rgba(230, 233, 237, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  background: radial-gradient(rgba(230, 233, 237, .07) 1px, transparent 1.2px) 0 0 / 11px 11px, linear-gradient(165deg, rgba(22, 27, 38, .92), rgba(8, 10, 15, .94)); }
.rc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 75% at 50% -10%, color-mix(in srgb, var(--c) 34%, transparent), transparent 62%); pointer-events: none; }
.rc::after { content: ""; position: absolute; left: 20px; top: 20px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.rc > * { position: relative; }
.rc .lab { color: var(--c); font-size: 10.5px; }
.rc h3 { font-size: 1.25rem; letter-spacing: -.03em; }
.rc p { font-size: 13.5px; line-height: 1.45; }
.rc.back { pointer-events: none; }
/* without the script (or before it runs) the cards are a plain grid */
.carousel:not(.on) { height: auto; perspective: none; }
.carousel:not(.on) .ring { position: static; width: auto; height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.carousel:not(.on) .rc { position: relative; transform: none; left: auto; top: auto; width: auto; height: auto; min-height: 150px; }

/* phones: the scene sits in the upper part, the text on dark glass below; labels show titles only */
@media (max-width: 760px) {
  .note span { display: none; }
  .scene, .scene.right { justify-content: flex-start; align-items: flex-end; padding: 0 16px 14vh; }
  .scene.center { justify-content: center; }
  .scene .card, .scene .card.wide { background: rgba(4, 6, 10, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 18px; border-radius: 18px; }
  .scene.final .card { margin-top: 30vh; }
  /* the first screen: the logo above, the headline under it, both visible without scrolling */
  .scene[data-scene="logo"] { min-height: 100svh; padding-bottom: 20px; }
  .scene .chip b { white-space: nowrap; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .scene.split { grid-template-columns: 1fr; align-content: end; gap: 24px; padding-top: 14vh; }
  .carousel { --R: 230px; --w: 160px; height: 330px; }
  .rc { height: 210px; top: -105px; padding: 16px; }
}
