body.rps-legacy {
  background: radial-gradient(circle at 76% 12%, #10243d 0, transparent 34%), linear-gradient(145deg, var(--bg), #02050b 72%);
}

.hero {
  min-height: 100vh;
  padding: 145px 5vw 60px;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: linear-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .15) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
  pointer-events: none;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #aab8c8;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 7vw, 106px);
  line-height: .88;
  font-weight: 400;
  letter-spacing: -.045em;
  margin: 0 0 30px;
}

.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 34px;
}

.btn {
  background: #eef1f3;
  color: #07101c;
  border-radius: 30px;
  padding: 15px 23px;
  font-size: 11px;
  letter-spacing: .13em;
}

.secondary {
  color: #d5dbe4;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legacy-visual {
  height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 1400px;
}

.legacy-framework {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 720px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(.18, .72, .2, 1);
}

.framework-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.framework-lines line {
  stroke: rgba(155, 190, 218, .28);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transition: stroke .8s ease, stroke-width .8s ease, opacity .8s ease;
}

.framework-lines line.active {
  stroke: rgba(220, 234, 245, .78);
  stroke-width: 1.8;
}

.framework-lines circle {
  fill: rgba(197, 220, 239, .72);
  filter: drop-shadow(0 0 5px rgba(144, 190, 224, .25));
}

.framework-orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(148, 183, 211, .13);
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 0;
}

.orbit-a { width: 88%; height: 42%; transform: translate(-50%, -50%) rotate(-10deg) rotateX(65deg); }
.orbit-b { width: 76%; height: 68%; transform: translate(-50%, -50%) rotate(32deg) rotateY(66deg); }
.orbit-c { width: 62%; height: 82%; transform: translate(-50%, -50%) rotate(-30deg) rotateY(64deg); }

.legacy-bubble {
  position: absolute;
  z-index: 3;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(188, 214, 235, .32);
  background: radial-gradient(circle at 35% 28%, rgba(151, 187, 215, .19), rgba(7, 16, 29, .88) 62%, rgba(3, 8, 16, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 35px rgba(0, 0, 0, .28), 0 0 0 rgba(113, 167, 211, 0);
  color: #edf2f6;
  font: 500 10px/1.35 'DM Sans', sans-serif;
  letter-spacing: .15em;
  text-align: center;
  padding: 20px 12px;
  cursor: pointer;
  transform: translate(-50%, -50%) translate3d(0, 0, 0);
  transition: transform 1.15s cubic-bezier(.18, .72, .2, 1), box-shadow .9s ease, border-color .9s ease, background .9s ease;
  transform-style: preserve-3d;
}

.legacy-bubble::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}

.legacy-bubble span {
  display: block;
  margin-top: 8px;
  font-size: 7px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: #8e9eaf;
  text-transform: none;
}

.bubble-grandchildren,
.bubble-church {
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.2;
  padding-left: 9px;
  padding-right: 9px;
}

.bubble-generational {
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.2;
}

.bubble-grandchildren span,
.bubble-church span,
.bubble-generational span {
  font-size: 6.7px;
  letter-spacing: .04em;
}

.legacy-bubble:hover,
.legacy-bubble:focus-visible {
  border-color: rgba(221, 236, 247, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 24px 55px rgba(0, 0, 0, .42), 0 0 32px rgba(116, 170, 214, .17);
  background: radial-gradient(circle at 35% 28%, #374757, #07101d 62%, #030810);
  outline: none;
}

.legacy-bubble:hover {
  transform: translate(-50%, -50%) translate3d(0, -12px, 30px) scale(1.08);
}

.legacy-bubble:focus-visible {
  outline: 1px solid rgba(221, 236, 247, .7);
  outline-offset: 5px;
}

.bubble-legacy {
  left: 50%;
  top: 48%;
  width: 150px;
  height: 150px;
  font-size: 13px;
  letter-spacing: .25em;
  border-color: rgba(207, 224, 238, .48);
  background: radial-gradient(circle at 36% 27%, rgba(183, 213, 235, .22), rgba(7, 16, 29, .9) 62%, rgba(3, 8, 16, .99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 25px 60px rgba(0, 0, 0, .36), 0 0 34px rgba(107, 160, 204, .08);
}

.bubble-legacy span { font-size: 8px; letter-spacing: .16em; }
.bubble-generational { left: 50%; top: 10%; width: 128px; height: 128px; }
.bubble-children { left: 22%; top: 25%; }
.bubble-grandchildren { left: 14%; top: 51%; }
.bubble-charity { left: 25%; top: 78%; }
.bubble-church { left: 50%; top: 88%; }
.bubble-community { left: 77%; top: 76%; }
.bubble-friends { left: 87%; top: 50%; }
.bubble-stewardship { left: 79%; top: 24%; }
.bubble-protection { left: 67%; top: 7%; }
.bubble-tax { left: 33%; top: 8%; }

.legacy-bubble.active {
  transform: translate(-50%, -50%) translate3d(0, -14px, 38px) scale(1.09);
  border-color: rgba(221, 236, 247, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 26px 58px rgba(0, 0, 0, .44), 0 0 34px rgba(116, 170, 214, .18);
  background: radial-gradient(circle at 35% 28%, #374757, #07101d 62%, #030810);
}

.featurebar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  padding: 25px 20px;
  min-height: 105px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.feature:last-child { border-right: 0; }

.feature b {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 500;
}

.feature span {
  font-size: 11px;
  color: #7f8a9a;
}

.section {
  padding: 150px 10vw;
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 8vw;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(45px, 5vw, 80px);
  line-height: .98;
  margin: 20px 0;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 650px;
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 230px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  transition: .35s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 205, 230, .38);
}

.num {
  font-size: 10px;
  letter-spacing: .2em;
  color: #8190a2;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 35px 0 13px;
}

.card p { font-size: 13px; margin: 0; }

.statement {
  padding: 140px 10vw;
  background: radial-gradient(circle at 50% 50%, rgba(77, 121, 165, .12), transparent 45%);
  text-align: center;
}

.statement .eyebrow { margin-bottom: 15px; }

.statement h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  max-width: 1050px;
  margin: 0 auto;
  line-height: .96;
}

.architecture {
  padding: 145px 7vw;
  border-top: 1px solid var(--line);
}

.arch-head {
  max-width: 780px;
  margin: 0 auto 65px;
  text-align: center;
}

.arch-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 400;
  line-height: .98;
  margin: 15px 0 22px;
}

.arch-head p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.legacy-flow {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: stretch;
}

.flow-box {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  padding: 36px;
}

.flow-box .label {
  font-size: 10px;
  letter-spacing: .2em;
  color: #8290a2;
}

.flow-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 35px;
  font-weight: 400;
  margin: 18px 0 12px;
}

.flow-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.flow-arrow {
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #aebed1;
}

.flow-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 11px;
  letter-spacing: .08em;
  color: #bfc9d5;
  text-transform: uppercase;
}

.flow-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }

.path {
  padding: 145px 7vw;
  background: radial-gradient(circle at 28% 45%, rgba(75, 117, 160, .10), transparent 40%);
}

.path-wrap { max-width: 1160px; margin: 0 auto; }

.path-head {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 45px;
}

.path-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(45px, 5vw, 75px);
  font-weight: 400;
  line-height: .98;
  margin: 10px 0 0;
  max-width: 700px;
}

.path-head p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.path-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.path-tab {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #9ca8b8;
  padding: 13px 16px;
  font: inherit;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
}

.path-tab.active,
.path-tab:hover {
  background: rgba(255, 255, 255, .06);
  color: #f4f6f8;
  border-color: rgba(180, 205, 230, .38);
}

.path-detail {
  border: 1px solid var(--line);
  min-height: 270px;
  padding: 38px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  display: grid;
  grid-template-columns: 36% 64%;
  gap: 50px;
}

.path-detail h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 14px;
}

.path-detail .lead {
  color: #aab5c4;
  font-size: 14px;
  line-height: 1.75;
}

.path-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.path-point {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c1cad5;
}

.path-point span {
  display: block;
  color: #7e8b9b;
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 8px;
  text-transform: none;
  line-height: 1.55;
}

.advisor {
  padding: 145px 10vw;
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 8vw;
  border-top: 1px solid var(--line);
}

.advisor h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(48px, 5vw, 78px);
  line-height: .95;
  margin: 15px 0 24px;
}

.advisor > div > p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 650px;
}

.advisor-panel {
  border: 1px solid var(--line);
  padding: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}

.mini {
  font-size: 10px;
  letter-spacing: .2em;
  color: #8190a2;
}

.advisor-panel h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 31px;
  margin: 28px 0;
}

.advisor-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.advisor-panel li {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 14px 0;
  color: #aab5c4;
  font-size: 12px;
  line-height: 1.55;
}

.advisor-panel li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }

.advisor-panel a {
  font-size: 10px;
  letter-spacing: .15em;
  color: #e9edf1;
}

.disclaimer {
  padding: 45px 10vw;
  border-top: 1px solid var(--line);
  color: #667487;
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  body.rps-legacy .links { gap: 15px; }
  .section,
  .advisor { grid-template-columns: 1fr; gap: 50px; }
  .legacy-flow { grid-template-columns: 1fr; gap: 15px; }
  .flow-arrow { height: 45px; }
  .path-head { display: block; }
  .path-head p { margin-top: 25px; }
  .path-detail { grid-template-columns: 1fr; }
  .featurebar { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(3),
  .feature:nth-child(4),
  .feature:nth-child(5) { border-top: 1px solid var(--line); }
  .feature:nth-child(5) { grid-column: span 2; }
  .legacy-framework { max-width: 660px; }
  .legacy-bubble { width: 96px; height: 96px; padding: 16px 8px; font-size: 8px; }
  .legacy-bubble span { font-size: 6px; }
  .bubble-legacy { width: 130px; height: 130px; font-size: 11px; }
  .bubble-generational { width: 112px; height: 112px; }
}

@media (max-width: 900px) {
  body.rps-legacy.rps-nav-compact .nav {
    height: 112px;
    padding: 0 5vw;
  }
  body.rps-legacy.rps-nav-compact .brand img { height: 88px; }
  body.rps-legacy.rps-nav-compact .links { display: flex; }
}

@media (max-width: 700px) {
  body.rps-legacy.rps-nav-compact .nav { height: 82px; padding: 0 5vw; }
  body.rps-legacy.rps-nav-compact .brand img { height: 65px; }
  body.rps-legacy.rps-nav-compact .links { display: none; }
  body.rps-legacy .talk { padding: 10px 14px; }
  .hero { padding: 110px 6vw 35px; }
  .hero h1 { font-size: clamp(50px, 15vw, 75px); }
  .hero p { font-size: 15px; }
  .legacy-visual { height: 500px; margin-top: 10px; }
  .legacy-framework { width: 110%; max-width: none; transform: scale(.92); }
  .legacy-bubble {
    width: 78px;
    height: 78px;
    padding: 13px 6px;
    font-size: 6px;
    letter-spacing: .12em;
  }
  .legacy-bubble span { font-size: 5px; margin-top: 5px; }
  .bubble-legacy { width: 105px; height: 105px; font-size: 9px; }
  .bubble-generational { width: 90px; height: 90px; }
  .featurebar { margin: 0 6vw; grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-top: 1px solid var(--line) !important; }
  .feature:first-child { border-top: 0 !important; }
  .feature:nth-child(5) { grid-column: auto; }
  .section,
  .advisor,
  .architecture,
  .path { padding: 95px 7vw; }
  .cards,
  .path-points { grid-template-columns: 1fr; }
  .path-detail { padding: 27px; }
  .statement { padding: 100px 7vw; }
  .statement h2 { font-size: clamp(43px, 12vw, 70px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .legacy-framework,
  .legacy-bubble { transition: none; }
  .framework-lines line { transition: none; }
}
