/* Profit System page. Scroll sequence on top of the homepage theme. */

.ps-stage { background: #FAFBFD; }
.ps-copy {
  position: absolute; z-index: 20;
  left: var(--sc-gutter); top: 50%; translate: 0 -50%;
  width: min(28rem, 34vw);
}
.ps-copy h1, .ps-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.8rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.034em;
  text-wrap: balance;
}
.ps-copy p { margin: 1.1rem 0 0; font-size: 1.2rem; line-height: 1.45; color: var(--sc-ink-soft); max-width: 34ch; }
.ps-kicker {
  margin: 0 0 0.7rem; font-family: var(--sc-font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--usafa);
}

/* ------------------------------------------------ hero ------------ */
/* Same navy ground and light as the home hero, so every page opens the same way. */
.ps-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(8rem, 17vh, 11.5rem) 0 clamp(4.5rem, 10vh, 7.5rem);
  background:
    radial-gradient(56vmax 46vmax at 92% 12%, rgb(34 145 235 / 0.34), transparent 62%),
    radial-gradient(40vmax 34vmax at 0% 100%, rgb(28 160 194 / 0.2), transparent 66%),
    linear-gradient(160deg, #051E36 0%, #07294B 48%, #0B3F74 100%);
}
.ps-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.ps-hero h1 {
  margin: 0; font-size: clamp(2.6rem, 1.3rem + 3.4vw, 4.8rem); color: #fff;
  font-weight: 650; line-height: 1; letter-spacing: -0.04em; text-wrap: balance;
}
.ps-hero__sub { margin: 1.5rem 0 0; font-size: var(--sc-t-lg); line-height: 1.5; color: #C6D8EA; max-width: 40ch; text-wrap: pretty; }
.ps-hero__actions { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.ps-hero .link--light { font-size: 1.08rem; }
.ps-hero__copy > *, .ps-map { animation: hero-rise 900ms var(--sc-ease-out) both; }
.ps-hero__sub { animation-delay: 90ms; }
.ps-hero__actions { animation-delay: 180ms; }
.ps-map { animation-delay: 280ms; }
.ps-map {
  --sc-ink: #0A1B2B; --sc-ink-soft: #4A5F73;
  display: grid; background: #fff; color: var(--sc-ink); border-radius: 22px;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.5), var(--sc-edge); overflow: hidden;
}
.ps-map a {
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: center; gap: 1rem;
  padding: 1rem 1.4rem; color: var(--sc-ink); text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background 180ms var(--sc-ease-out);
}
.ps-map a:first-child { border-top: 0; }
.ps-map a:hover { background: color-mix(in srgb, var(--c) 7%, #fff); }
.ps-map b {
  font-family: var(--sc-font-mono); font-weight: 500; font-size: 2.1rem; line-height: 1;
  letter-spacing: -0.04em; color: var(--c); font-variant-numeric: tabular-nums;
}
.ps-map span { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.012em; }
.ps-map small { display: block; margin-top: 0.15rem; font-size: 0.95rem; font-weight: 400; color: var(--sc-ink-soft); }
.ps-swap { position: relative; margin-top: 1.1rem; min-height: 9rem; }
.ps-swap p { position: absolute; inset: 0 auto auto 0; margin: 0 !important; }

/* ------------------------------------------------ levels ---------- */
.levels-stage { display: grid; place-items: center; }
.rise {
  position: absolute; right: var(--sc-gutter); top: 50%; translate: 0 -46%;
  width: min(46rem, 52vw);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end; gap: 0.7rem; height: min(28rem, 62vh);
}
.rise__col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.rise__bar {
  height: max(7.6rem, calc(var(--h) * var(--grow, 0.35)));
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.85rem 0.7rem 1rem; color: #fff; overflow: hidden;
}
.rise__col:nth-child(3) .rise__bar { color: #3A2E04; }
.rise__lvl { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.rise__name { margin: 0.25rem 0 0; font-size: clamp(1rem, 0.7rem + 0.7vw, 1.35rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.rise__line { margin: 0.4rem 0 0; font-size: 0.82rem; line-height: 1.35; opacity: 0.92; }

/* ------------------------------------------------ pillars --------- */
.triad-stage { background:
  radial-gradient(40vmax 32vmax at 68% 48%, rgb(34 145 235 / 0.14), transparent 70%),
  #FAFBFD; }
.triad {
  position: absolute; right: 4vw; top: 50%; translate: 0 -50%;
  width: min(40rem, 48vw); aspect-ratio: 1;
}
.hex {
  position: absolute; display: grid; place-items: center; text-align: center;
  width: 34%; aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--c); color: #fff;
  padding: 18% 12% 12%;
  will-change: transform, opacity;
}
.hex strong { display: block; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hex span { display: block; margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.3; color: rgb(255 255 255 / 0.88); }
.hex--vision { left: 33%; top: 8%; --c: #0B5191; }
.hex--value { left: 8%; top: 46%; --c: #1CA0C2; }
.hex--velocity { left: 58%; top: 46%; --c: #42A1EE; color: #06243F; }
.hex--velocity span { color: rgb(6 36 63 / 0.75); }
.hex svg { width: 1.6rem; height: 1.6rem; margin-bottom: 0.2rem; }
.gap-ring {
  position: absolute; left: 58%; top: 46%; width: 34%; aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: inset 0 0 0 3px #42A1EE;
  opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgb(66 161 238 / 0.16) 0 8px, transparent 8px 16px);
}
.steps {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem;
  align-content: center; opacity: 0; pointer-events: none;
}
.stepcol { display: grid; gap: 0.45rem; }
.stepcol header {
  font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c); padding-bottom: 0.2rem;
}
.stepcard {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.65rem 0.7rem; display: flex; gap: 0.55rem; align-items: center;
  box-shadow: var(--sc-e1);
}
.stepcard b {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 7px;
  display: grid; place-items: center; background: var(--c); color: #fff;
  font-family: var(--sc-font-mono); font-size: 0.8rem;
}
.stepcard span { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.ownbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem; border-radius: 12px;
  background: linear-gradient(100deg, #0B5191, #1A8FD4 70%, #74D0ED);
  color: #fff; opacity: 0;
}
.ownbar b { font-family: var(--sc-font-mono); }
.ownbar span { font-size: 0.9rem; color: #E7F4FC; }

/* ------------------------------------------------ boss ------------ */
.boss-stage { background: var(--navy); color: #fff; }
.boss-stage .ps-copy p { color: var(--soft-dark); }
.boss-stage .ps-kicker { color: var(--sky); }
.wheel {
  position: absolute; right: 8vw; top: 50%; translate: 0 -50%;
  width: min(26rem, 38vw); aspect-ratio: 1;
}
.wheel svg { width: 100%; height: 100%; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.35)); }
.four {
  margin: 1.3rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem;
}
.four li { font-size: 1.05rem; color: #D5E6F5; }
.four b { color: #fff; font-weight: 600; }

/* ------------------------------------------------ books ----------- */
.ps-books { background: #F3F7FB; padding-block: var(--sc-section); }
.ps-books__head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ps-books__lede { margin: 1.25rem 0 0; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 48ch; text-wrap: pretty; }

/* ------------------------------------------------ downloads ------- */
.frameworks--strip { padding-block: clamp(4rem, 8vw, 7rem); }
.fw__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.fw__grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }


@media (max-width: 860px) {
  .ps-hero { padding-top: 6.5rem; }
  .ps-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ps-hero h1 { font-size: 2.4rem; }
  .ps-map a { padding: 0.85rem 1rem; grid-template-columns: 3.4rem minmax(0, 1fr); }
  .ps-map b { font-size: 1.7rem; }
  .ps-swap { min-height: 7rem; }
  .ps-copy { top: auto; bottom: 1.2rem; translate: none; width: auto; right: var(--sc-gutter); }
  .ps-copy h1, .ps-copy h2 { font-size: 1.85rem; }
  .ps-copy p { font-size: 1rem; }
  .rise { right: var(--sc-gutter); left: var(--sc-gutter); top: 5.5rem; translate: none; width: auto; height: 38vh; }
  .rise__line { display: none; }
  .triad { left: var(--sc-gutter); right: var(--sc-gutter); top: 5.2rem; translate: none; width: auto; }
  .wheel { left: var(--sc-gutter); top: 5.2rem; translate: none; width: 13rem; }
  .fw__grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw__grid--row .sheet:first-child { grid-column: 1 / -1; }
  .hex strong { font-size: 0.7rem; }
  .hex span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise__bar { height: var(--h); }
  .hex, .steps, .ownbar, .gap-ring { transition: none; }
}
