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

html,
body {
  overflow-x: hidden;
}

.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;
}

.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) {
  .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;
  }

  .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) {
  .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; }
}
