.hero-brand,
.leadership-logo {
  display: flex;
  justify-content: center;
}

html,
body {
  overflow-x: hidden;
}

.statement > .eyebrow,
.principles .section-heading > .eyebrow,
.strategy .section-heading > .eyebrow,
.process .section-heading > .eyebrow,
.projection-copy > .eyebrow,
.scenario-allocation .allocation-copy > .eyebrow,
.services .section-heading > .eyebrow,
.trust-copy > .eyebrow,
.portfolio-entry-copy > .eyebrow,
.leadership-copy > .eyebrow,
.contact-copy > .eyebrow {
  margin-bottom: 24px;
  font-size: clamp(.88rem, 1.1vw, 1rem);
  letter-spacing: .19em;
}

.controls {
  position: relative;
}

.controls input[type="range"] {
  cursor: grab;
}

.controls input[type="range"]:active {
  cursor: grabbing;
}

.slider-guide {
  position: relative;
  width: min(72%, 360px);
  height: 42px;
  margin: -12px auto -2px;
  color: var(--gold2);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.slider-guide span {
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 1.65rem;
  filter: grayscale(1) sepia(.45);
  animation: slider-hand 6.5s cubic-bezier(.45, 0, .2, 1) infinite;
}

.slider-guide b {
  position: absolute;
  inset: auto 0 0;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.controls.user-controlled .slider-guide {
  opacity: 0;
  transform: translateY(-6px);
}

@keyframes slider-hand {
  0%, 12% { transform: translateX(0) rotate(-8deg); }
  50% { transform: translateX(calc(min(72vw, 330px) - 34px)) rotate(7deg); }
  88%, 100% { transform: translateX(0) rotate(-8deg); }
}

.scenario-allocation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  align-items: center;
  margin-top: 20px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.scenario-allocation .allocation-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.allocation-private {
  display: grid;
  gap: 4px;
  margin-top: 34px;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,.035);
}

.allocation-private strong {
  color: var(--gold2);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.allocation-private span {
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scenario-allocation .allocation-table > div {
  grid-template-columns: 9px 1fr auto 62px;
}

.scenario-allocation .allocation-table strong {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scenario-allocation .allocation-table em {
  color: #6f7b82;
  font-size: .72rem;
}

.billing > span {
  display: grid;
  gap: 2px;
}

.billing b {
  font-size: .92rem;
}

.billing small {
  color: #7d6640;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.featured .billing small {
  color: var(--gold2);
}

.hero-brand img,
.leadership-logo img {
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: circle(48.5% at 50% 50%);
}

.hero-brand img {
  width: min(92%, 610px);
  max-width: none;
}

.leadership-logo img {
  width: min(100%, 560px);
}

.asset-icon {
  width: 58px;
  height: 58px;
  justify-self: end;
  color: #9b772d;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-icon text {
  fill: currentColor;
  stroke: none;
  font: 700 10px "DM Sans", sans-serif;
  text-anchor: middle;
}

.asset-icon-coins text {
  font-size: 16px;
}

.market-disclosure {
  max-width: 860px;
  margin: 20px 0 0 100px;
  color: #687277;
  font-size: .7rem;
  line-height: 1.55;
}

.market-explorer {
  margin: 72px 0 0 100px;
  padding: 30px;
  border: 1px solid #cfc6b2;
  background: rgba(255,255,255,.52);
}

.market-explorer-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 24px;
}

.market-explorer-heading .eyebrow {
  margin-bottom: 10px;
}

.market-explorer-heading h3 {
  margin: 0;
  max-width: 650px;
  font: 600 clamp(1.7rem, 3vw, 2.7rem)/1.1 "Playfair Display", serif;
}

.market-explorer-heading > p {
  margin: 0;
  color: #5c666b;
  font-size: .9rem;
}

.market-chart {
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(155,119,45,.2);
  background: white;
}

.market-chart > .tradingview-widget-container {
  width: 100%;
  height: 100%;
}

.market-chart .tradingview-widget-container__widget {
  width: 100%;
  height: calc(100% - 32px);
}

.client-trust {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 90px;
  align-items: center;
  padding: 115px max(28px, calc((100vw - var(--max)) / 2));
}

.trust-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,170,76,.12), transparent 65%);
}

.trust-mark span {
  font: 700 clamp(4rem, 8vw, 7rem) "Playfair Display", serif;
  color: var(--gold2);
  line-height: .8;
}

.trust-mark small {
  margin-top: -35%;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.trust-copy p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.client-login {
  color: var(--gold2);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-entry {
  padding: 130px max(28px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
  overflow: hidden;
}

.portfolio-entry-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.portfolio-entry-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 36px 0 24px;
}

.portfolio-free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--gold2);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.portfolio-free span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.portfolio-entry-copy > small {
  color: #6f7b82;
  font-size: .7rem;
}

.portfolio-entry-preview {
  min-height: 480px;
  background: #f5f3fb;
  color: #0a151b;
  border: 1px solid var(--line);
  box-shadow: 0 35px 100px rgba(0,0,0,.45);
  transform: rotate(1.5deg);
}

.portfolio-entry-preview.visible {
  transform: rotate(1.5deg);
}

.preview-bar {
  height: 62px;
  background: #06151c;
  color: var(--gold2);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
}

.preview-bar span {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin-right: auto;
}

.preview-bar span small { font: 600 .48rem/1 sans-serif; letter-spacing: .16em; margin-left: 8px; color: #f4f1e9; opacity: .7; }
.preview-bar b { color: #aeb4c4; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; margin-right: 10px; }

.preview-dashboard { padding: 28px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.preview-welcome { grid-column: 1 / -1; }
.preview-welcome span { color: #6552c9; font-size: .53rem; font-weight: 800; letter-spacing: .17em; }
.preview-welcome h3 { font-family: "Playfair Display",serif; font-size: 1.9rem; margin: 5px 0 2px; }
.preview-welcome p { margin: 0; color: #77808b; font-size: .68rem; }
.preview-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; }
.preview-stats article,.preview-chart-card,.preview-allocation { background: rgba(255,255,255,.88); border: 1px solid #e2def0; border-radius: 12px; box-shadow: 0 12px 28px rgba(30,24,75,.08); }
.preview-stats article { padding: 13px 15px; display: grid; gap: 3px; }
.preview-stats article:first-child { color: white; background: linear-gradient(135deg,#171745,#423183); }
.preview-stats small { color: inherit; opacity: .62; font-size: .54rem; text-transform: uppercase; letter-spacing: .08em; }
.preview-stats strong { font: 600 1.25rem/1.15 sans-serif; }
.preview-stats em { color: #37bc83; font: 700 .56rem/1 sans-serif; }
.preview-chart-card { padding: 13px 14px 10px; }
.preview-chart-card header { display: flex; justify-content: space-between; font: 700 .65rem sans-serif; }
.preview-chart-card header b { color: #6b5ee7; }
.preview-chart-card svg { width: 100%; margin-top: 7px; overflow: visible; }
.preview-area { fill: url(#landingChartFill); }
.preview-line { fill: none; stroke: #28bd83; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.preview-chart-card circle { fill: #28bd83; }
.preview-chart-card footer { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #747b88; font-size: .51rem; background:transparent; padding:0; border:0; }
.preview-chart-card footer span:before { content:""; display:inline-block; width:5px; height:5px; margin-right:4px; border-radius:50%; background:#6b5ee7; }
.preview-allocation { padding: 12px; display: grid; align-content: center; justify-items: center; }
.preview-donut { width: 96px; aspect-ratio:1; border-radius:50%; background:conic-gradient(#6b5ee7 0 42%,#39b9da 42% 70%,#fd668e 70% 86%,#e2b957 86%); display:grid; place-items:center; }
.preview-donut:before { content:""; position:absolute; }
.preview-donut span { width: 58px; aspect-ratio:1; border-radius:50%; background:white; display:grid; place-content:center; text-align:center; }
.preview-donut b { font: 700 1rem sans-serif; }
.preview-donut small { color:#858a96; font-size:.48rem; }
.preview-allocation ul { list-style:none; width:100%; padding:0; margin:10px 0 0; display:grid; gap:5px; }
.preview-allocation li { display:grid; grid-template-columns:9px 1fr auto; align-items:center; gap:4px; font:600 .52rem sans-serif; color:#737986; }
.preview-allocation li i { width:6px; height:6px; border-radius:50%; background:#6b5ee7; }
.preview-allocation li:nth-child(2) i { background:#39b9da; }.preview-allocation li:nth-child(3) i { background:#fd668e; }.preview-allocation li:nth-child(4) i { background:#e2b957; }
.preview-allocation li b { color:#1f2332; }

.preview-bar i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .65;
}

.preview-body {
  padding: 68px 52px;
}

.preview-body p {
  color: #977129;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.preview-body h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1.02;
  margin: 24px 0 60px;
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cfc5ad;
}

.preview-actions span {
  padding: 18px 8px 0;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .scenario-allocation {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .hero-brand {
    grid-row: 1;
    margin: 0 auto 34px;
    opacity: 1;
  }

  .hero-brand img {
    width: min(78vw, 430px);
  }

  .hero-copy {
    grid-row: 2;
  }

  .client-trust {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .portfolio-entry {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .trust-mark {
    width: min(70vw, 330px);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 118px;
  }

  .hero-brand {
    margin-bottom: 44px;
  }

  .hero-brand img {
    width: min(76vw, 330px);
  }

  .hero-copy .eyebrow {
    margin-bottom: 22px;
  }

  .hero-note {
    position: static;
    margin: 28px 0 0;
    max-width: 34rem;
  }

  .asset {
    grid-template-columns: 48px 1fr 54px;
    gap: 12px;
  }

  .asset-icon {
    width: 48px;
    height: 48px;
  }

  .market-disclosure {
    margin-left: 0;
  }

  .market-explorer {
    margin: 52px 0 0;
    padding: 18px;
  }

  .market-explorer-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .market-chart {
    height: 480px;
  }

  .client-trust {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .portfolio-entry {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .portfolio-entry-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-entry-preview {
    min-height: 360px;
  }

  .preview-bar b { display:none; }
  .preview-dashboard { padding:18px; grid-template-columns:1fr; }
  .preview-chart-card,.preview-allocation { grid-column:1; }

  .preview-body {
    padding: 45px 28px;
  }

  .preview-actions {
    grid-template-columns: 1fr;
  }

  .preview-actions span {
    padding: 12px 0;
    border-bottom: 1px solid #d8cfbd;
  }
}
.leadership-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 30px;
}

.leadership-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.leadership-facts div {
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.leadership-facts strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: var(--gold2);
}

.leadership-facts .capital-fact strong {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -.035em;
}

.leadership-facts .capital-fact strong span,
.leadership-facts .capital-fact strong sup {
  font-size: .62em;
  font-weight: 600;
  letter-spacing: 0;
}

.leadership-facts .capital-fact strong sup {
  top: -.35em;
  position: relative;
}

.controls > small {
  color: #7f9099;
  font-size: .7rem;
}

.controls input[type="range"] {
  cursor: grab;
}

.controls input[type="range"]:active {
  cursor: grabbing;
}

/* Each chapter enters with a slightly different rhythm. */
.reveal.reveal-left { transform: translateX(-28px); }
.reveal.reveal-right { transform: translateX(28px); }
.reveal.reveal-scale { transform: translateY(12px) scale(.975); }
.reveal.visible { transform: none; }

.process-line {
  position: relative;
  border-top: 0;
}

.process-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.process-line.motion-visible::before { transform: scaleX(1); }

.allocation-table > div {
  transition: transform .55s ease, opacity .55s ease;
}

.allocation-table:not(.visible) > div {
  opacity: 0;
  transform: translateX(22px);
}

.allocation-table > div:nth-child(2) { transition-delay: .06s; }
.allocation-table > div:nth-child(3) { transition-delay: .12s; }
.allocation-table > div:nth-child(4) { transition-delay: .18s; }
.allocation-table > div:nth-child(5) { transition-delay: .24s; }
.allocation-table > div:nth-child(6) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .slider-guide span { animation: none !important; }
  .reveal,
  .allocation-table > div,
  .process-line::before { transition: none !important; transform: none !important; opacity: 1 !important; }
}

.leadership-facts small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .1em;
}

@media (max-width: 600px) {
  .leadership-facts { grid-template-columns: 1fr; }
}

/* Founder portrait blends into the dark RGC canvas instead of reading as a separate card. */
.leadership {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 45%, rgba(30, 90, 104, .18), transparent 38%),
    linear-gradient(135deg, #050709, #071019 70%, #050709);
}

.leadership-portrait {
  position: relative;
  min-height: 700px;
  align-self: stretch;
  overflow: hidden;
  isolation: isolate;
}

.leadership-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.82) contrast(1.04) brightness(.92);
}

.leadership-portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .22) 0%, transparent 24%, transparent 68%, rgba(6, 12, 18, .96) 100%),
    linear-gradient(0deg, #050709 0%, transparent 22%, transparent 78%, rgba(5, 7, 9, .7) 100%);
  box-shadow: inset 0 0 70px 18px rgba(5, 7, 9, .36);
}

@media (max-width: 900px) {
  .leadership-portrait {
    min-height: 660px;
    margin: -30px -28px -10px;
  }

  .leadership-portrait::after {
    background:
      linear-gradient(90deg, rgba(5, 7, 9, .42), transparent 20%, transparent 80%, rgba(5, 7, 9, .42)),
      linear-gradient(0deg, #050709 0%, transparent 30%, transparent 82%, rgba(5, 7, 9, .6) 100%);
  }
}

@media (max-width: 600px) {
  .leadership-portrait {
    min-height: 540px;
  }
}

/* Navigation follows the exact chapter order and keeps portfolio items together. */
main section,
#market,
#portfolio-construction {
  scroll-margin-top: 96px;
}

.site-header {
  gap: 18px;
}

.site-header nav {
  gap: clamp(10px, .72vw, 16px);
  align-items: center;
}

.site-header nav > a,
.nav-submenu-toggle {
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(.65rem, .67vw, .76rem);
  font-weight: 400;
  letter-spacing: 0;
}

.nav-group {
  position: relative;
}

.nav-submenu-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: #d9dddf;
  cursor: pointer;
}

.nav-submenu-toggle span {
  color: var(--gold2);
  transition: transform .2s ease;
}

.nav-group.submenu-open .nav-submenu-toggle span {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  z-index: 30;
  width: 250px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 17, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -7px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.nav-group.submenu-open .nav-submenu,
.nav-group:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: block;
  padding: 12px 13px;
  color: #d9dddf;
  font-size: .76rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.nav-submenu a:last-child {
  border-bottom: 0;
}

.nav-submenu a:hover {
  color: var(--gold2);
  background: rgba(215, 170, 76, .08);
}

/* A restrained opening signature for the RGC mark. */
.hero-brand img {
  animation: rgc-logo-arrival 1.55s cubic-bezier(.2, .78, .2, 1) .12s both;
}

@keyframes rgc-logo-arrival {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.94);
    filter: blur(8px) drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
  }
  65% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 28px 66px rgba(215, 170, 76, .16));
  }
  100% {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 26px 60px rgba(0, 0, 0, .65));
  }
}

@media (max-width: 1320px) {
  .site-header .desktop-cta {
    display: none;
  }
}

@media (max-width: 1100px) {
  .desktop-cta,
  .site-header nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.open nav {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 28px 28px;
    background: rgba(5, 12, 17, .99);
    border-bottom: 1px solid var(--line);
  }

  .site-header.open nav > a,
  .nav-submenu-toggle {
    width: 100%;
    padding: 13px 0;
    font-size: .84rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .nav-submenu-toggle {
    justify-content: space-between;
  }

  .nav-submenu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 16px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .28s ease;
  }

  .nav-group.submenu-open .nav-submenu {
    max-height: 190px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand img {
    animation: none;
  }
}
