/* Tall Grass motion and holo components, shared by the app and the public site. */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 20%; }

/* Full-bleed hero with the grass along its floor */
.hero-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 8px 24px; align-items: center; min-height: min(560px, 78vh); padding-block: 34px 150px; }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(520px 320px at 78% 30%, rgba(124, 201, 255, .22), transparent 70%), radial-gradient(420px 300px at 62% 72%, rgba(127, 240, 180, .14), transparent 70%), radial-gradient(380px 260px at 18% 12%, rgba(197, 155, 255, .16), transparent 70%); }
.hero-stage h1 { margin: 0; font: 900 clamp(54px, 13vw, 124px)/.82 var(--f-display, "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.hero-stage h1 em, .holo-em { font-style: normal; background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stage .lede { margin: 16px 0 20px; max-width: 34ch; color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); line-height: 1.45; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.pulse-line { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16, 18, 30, .7); font: 500 11.5px/1.3 var(--f-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pulse-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3BE38F; box-shadow: 0 0 0 0 rgba(59, 227, 143, .7); }
canvas.grass { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; z-index: 1; touch-action: pan-y; }
canvas.grass.foot { position: static; display: block; height: 120px; margin-top: 56px; margin-bottom: -1px; }

/* The fan of holo cards */
.fan { position: relative; z-index: 0; height: 300px; perspective: 900px; justify-self: center; width: min(100%, 330px); }
.hcard { position: absolute; left: 50%; top: 50%; width: 158px; aspect-ratio: 63 / 88; margin: -110px 0 0 -79px; rotate: var(--rot, 0deg); translate: var(--tx, 0) var(--ty, 0); transform-style: preserve-3d; }
.hface { position: relative; width: 100%; height: 100%; border-radius: 11px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(160deg, #1b2038, #0c0e1a 60%); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .9), 0 0 44px -14px rgba(124, 201, 255, .55); display: grid; place-items: center; }
.hface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hface svg { width: 46%; height: auto; opacity: .9; }
.hface .hlab { position: absolute; left: 8px; right: 8px; top: 8px; padding: 4px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); font: 600 8.5px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); text-align: left; }
.hc1 { --rot: -14deg; --tx: -78px; --ty: 14px; } .hc2 { --rot: 10deg; --tx: 76px; --ty: 8px; z-index: 1; } .hc3 { --rot: -2deg; --tx: 0px; --ty: -16px; z-index: 2; }
.hface { color: rgba(255, 255, 255, .85); } .hface.has-img svg, .hface.has-img .hlab { display: none; }
.tiltable { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; }
.sheen { position: relative; overflow: hidden; }
.sheen::after, .hface::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; transition: opacity .25s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 46%), linear-gradient(115deg, transparent 18%, rgba(255, 143, 192, .5) 34%, rgba(255, 217, 110, .45) 44%, rgba(127, 240, 180, .5) 54%, rgba(124, 201, 255, .5) 64%, rgba(197, 155, 255, .45) 74%, transparent 88%);
  background-size: 100% 100%, 260% 260%; background-position: 0 0, var(--mx) var(--my); }
.sheen::after { opacity: 0; }
.lit.sheen::after, .lit .sheen::after, .sheen.always::after { opacity: .75; }
.lit .hface::after, .lit.hface::after { opacity: .85; }

/* Marquee */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: rgba(16, 18, 30, .6); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; padding: 11px 0; white-space: nowrap; font-size: 14px; color: var(--muted); }
.ticker-track b { color: var(--ink); font-weight: 600; }
.ticker-track i { font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.ticker-track span { display: inline-flex; gap: 8px; align-items: baseline; }

/* Critical capture: a big pull lands in the room */
.crit { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(124, 201, 255, .28), rgba(7, 8, 15, .86) 60%); }
.crit-in { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px; }
.crit .tag { font: 900 clamp(38px, 11vw, 76px)/.86 var(--f-display, "Sofia Sans Extra Condensed", sans-serif); text-transform: uppercase; background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.crit .hcard { position: relative; left: auto; top: auto; margin: 10px 0; width: 190px; }
.crit b { font-size: 20px; } .crit .val { font: 900 44px/1 var(--f-display, sans-serif); color: var(--accent); font-variant-numeric: tabular-nums; } .crit .who { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-stage h1 em, .holo-em, .crit .tag { animation: holoSlide 7s linear infinite; }
  .pulse-line::before { animation: ping 2s ease-out infinite; }
  .hcard { animation: floaty 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
  .hface::after, .sheen.always::after { animation: sheenDrift 6s ease-in-out infinite alternate; }
  .lit .hface::after, .lit.sheen::after { animation: none; }
  .hero-copy > * { animation: riseIn .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; } .hero-copy > :nth-child(3) { animation-delay: .14s; } .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .fan .hcard { animation: dealIn .9s cubic-bezier(.2, .9, .2, 1) both, floaty 7s ease-in-out .9s infinite; }
  .fan .hcard:nth-child(2) { animation-delay: .12s, 1.4s; } .fan .hcard:nth-child(3) { animation-delay: .24s, 2.1s; }
  .ticker-track { animation: marquee var(--dur, 40s) linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .rv { opacity: 0; transform: translateY(22px); }
  .rv.rv-in { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
  .crit { animation: critFade 2.4s ease both; }
  .crit .tag { animation: critPop .6s cubic-bezier(.2, 1.4, .3, 1) both, holoSlide 3s linear infinite; }
  .crit .hcard { animation: critCard .8s cubic-bezier(.2, 1.2, .3, 1) .1s both; }
}
@keyframes holoSlide { to { background-position: 220% 0; } }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(59, 227, 143, 0); } }
@keyframes floaty { 0%, 100% { translate: var(--tx, 0) var(--ty, 0); } 50% { translate: var(--tx, 0) calc(var(--ty, 0px) - 10px); } }
@keyframes sheenDrift { from { --mx: 15%; --my: 10%; } to { --mx: 85%; --my: 80%; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dealIn { from { opacity: 0; translate: 0 90px; rotate: 0deg; scale: .8; } to { opacity: 1; translate: var(--tx, 0) var(--ty, 0); rotate: var(--rot, 0deg); scale: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes critFade { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes critPop { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes critCard { from { opacity: 0; transform: perspective(800px) rotateY(160deg) scale(.6); } to { opacity: 1; transform: perspective(800px) rotateY(0) scale(1); } }

@media (max-width: 720px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 18px 150px; }
  .fan { height: 232px; order: -1; margin-bottom: -6px; }
  .hcard { width: 124px; margin: -86px 0 0 -62px; }
  .hc1 { --tx: -62px; } .hc2 { --tx: 60px; }
}

/* Moments: your own pull's value reveal, and big pulls from others */
#fx-burst { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }
.crit.mine { pointer-events: auto; cursor: pointer; }
.crit.t0, .crit.t1 { background: radial-gradient(circle at 50% 45%, rgba(23, 26, 43, .5), rgba(7, 8, 15, .78) 62%); }
.crit.t2 { background: radial-gradient(circle at 50% 45%, rgba(127, 240, 180, .26), rgba(7, 8, 15, .88) 62%); }
.crit.t3 { background: radial-gradient(circle at 50% 45%, rgba(255, 210, 63, .3), rgba(124, 201, 255, .16) 38%, rgba(7, 8, 15, .92) 66%); }
.crit.t0 .hcard, .crit.t1 .hcard { width: 150px; }
.crit.t2 .hface { box-shadow: 0 0 0 2px rgba(127, 240, 180, .7), 0 0 60px -6px rgba(127, 240, 180, .8); }
.crit.t3 .hface { box-shadow: 0 0 0 2px rgba(255, 210, 63, .9), 0 0 90px -4px rgba(255, 210, 63, .9); }
.crit .tag.small { font-size: clamp(26px, 7vw, 40px); }
@media (prefers-reduced-motion: no-preference) {
  .crit.t0 { animation-duration: 1.1s; } .crit.t1 { animation-duration: 1.5s; } .crit.t2 { animation-duration: 2.2s; } .crit.t3 { animation-duration: 3s; }
  .crit.mine .hcard { animation: capRise .55s cubic-bezier(.2, 1.1, .3, 1) both; }
  .crit.t3 .hface { animation: ringPulse .7s ease-in-out infinite alternate; }
  body.shake { animation: shake .5s linear; }
}
@keyframes capRise { from { opacity: 0; transform: translateY(46vh) rotate(-8deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes ringPulse { to { box-shadow: 0 0 0 3px rgba(255, 210, 63, 1), 0 0 130px 6px rgba(255, 210, 63, .95); } }
@keyframes shake { 0%, 100% { transform: none; } 15% { transform: translate(-7px, 3px) rotate(-.4deg); } 30% { transform: translate(6px, -4px) rotate(.4deg); } 45% { transform: translate(-5px, 2px); } 60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); } }
