/* Inner pages of the website (Evolution, Accelerated, Affiliates, About, CEO, Team, Memories, Contact), built on
   Proposal 3 (D Spectrum): colour panels (.pan), glass cards, Poppins 400/500/600, Title Case, green pill CTAs.
   The pricing grid on the program pages is css/market.css (a copy of the dashboard grid). */

/* ---------- shared ---------- */
.pg .h2 em { background: linear-gradient(90deg, var(--lcyan), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg .head.c .lead + .lead { margin-top: 10px; }
.pg-hero .lead + .lead { margin-top: 12px; }
.pg-hero .hero-copy .lead { max-width: 560px; }
.pg-hero .ctas { margin-top: 30px; }
.go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-size: 16px; color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .3s, transform .35s var(--ease); }
a:hover > .go { background: rgba(var(--g),.5); transform: translateX(4px); }
[data-rise] { will-change: transform; }
/* the brand video, 30% darker everywhere */
.d .sky::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); pointer-events: none; }

/* program pages: the program's picture fills the hero, the logo standing to the right of the words;
   it darkens toward the text and fades into the page at the bottom */
.has-bg { overflow: hidden; }
.pg-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pg-bg img { position: absolute; top: 0; left: 0; width: 135%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 24%; animation: pgBg 2.6s var(--ease) both; }
.pg-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,9,35,.82) 0%, rgba(2,9,35,.55) 34%, rgba(2,9,35,0) 62%), linear-gradient(180deg, rgba(2,9,35,.35) 0%, rgba(2,9,35,0) 22%, rgba(2,9,35,0) 64%, var(--navy) 100%); }
@keyframes pgBg { from { transform: scale(1.08); opacity: 0; } }
.has-bg .hero-in { position: relative; z-index: 1; }
.pg-acc .pg-bg img { filter: hue-rotate(28deg) saturate(1.05); }
@media (max-width: 900px) {
  .pg-bg img { width: 100%; object-position: 58% 20%; }
  .pg-bg::after { background: linear-gradient(180deg, rgba(2,9,35,.25) 0%, rgba(2,9,35,.55) 45%, rgba(2,9,35,.85) 75%, var(--navy) 100%); }
}
@media (prefers-reduced-motion: reduce) { .pg-bg img { animation: none; } }
.mkt-wrap .head.c { margin-bottom: 34px; }

/* ---------- about: hero mark ---------- */
.mark { --dx: 0; --dy: 0; position: relative; height: clamp(420px, 36vw, 520px); }
.mark-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.mark-rings i { position: absolute; width: calc(var(--s) * 1%); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(142,209,252,.2); }
.mark-rings i:nth-child(1) { --s: 46; box-shadow: inset 0 0 0 1px rgba(255,220,150,.3), 0 0 120px rgba(255,190,70,.22); }
.mark-rings i:nth-child(2) { --s: 72; border: 1px dashed rgba(142,209,252,.24); box-shadow: none; animation: orbit 60s linear infinite; }
.mark-rings i:nth-child(3) { --s: 98; box-shadow: inset 0 0 0 1px rgba(142,209,252,.12); }
.mark-rings i:nth-child(2)::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--lgreen); box-shadow: 0 0 14px var(--green); }
.mark-coin { position: absolute; left: 50%; top: 50%; --cs: clamp(150px, 13vw, 190px); translate: -50% -50%; background: radial-gradient(closest-side, rgba(255,190,70,.45), rgba(255,190,70,0)); border-radius: 50%; }
.mark-coin::before { box-shadow: inset 0 0 0 1px rgba(255,220,150,.42); }
.mark-coin::after { border-color: rgba(255,220,150,.5); }
.mk { position: absolute; margin: 0; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 30px 50px -22px rgba(1,6,26,.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); will-change: transform;
  transform: perspective(1200px) rotate(var(--rz, 0deg)) translate3d(calc(var(--dx) * var(--dz) * 1px), calc(var(--dy) * var(--dz) * 1px), 0); animation: drift var(--dt, 8s) ease-in-out infinite alternate; }
.mk img { width: 100%; height: auto; border-radius: 11px; cursor: zoom-in; }
.mk-1 { --rz: -6deg; --dt: 7s; left: 0; top: 4%; width: 34%; }
.mk-2 { --rz: 5deg; --dt: 9s; right: 2%; top: 0; width: 30%; }
.mk-3 { --rz: 4deg; --dt: 8s; left: 6%; bottom: 0; width: 30%; }
.mk-4 { --rz: -5deg; --dt: 10s; right: 0; bottom: 6%; width: 36%; }

/* ---------- about: a legacy built together ---------- */
.lg { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.lg-copy .lead { margin-top: 16px; }
.lg-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lg-fig:first-child { grid-column: span 2; }
.d .pan .lg-fig.stc { background: radial-gradient(120% 120% at 0% 0%, rgba(var(--c),.6), rgba(var(--c),0) 62%), linear-gradient(150deg, rgba(var(--c),.34), rgba(var(--c2),.6)); }
.lg-fig .crowd { grid-template-columns: repeat(32, 1fr); gap: 5px; }
.lg-fig b { font-size: clamp(34px, 3.2vw, 48px); }
.paths { width: 100%; height: 86px; margin-bottom: 14px; overflow: visible; }
.paths path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.globe { width: 86px; height: 86px; margin-bottom: 14px; }
.globe canvas { width: 100%; height: 100%; }

/* ---------- about: grew together, a living web of traders (canvas in js/pg-about.js) ---------- */
.pan.tg { --c: 70,120,255; --c2: 28,40,150; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.tg .h2 em { display: block; }
.pan.tg .tg-copy { max-width: none; margin: 0; text-align: left; }
.tg-copy .lead { margin-top: 16px; }
.tg-net { position: relative; aspect-ratio: 1 / .86; padding: 0; overflow: hidden; border-radius: 22px; background: radial-gradient(60% 60% at 50% 50%, rgba(120,170,255,.22), rgba(120,170,255,0) 70%), rgba(6,14,52,.42); }
.tg-net canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .pan.tg { grid-template-columns: 1fr; row-gap: 28px; } .tg-net { aspect-ratio: 1 / .8; } }

/* ---------- about: grew together, the wall of posts (each post whole) ---------- */
.tg-copy { max-width: 760px; margin: -14px auto 0; text-align: center; }
.tg-copy .lead + .lead { margin-top: 10px; }
.wall { display: grid; gap: 14px; margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wall-row { display: flex; align-items: center; width: max-content; animation: marq var(--wt, 70s) linear infinite; }
.wall-row.rev { animation-direction: reverse; --wt: 80s; }
.wall:hover .wall-row { animation-play-state: paused; }
.wall-row figure { flex: none; margin: 0 14px 0 0; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: translate .35s var(--ease), background .3s; }
.wall-row figure:hover { translate: 0 -6px; background: rgba(255,255,255,.16); }
.wall-row img { height: 230px; width: auto; border-radius: 10px; cursor: zoom-in; }

/* ---------- about: the line ---------- */
.quote { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(28px, 5vw, 80px); padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.q-coin { --cs: clamp(150px, 15vw, 210px); margin-left: clamp(0px, 3vw, 40px); background: radial-gradient(closest-side, rgba(var(--gold),.5), rgba(var(--gold),0)); border-radius: 50%; }
.q-coin::before { box-shadow: inset 0 0 0 1px rgba(255,220,150,.42); }
.q-coin::after { border-color: rgba(255,220,150,.5); }
.q-lines { display: grid; gap: 6px; }
.q-l { --on: 0; display: block; font-size: clamp(26px, 3.3vw, 48px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; color: rgba(255,255,255, calc(.22 + var(--on) * .78)); transform: translateX(calc((1 - var(--on)) * 18px)); }
.q-cy, .q-au { -webkit-background-clip: text; background-clip: text; color: transparent; opacity: calc(.22 + var(--on) * .78); }
.q-cy { background-image: linear-gradient(90deg, #fff, var(--lcyan)); }
.q-au { background-image: linear-gradient(90deg, #ffe7a8, #ffbe46); filter: drop-shadow(0 0 calc(var(--on) * 24px) rgba(255,190,70,.5)); }

/* ---------- about: experience moves us forward ---------- */
.xp { overflow: hidden; }
/* the staircase keeps to the top block, so it never runs under the two program bars */
.xp-top { position: relative; }
.xp-top > .art { top: calc(clamp(36px, 4.6vw, 60px) * -1); right: calc(var(--px) * -1); height: calc(100% + clamp(36px, 4.6vw, 60px) + 24px); border-radius: 0; }
.xp-art { --al: 40%; --aw: 60%; --ap: 100% 100%; --ao: .85; --am: linear-gradient(90deg, transparent 0%, #000 40%); }
.xp-top > .xp-art { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 80%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 80%, transparent); mask-composite: intersect; }
.xp-copy { max-width: 560px; }
.xp-copy .lead { margin-top: 16px; }
.xp-progs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.d .pan .xp-prog { margin: 0; padding: 18px 20px; background: linear-gradient(120deg, rgba(var(--g),.42), rgba(var(--g),.1)); }
.xp-prog .cta-id p { color: var(--text); }

/* ---------- about + team: the line-up ---------- */
.lineup { display: flex; gap: 12px; height: clamp(380px, 34vw, 470px); }
.lu { --c: 0,168,232; position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 22px; transition: flex-grow .7s var(--ease), box-shadow .4s;
  background: radial-gradient(90% 60% at 50% 100%, rgba(var(--c),.55), rgba(var(--c),0) 70%), linear-gradient(180deg, rgba(255,255,255,.1), rgba(10,24,70,.5));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.3); }
.lu.on { flex-grow: 3.2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.5), 0 30px 60px -30px rgba(var(--c),.9); }
.lu img { position: absolute; left: 50%; bottom: 0; height: 88%; width: auto; max-width: none; translate: -50% 0; filter: saturate(.7) brightness(.8); transition: filter .5s, height .7s var(--ease); }
.lu.on img { filter: none; height: 94%; }
.lu-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(180deg, transparent, rgba(2,9,35,.85)); opacity: 0; translate: 0 10px; transition: opacity .4s, translate .5s var(--ease); }
.lu.on .lu-info { opacity: 1; translate: 0 0; transition-delay: .15s; }
.lu-info b, .lu-info small { display: block; white-space: nowrap; }
.lu-info b { font-size: 20px; font-weight: 500; }
.lu-info small { font-size: 14px; color: rgb(var(--c)); filter: brightness(1.5); }
.pp-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 34px; text-align: center; }

/* ---------- about: what's next ---------- */
.nx .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.nx .lead + .lead { margin-top: 10px; }
.nx-sign { margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.nx-sign b { font-weight: 600; }
.nx-sign em { color: var(--lgreen); }
.nx .ctas { justify-content: center; margin-top: 30px; }

@media (max-width: 1080px) {
  .lg { grid-template-columns: 1fr; row-gap: 30px; }
  .xp-art { --al: 0%; --aw: 100%; --ao: .45; --am: linear-gradient(180deg, transparent 30%, #000 90%); }
}
@media (max-width: 900px) {
  .mark { height: 420px; margin-top: 30px; }
  .quote { grid-template-columns: 1fr; justify-items: center; row-gap: 26px; text-align: center; }
  .q-coin { margin: 0; }
  .q-l { transform: none; }
}
@media (max-width: 760px) {
  .mark { height: 360px; }
  .lg-figs { grid-template-columns: 1fr; }
  .lg-fig:first-child { grid-column: auto; }
  .lg-fig .crowd { grid-template-columns: repeat(20, 1fr); }
  .xp-progs { grid-template-columns: 1fr; }
  .wall-row img { height: 180px; }
  .lineup { height: 420px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .lineup::-webkit-scrollbar { display: none; }
  .lu, .lu.on { flex: 0 0 72vw; scroll-snap-align: center; }
  .lu img, .lu.on img { height: 92%; filter: none; }
  .lu .lu-info { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mk, .mark-rings i, .wall-row { animation: none; }
  .wall { overflow-x: auto; }
  .q-l { --on: 1; }
}

/* Program Overview: the YouTube video in a glass frame; a cover + play button until it is pressed */
.yt-sec .head { margin-bottom: clamp(24px, 3vw, 40px); }
.yt { width: min(1040px, 100%); margin: 0 auto; padding: clamp(8px, 1vw, 12px); border-radius: clamp(20px, 2.4vw, 32px); }
.yt-cover, .yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: clamp(14px, 1.8vw, 24px); overflow: hidden; }
.yt-cover { position: relative; padding: 0; cursor: pointer; background: #020c2c; }
.yt-cover img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease), filter .5s; }
.yt-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(2,12,44,0), rgba(2,12,44,.45)); pointer-events: none; }
.yt-play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, rgba(166,236,99,.95), rgba(76,175,40,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 10px rgba(166,236,99,.16), 0 18px 40px -12px rgba(76,175,40,.9);
  transition: scale .35s var(--ease), box-shadow .35s; }
.yt-play svg { width: 38%; height: 38%; margin-left: 6%; fill: #04260a; }
.yt-cover:hover img { scale: 1.03; }
.yt-cover:hover .yt-play, .yt-cover:focus-visible .yt-play { scale: 1.08; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 16px rgba(166,236,99,.2), 0 18px 40px -12px rgba(76,175,40,.9); }
.yt-cover:focus-visible { outline: 2px solid var(--lcyan); outline-offset: 4px; }
