:root {
  --ink: #182033;
  --ink-hover: #26314d;
  --ink-active: #1b2334;
  --muted: #626c7f;
  --line: #dfe4ee;
  --line-strong: #c9d5e7;
  --surface: #ffffff;
  --surface-alt: #fbfcfe;
  --tint-green: #f2f6f4;
  --tint-footer: #f1f3f7;
  --page: #f8fafc;
  --blue: #315fa8;
  --blue-hover: #24487f;
  --blue-soft: #dce8fb;
  --green: #537d52;
  --gold: #aa7a24;
  --rose: #a65757;
  --shadow: 0 18px 50px rgba(24, 32, 51, 0.08);
  --focus-ring: 0 0 0 2px var(--page), 0 0 0 4px var(--blue);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

strong {
  font-variant-numeric: tabular-nums;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(223, 228, 238, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 140ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 720;
}

.hero {
  position: relative;
  min-height: calc(88vh - 63px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 34px;
  padding: clamp(72px, 12vh, 132px) clamp(20px, 6vw, 72px) 54px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,250,252,0.96)),
    linear-gradient(120deg, #eef4fb 0%, #f8fafc 42%, #f4f8f2 100%);
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy {
  max-width: 710px;
  color: #3e485c;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 720;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

.button.primary:active {
  background: var(--ink-active);
  border-color: var(--ink-active);
  transform: translateY(1px);
}

.button.secondary {
  background: rgba(255,255,255,0.7);
}

.button.secondary:hover {
  color: var(--blue);
  background: white;
  border-color: var(--blue);
}

.hero-panel {
  align-self: end;
  padding: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label,
.hero-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  font-size: 56px;
  line-height: 1;
}

.portal-hero {
  position: relative;
  min-height: calc(82vh - 63px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 34px;
  padding: clamp(76px, 12vh, 130px) clamp(20px, 6vw, 72px) 52px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,252,0.96)),
    linear-gradient(120deg, #eef4fb 0%, #f8fafc 48%, #f2f6f4 100%);
  border-bottom: 1px solid var(--line);
}

.portal-hero-content,
.portal-snapshot {
  position: relative;
  z-index: 1;
}

.portal-hero h1 {
  max-width: 920px;
  font-size: clamp(60px, 10vw, 128px);
}

.portal-snapshot {
  background: rgba(255,255,255,0.88);
}

.page-hero {
  padding: clamp(70px, 11vw, 122px) clamp(20px, 6vw, 72px) clamp(48px, 8vw, 76px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.98)),
    linear-gradient(120deg, #eef4fb 0%, #f8fafc 55%, #f3f7f2 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.98;
}

.page-hero p:not(.kicker) {
  max-width: 780px;
  color: #3e485c;
  font-size: clamp(18px, 2vw, 22px);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metrics-band div {
  padding: 22px clamp(18px, 4vw, 38px);
  border-right: 1px solid var(--line);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metrics-band span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metrics-band strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
}

.compact-band div {
  padding-top: 18px;
  padding-bottom: 18px;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.section-copy p,
.section-heading p,
.case-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.rule-list,
.capability-list {
  display: grid;
  gap: 12px;
}

.rule-list div,
.capability-list div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rule-list span {
  color: var(--gold);
  font-weight: 780;
  font-size: 13px;
}

.rule-list p,
.capability-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chart-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.path-section {
  background: var(--surface);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.path-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.path-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.path-card.static:hover {
  transform: none;
  box-shadow: none;
}

.path-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 22px 0 10px;
  font-size: 22px;
  line-height: 1.12;
}

.path-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.thesis-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: var(--tint-green);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.thesis-band h2 {
  margin-bottom: 0;
}

.thesis-band > p {
  color: #465265;
  font-size: 18px;
}

.preview-section {
  background: var(--page);
}

.preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin-bottom: 24px;
}

.preview-list span {
  padding: 10px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  color: var(--blue);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 140ms ease, text-decoration-thickness 140ms ease;
}

.text-link:hover {
  color: var(--blue-hover);
  text-decoration-thickness: 2px;
}

.chart-shell {
  height: clamp(340px, 48vw, 540px);
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chart-shell canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.comparison-grid div,
.valuation-ladder div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-grid span,
.valuation-ladder span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.comparison-grid strong,
.valuation-ladder strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 520px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.valuation-ladder {
  display: grid;
  gap: 12px;
}

.valuation-ladder div:nth-child(1) strong {
  color: var(--gold);
}

.valuation-ladder div:nth-child(2) strong {
  color: var(--blue);
}

.valuation-ladder div:nth-child(3) strong {
  color: var(--green);
}

.constituent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.constituent {
  min-height: 86px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.constituent span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.constituent strong {
  display: block;
  margin-top: 9px;
  font-size: 17px;
}

.capabilities {
  background: var(--tint-green);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(54px, 8vw, 84px) clamp(20px, 6vw, 72px);
  background: var(--ink);
  color: white;
}

.contact-section .kicker {
  color: #d7b46c;
}

.contact-section h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-section .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: white;
  border-color: white;
}

.contact-section .button:hover {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: var(--blue-soft);
}

.contact-emails {
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.contact-emails a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration-color: rgba(255, 255, 255, 0.36);
}

.contact-emails a:hover {
  color: white;
}

.contact-hero {
  min-height: 58vh;
}

.contact-card {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 28px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 140ms ease;
}

.contact-card a:hover {
  color: var(--blue-hover);
}

.disclaimer {
  padding: 22px clamp(20px, 6vw, 72px) 34px;
  color: var(--muted);
  background: var(--tint-footer);
  font-size: 12px;
}

.disclaimer p {
  max-width: 1100px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .portal-hero,
  .split,
  .case-section,
  .thesis-band {
    grid-template-columns: 1fr;
  }

  .metrics-band,
  .comparison-grid,
  .constituent-grid,
  .path-grid,
  .path-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .portal-hero {
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    font-size: 58px;
  }

  .metrics-band,
  .comparison-grid,
  .constituent-grid,
  .path-grid,
  .path-grid.two-col {
    grid-template-columns: 1fr;
  }

  .metrics-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .path-card,
  .button,
  .text-link,
  .nav a,
  .contact-card a {
    transition: none;
  }
}
