/* Madison — Agentic Banking OS landing page
   Built directly on madison-design-system tokens. See madison-design-system/
   for the source of truth (tokens.ts, madison.css, components/ui/*).
   NOTE: madison.css and the Google Fonts sheet are loaded via <link> tags in
   index.html <head>, not @import here — @import chains are fragile when the
   page is opened straight from disk (file://): if one import stalls or is
   blocked, some browsers drop the rest of the stylesheet with it. */

/* madison.css scopes `.dark` as a compound selector (`[data-theme="madison"].dark`),
   which only matches when both live on the SAME element. This page puts
   data-theme on <html> and .dark on individual section bands (the Vault
   hero/footer/CTA), so re-declare the dark scheme as a descendant override. */
[data-theme="madison"] .dark {
  --background: 220 12% 5%;
  --foreground: 45 15% 95%;
  --card: 225 10% 8%;
  --card-foreground: 45 15% 95%;
  --popover: 225 10% 8%;
  --popover-foreground: 45 15% 95%;
  --primary: 45 15% 95%;
  --primary-foreground: 220 12% 5%;
  --secondary: 225 7% 11%;
  --secondary-foreground: 45 15% 95%;
  --muted: 225 7% 11%;
  --muted-foreground: 50 3% 64%;
  --accent: 225 7% 11%;
  --accent-foreground: 45 15% 95%;
  --destructive: 6 62% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 228 6% 16%;
  --input: 230 6% 19%;
  --ring: 6 31% 47%;
  --brand: 6 31% 47%;
  --brand-soft: 4 27% 11%;
  --brand-text: 6 32% 64%;
  --success: 153 40% 50%;
  --success-soft: 151 37% 11%;
  --success-text: 152 49% 66%;
  --warning: 39 55% 53%;
  --warning-soft: 35 37% 12%;
  --warning-text: 40 60% 67%;
  --danger: 6 62% 62%;
  --danger-soft: 8 39% 12%;
  --danger-text: 7 71% 75%;
  --info: 212 58% 64%;
  --info-soft: 211 36% 14%;
  --info-text: 210 59% 76%;
  --dataviz-primary: 50 7% 84%;
  --dataviz-support: 6 31% 47%;
}

/* -------------------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: hsl(var(--brand-soft)); color: hsl(var(--brand-text)); }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.dark { background: hsl(var(--background)); color: hsl(var(--foreground)); }

/* -------------------------------------------------------------------------
   Layout helpers
   ---------------------------------------------------------------------- */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--sunken { background: hsl(var(--muted)); }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--brand-text));
}

.section-header { max-width: 640px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}
.section-dek {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 1024px) {
  .section-title { font-size: 38px; }
}

.hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
}

/* -------------------------------------------------------------------------
   Buttons — monochrome action ladder. Oxblood never on buttons.
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
}
.btn--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 32px; font-size: 16px; }
.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn--primary:hover { background: hsl(var(--primary) / 0.88); }
.btn--outline { background: transparent; border-color: hsl(var(--input)); color: hsl(var(--foreground)); }
.btn--outline:hover { background: hsl(var(--accent)); }
.btn--ghost { background: transparent; color: hsl(var(--muted-foreground)); }
.btn--ghost:hover { color: hsl(var(--foreground)); }

/* On dark (Vault) bands, `.dark` scoping already flips --primary/--input via madison.css */

/* -------------------------------------------------------------------------
   Navbar
   ---------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(8px);
}
.navbar-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar-brand small {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
}
.navbar-brand .rule { margin-top: 4px; display: block; height: 2px; width: 24px; background: hsl(var(--brand)); }
.navbar-links { display: none; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.navbar-links a { transition: color 180ms ease; }
.navbar-links a:hover { color: hsl(var(--foreground)); }
.navbar-right { display: flex; align-items: center; gap: 12px; }
.navbar-toggle {
  display: inline-flex;
  border: 1px solid hsl(var(--input));
  background: transparent;
  padding: 8px 10px;
  border-radius: 2px;
  color: hsl(var(--foreground));
}
@media (min-width: 900px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
}
.navbar-mobile {
  display: none;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.navbar-mobile.is-open { display: block; }
.navbar-mobile .container { padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.navbar-mobile a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
}
.navbar-mobile a:last-child { border-bottom: none; }
@media (min-width: 900px) { .navbar-mobile { display: none !important; } }

/* Nav "For your team" dropdown — desktop */
.nav-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms ease;
}
.nav-dd-toggle:hover,
.nav-dd-toggle[aria-expanded="true"] { color: hsl(var(--foreground)); }
.nav-dd-chevron { transition: transform 180ms ease; }
.nav-dd-toggle[aria-expanded="true"] .nav-dd-chevron { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 340px;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  box-shadow: 0 8px 28px -8px rgba(11,12,14,0.16);
  padding: 6px;
  z-index: 60;
}
.nav-dd-menu[hidden] { display: none; }
.nav-dd-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 2px;
  transition: background-color 120ms ease;
}
.nav-dd-item:hover,
.nav-dd-item:focus-visible { background: hsl(var(--muted)); outline: none; }
.nav-dd-name {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.nav-dd-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

/* Mobile "For your team" accordion */
.mobile-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: hsl(var(--foreground));
  background: transparent;
  border: 0;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
}
.mobile-accordion svg { transition: transform 180ms ease; }
.mobile-accordion[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-accordion-panel { display: flex; flex-direction: column; }
.mobile-accordion-panel[hidden] { display: none; }
.mobile-accordion-panel a {
  padding: 10px 0 10px 16px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* PLACEHOLDER: swap this file for a licensed/commissioned NYC / Madison Avenue
   street-level photograph (upward angle, glass + stone facades). Keep the
   dark navy scrim below intact for text legibility. See
   madison-design-system/assets/IMAGERY.md — architecture category. */
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(65%) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(var(--background) / 0.78) 0%, hsl(var(--background) / 0.9) 55%, hsl(var(--background) / 0.98) 100%),
    linear-gradient(90deg, hsl(var(--background) / 0.55) 0%, hsl(var(--background) / 0.2) 45%, hsl(var(--background) / 0.55) 100%);
}
.hero-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 128px 24px 96px;
}
@media (max-width: 640px) {
  .hero-inner { padding: 88px 24px 64px; }
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--brand-text));
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: hsl(var(--foreground));
}
@media (min-width: 640px) { .hero-headline { font-size: 56px; } }
@media (min-width: 1024px) { .hero-headline { font-size: 66px; } }
.hero-subhead {
  margin-top: 28px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.86);
}
.hero-support {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-chips {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 28px;
  border-top: 1px solid hsl(var(--border));
  max-width: 720px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
.hero-chip svg { flex: none; color: hsl(var(--brand-text)); }

/* -------------------------------------------------------------------------
   Coverage — front-to-back pillars
   ---------------------------------------------------------------------- */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid hsl(var(--border));
}
.pillars::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--brand) / 0.15), hsl(var(--brand)), hsl(var(--brand) / 0.15));
}
.pillar {
  padding: 32px 24px;
  border-left: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar:first-child { border-left: none; }
.pillar-index { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--brand-text)); }
.pillar-name { font-family: var(--font-serif); font-size: 21px; font-weight: 500; color: hsl(var(--foreground)); }
.pillar-role { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.5; min-height: 42px; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background));
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: none; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid hsl(var(--border)); }
  .pillar:first-child { border-top: none; }
}

.autonomy-strip {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid hsl(var(--border));
}
.autonomy-lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin-bottom: 32px;
}
.autonomy-lead em { color: hsl(var(--foreground)); font-style: normal; font-weight: 600; }
.autonomy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .autonomy-row { grid-template-columns: 1fr; } }
.autonomy-item { display: flex; gap: 14px; align-items: flex-start; }
.autonomy-badge {
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: hsl(var(--brand-text));
}
.autonomy-item h3 { font-size: 15px; font-weight: 600; color: hsl(var(--foreground)); }
.autonomy-item p { margin-top: 4px; font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* -------------------------------------------------------------------------
   Solutions — bento grid. Varied card sizes carry mini product readouts
   (the design system's data-module pattern). Flat + hairline, ink/paper,
   square shoulders — Madison's look, not Yorker's glow/gradient chrome.
   ---------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 204px;
  grid-auto-flow: dense;
  gap: 14px;
}
.bento-card--lg   { grid-column: span 5; grid-row: span 2; }
.bento-card--tall { grid-column: span 4; grid-row: span 2; }
.bento-card--sm   { grid-column: span 3; grid-row: span 1; }
.bento-card--md   { grid-column: span 4; grid-row: span 1; }
.bento-card--wide { grid-column: span 12; grid-row: span 1; }

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.bento-card:hover {
  border-color: hsl(var(--input));
  transform: translateY(-2px);
  box-shadow: 0 2px 8px -2px rgba(11,12,14,0.10);
}
.bento-head { display: flex; align-items: center; justify-content: space-between; }
.bento-icon {
  width: 38px; height: 38px;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground));
  flex: none;
}
.bento-arrow { color: hsl(var(--muted-foreground) / 0.5); transition: color 180ms ease, transform 180ms ease; }
.bento-card:hover .bento-arrow { color: hsl(var(--brand-text)); transform: translateX(2px); }
.bento-title { font-size: 17px; font-weight: 600; color: hsl(var(--foreground)); }
.bento-desc { font-size: 13.5px; line-height: 1.5; color: hsl(var(--muted-foreground)); }

/* Shared mini-module frame */
.bento-module { margin-top: auto; }

/* Commercial — agent fleet */
.bento-agents { border-top: 1px solid hsl(var(--border)); }
.agent-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.agent-row:last-child { border-bottom: none; }
.agent-name { font-size: 13.5px; color: hsl(var(--foreground)); }
.agent-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agent-status .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: hsl(var(--foreground));
  flex: none;
}
.agent-status.s-done  { color: hsl(var(--muted-foreground)); }
.agent-status.s-run   { color: hsl(var(--foreground)); }
.agent-status.s-queue { color: hsl(var(--muted-foreground) / 0.55); }

/* Risk — alert timeline */
.bento-timeline { border-top: 1px solid hsl(var(--border)); }
.tl-row {
  display: flex; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.tl-row:last-child { border-bottom: none; }
.tl-time { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--muted-foreground) / 0.7); flex: none; }
.tl-text { font-size: 13px; line-height: 1.4; color: hsl(var(--foreground)); }

/* Finance — reconciliation ring */
.bento-ring { display: flex; align-items: center; gap: 16px; }
.ring-wrap { position: relative; width: 64px; height: 64px; flex: none; }
.ring { width: 64px; height: 64px; }
.ring-track { fill: none; stroke: hsl(var(--border)); stroke-width: 5; }
.ring-arc   { fill: none; stroke: hsl(var(--brand)); stroke-width: 5; stroke-linecap: round; }
.ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 500;
  color: hsl(var(--foreground));
}
.ring-meta { display: flex; flex-direction: column; gap: 3px; }
.ring-kicker {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.ring-label { font-size: 13px; line-height: 1.35; color: hsl(var(--foreground)); }

/* Payments — exception queue */
.bento-queue { border-top: 1px solid hsl(var(--border)); }
.q-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.q-id { font-family: var(--font-mono); font-size: 12.5px; color: hsl(var(--foreground)); }
.q-state {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.q-state .dot { width: 6px; height: 6px; border-radius: 9999px; background: hsl(var(--foreground)); flex: none; }
.q-state.s-done { color: hsl(var(--muted-foreground)); }
.q-state.s-run  { color: hsl(var(--foreground)); }
.q-foot { padding-top: 10px; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* Retail — assistant snippet */
.bento-chat { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.chat-q {
  align-self: flex-end;
  max-width: 82%;
  font-size: 12.5px; line-height: 1.4;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 8px 11px;
}
.chat-a {
  max-width: 90%;
  font-size: 12.5px; line-height: 1.4;
  color: hsl(var(--foreground));
  border-left: 2px solid hsl(var(--brand));
  padding: 2px 0 2px 11px;
}

/* Marketing — next-best-action chips */
.bento-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nba-chip {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: 5px 10px;
}

/* Procurement — contract review */
.bento-flag { border-top: 1px solid hsl(var(--border)); padding-top: 12px; }
.flag-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.flag-doc { font-size: 13.5px; font-weight: 600; color: hsl(var(--foreground)); }
.flag-count { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: hsl(var(--muted-foreground)); }
.flag-tags { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: hsl(var(--muted-foreground)); }
.flag-foot { margin-top: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* HR — orchestration flow */
.bento-card--wide { flex-direction: row; align-items: center; gap: 40px; }
.hr-intro { flex: 0 0 30%; min-width: 220px; }
.hr-intro .bento-head { margin-bottom: 12px; }
.hr-flow { flex: 1; display: flex; align-items: center; gap: 16px; }
.hr-col { display: flex; flex-direction: column; gap: 8px; }
.hr-col span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.hr-col--right { text-align: right; }
.hr-line { flex: 1; height: 0; border-top: 1px dashed hsl(var(--border)); min-width: 24px; }
.hr-core {
  flex: none;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid hsl(var(--input));
  border-radius: 4px;
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 500;
  color: hsl(var(--foreground));
  white-space: nowrap;
}
.hr-core small {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-top: 3px;
}

/* Scroll-reveal — restrained: rise + fade once, on enter. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms cubic-bezier(0.19, 1, 0.22, 1), transform 320ms cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Bento responsive */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(204px, auto); }
  .bento-card--lg, .bento-card--tall, .bento-card--wide { grid-column: span 2; grid-row: auto; }
  .bento-card--sm, .bento-card--md { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card--lg, .bento-card--tall, .bento-card--sm, .bento-card--md, .bento-card--wide {
    grid-column: span 1; grid-row: auto;
  }
  .bento-card--wide { flex-direction: column; align-items: stretch; gap: 20px; }
  .hr-intro { flex-basis: auto; min-width: 0; }
  .hr-flow { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hr-col { width: 100%; }
  .hr-col--right { text-align: left; }
  .hr-core { align-self: flex-start; }
  .hr-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------------
   Demo section
   ---------------------------------------------------------------------- */
.demo-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
.demo-frame {
  position: relative;
  border: 1px solid hsl(var(--border));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(var(--muted));
}
.demo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.55;
}
.demo-mock {
  width: 100%; height: 100%; display: block;
}
.demo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.45) 100%);
}
.demo-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px; height: 72px;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.92);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground));
  transition: background-color 180ms ease;
}
.demo-frame:hover .demo-play { background: hsl(var(--background)); }
.demo-caption {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 2;
  font-size: 12px;
  color: hsl(var(--background));
  font-weight: 500;
  letter-spacing: 0.02em;
}
.demo-highlights { display: flex; flex-direction: column; gap: 24px; }
.demo-highlight { display: flex; gap: 14px; }
.demo-highlight .num { font-family: var(--font-mono); font-size: 13px; color: hsl(var(--brand-text)); flex: none; padding-top: 2px; }
.demo-highlight p { font-size: 15px; color: hsl(var(--foreground)); line-height: 1.5; }
.demo-cta { margin-top: 32px; }

/* -------------------------------------------------------------------------
   Governance section (Vault)
   ---------------------------------------------------------------------- */
.gov-lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.88);
  margin-top: 20px;
}
.badge-row-wrap { margin-top: 72px; }
.badge-row-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.badge-row-rule .eyebrow { color: hsl(var(--brand-text)); white-space: nowrap; }
.badge-row-rule .line { height: 1px; flex: 1; background: hsl(var(--border)); }
.badge-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .badge-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .badge-row { grid-template-columns: repeat(2, 1fr); } }
.badge-emblem { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.badge-emblem .ring {
  width: 64px; height: 64px;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
}
.badge-emblem .label { font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); line-height: 1.4; }

.gov-support {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
}
@media (max-width: 760px) { .gov-support { grid-template-columns: 1fr; } }
.gov-support-card { background: hsl(var(--background)); padding: 32px; }
.gov-support-card h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 12px; }
.gov-support-card p { font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }

/* -------------------------------------------------------------------------
   Platform beneath Madison
   ---------------------------------------------------------------------- */
.platform-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  padding: 6px 12px;
  border-radius: 2px;
}
.platform-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
}
@media (max-width: 860px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-card { background: hsl(var(--background)); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.platform-card .idx { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--brand-text)); }
.platform-card h3 { font-size: 19px; font-weight: 600; color: hsl(var(--foreground)); }
.platform-card p { font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.platform-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

/* -------------------------------------------------------------------------
   Advisory board — Yorker-style carousel: photo cards, prev/next arrows,
   dot pagination. Cards stay flat/bordered per the card-component law.
   ---------------------------------------------------------------------- */
.advisors-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.advisors-nav { display: flex; align-items: center; gap: 10px; flex: none; }
.advisors-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}
.advisors-arrow:hover:not(:disabled) { background: hsl(var(--accent)); }
.advisors-arrow:disabled { opacity: 0.32; cursor: not-allowed; }

.advisors-viewport {
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.advisors-viewport::-webkit-scrollbar { display: none; }
.advisors-track { display: flex; gap: 24px; }
.advisor-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  overflow: hidden;
}
@media (max-width: 900px) { .advisor-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .advisor-card { flex-basis: 88%; } }

.advisor-photo { aspect-ratio: 4 / 5; background: hsl(var(--muted)); }
.advisor-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.advisor-body { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.advisor-name { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: hsl(var(--foreground)); }
.advisor-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-top: 2px;
}
.advisor-line { margin-top: 12px; font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.advisor-hr { margin-top: 20px; border-top: 1px solid hsl(var(--border)); }
.advisor-previously {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.advisor-previously-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.7);
}
.advisor-logo {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.advisors-dots { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.advisors-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: hsl(var(--border));
  border: none;
  padding: 0;
  transition: width 180ms ease, background-color 180ms ease;
}
.advisors-dot[aria-current="true"] { width: 24px; background: hsl(var(--foreground)); }

/* -------------------------------------------------------------------------
   Closing CTA (Vault)
   ---------------------------------------------------------------------- */
.cta-band { padding: 96px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 860px) { .cta-inner { flex-direction: row; align-items: center; } }
.cta-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  max-width: 22ch;
  color: hsl(var(--foreground));
}
@media (min-width: 1024px) { .cta-headline { font-size: 38px; } }
.cta-line { margin-top: 16px; max-width: 52ch; font-size: 16px; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; flex: none; }

/* -------------------------------------------------------------------------
   Footer (Vault)
   ---------------------------------------------------------------------- */
.footer { border-top: 1px solid hsl(var(--border)); padding: 64px 0 32px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 760px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
.footer-heading { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 16px; }
.footer-link { display: block; padding: 4px 0; font-size: 14px; color: hsl(var(--muted-foreground)); transition: color 180ms ease; }
.footer-link:hover { color: hsl(var(--foreground)); }
.footer-brand-block { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: hsl(var(--foreground)); }
.footer-tagline { font-size: 13px; color: hsl(var(--muted-foreground)); max-width: 28ch; line-height: 1.5; }
.footer-built-on {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  padding: 6px 10px;
  border-radius: 2px;
  width: fit-content;
}
.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground) / 0.8);
}

/* -------------------------------------------------------------------------
   Small utilities
   ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

/* -------------------------------------------------------------------------
   Hero tertiary "jump to your team" link
   ---------------------------------------------------------------------- */
.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 180ms ease;
}
.hero-jump span { transition: transform 180ms ease; display: inline-block; }
.hero-jump:hover { color: hsl(var(--foreground)); }
.hero-jump:hover span { transform: translateX(2px); }

/* -------------------------------------------------------------------------
   Proof band — logo wall of illustrative wordmarks + factual caption
   ---------------------------------------------------------------------- */
.proof-band .eyebrow { margin-bottom: 20px; }
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid hsl(var(--border));
}
.logo-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  min-height: 84px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: hsl(var(--muted-foreground));
  border-left: 1px solid hsl(var(--border));
  text-align: center;
  opacity: 0.72;
  transition: opacity 180ms ease, color 180ms ease;
}
.logo-wall-item:first-child { border-left: none; }
.logo-wall-item:hover { opacity: 1; color: hsl(var(--foreground)); }
.logo-wall-caption {
  margin-top: 16px;
  font-size: 12px;
  color: hsl(var(--muted-foreground) / 0.8);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall-item:nth-child(4) { border-left: none; }
  .logo-wall-item:nth-child(n+4) { border-top: 1px solid hsl(var(--border)); }
}
@media (max-width: 520px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall-item { border-left: none; border-top: 1px solid hsl(var(--border)); }
  .logo-wall-item:nth-child(2n) { border-left: 1px solid hsl(var(--border)); }
  .logo-wall-item:nth-child(-n+2) { border-top: none; }
}

/* -------------------------------------------------------------------------
   ICP router — "For your team" index. Dense, hairline-divided, mono
   numerals, oxblood arrow on hover. Two columns → one on mobile.
   ---------------------------------------------------------------------- */
.icp-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  border-top: 1px solid hsl(var(--border));
}
.icp-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px 20px 4px;
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 180ms ease;
  color: inherit;
}
.icp-item:nth-child(odd)  { padding-right: 32px; border-right: 1px solid hsl(var(--border)); }
.icp-item:nth-child(even) { padding-left: 32px; }
.icp-item:hover { background: hsl(var(--muted) / 0.55); }
.icp-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: hsl(var(--brand-text));
  letter-spacing: 0.04em;
}
.icp-body { display: flex; flex-direction: column; gap: 3px; }
.icp-name {
  font-size: 16px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.icp-role {
  font-size: 13px;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}
.icp-arrow {
  color: hsl(var(--muted-foreground) / 0.4);
  transition: color 180ms ease, transform 180ms ease;
}
.icp-item:hover .icp-arrow,
.icp-item:focus-visible .icp-arrow {
  color: hsl(var(--brand-text));
  transform: translateX(3px);
}
@media (max-width: 760px) {
  .icp-index { grid-template-columns: 1fr; }
  .icp-item,
  .icp-item:nth-child(odd),
  .icp-item:nth-child(even) {
    padding: 18px 4px;
    border-right: none;
  }
}

/* -------------------------------------------------------------------------
   Bento — "See [team] →" affordance and new module readouts
   (Underwriting decision, Deal Intelligence pipeline). The whole card is
   already a link; this text just makes the destination unambiguous.
   ---------------------------------------------------------------------- */
.bento-card { color: inherit; text-decoration: none; }
.bento-see {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: hsl(var(--brand-text));
}
.bento-see--tight { margin-top: 10px; font-size: 12px; }
.bento-see span { transition: transform 180ms ease; display: inline-block; }
.bento-card:hover .bento-see span { transform: translateX(2px); }

/* Underwriting — decision card */
.bento-decision { border-top: 1px solid hsl(var(--border)); padding-top: 12px; }
.dec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dec-id { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--foreground)); }
.dec-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--success-text));
  background: hsl(var(--success-soft));
  border: 1px solid hsl(var(--success) / 0.35);
  padding: 3px 7px;
  border-radius: 2px;
}
.dec-sub { margin-top: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.dec-rows { margin-top: 10px; }
.dec-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
}
.dec-row:last-child { border-bottom: none; }
.dec-val { font-family: var(--font-mono); font-weight: 500; color: hsl(var(--foreground)); }
.dec-foot { margin-top: 10px; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* Deal Intelligence — target pipeline */
.bento-deals { border-top: 1px solid hsl(var(--border)); }
.deal-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.deal-name { font-size: 13px; color: hsl(var(--foreground)); }
.deal-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.deal-foot { padding-top: 10px; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* When the whole HR card is a link, put the "See HR" inside its intro. */
.bento-card--wide .hr-intro .bento-see { margin-top: 16px; }

/* KYC — compact stat rows */
.bento-kyc { border-top: 1px solid hsl(var(--border)); }
.kyc-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 13px;
}
.kyc-row:last-child { border-bottom: none; }
.kyc-lbl { color: hsl(var(--muted-foreground)); }
.kyc-val { font-family: var(--font-mono); font-weight: 500; color: hsl(var(--foreground)); }

/* Risk & Compliance — governance log. Kind labels stay neutral (not oxblood)
   because the ring in Reconciliations is already the band's one oxblood
   data-viz moment; the "See" affordances are the second, and that's the cap. */
.bento-log { border-top: 1px solid hsl(var(--border)); }
.log-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.log-row:last-of-type { border-bottom: none; }
.log-kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.75);
}
.log-text { font-size: 12.5px; color: hsl(var(--foreground)); line-height: 1.35; }
.log-foot { margin-top: 10px; font-size: 12px; color: hsl(var(--muted-foreground)); }
