/* ============================================================
   GENOME LAYER — uniquely CuraPatient: cartoon × science × scale
   ============================================================ */
:root {
  --deep:    #0d1a2d;   /* deepest navy — hero space */
  --navy:    #16294a;   /* panel navy */
  --navy-2:  #1f3a5e;   /* workbench navy */
  --care-g:  #3ecf95;   /* CARE strand on dark */
  --claim-g: #f0b34e;   /* CLAIMS strand on dark */
  --paid:    #2fbf8f;
  --denied:  #e2604e;
}

/* ---------------- HERO: the helix tower ---------------- */
.hero-genome {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(62,207,149,.10), transparent 60%),
    radial-gradient(900px 600px at 88% 12%, rgba(240,179,78,.12), transparent 55%),
    linear-gradient(168deg, #0d1a2d 0%, #122340 55%, #16294a 100%);
  color: #eef3f9;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.hero-genome::before { /* faint lab grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(126,166,214,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(126,166,214,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
}
.hero-genome .container { position: relative; z-index: 3; }
.hero-genome__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-genome .eyebrow { color: var(--claim-g); }
.hero-genome h1 { color: #fff; font-weight: 440; font-size: clamp(2.3rem, 1rem + 4.6vw, 5rem); line-height: 1.0; letter-spacing: -.025em; }
.hero-genome h1 .gene-care  { color: var(--care-g); }
.hero-genome h1 .gene-claim { color: var(--claim-g); }
.hero-genome .lede { color: #c3d2e4; }
.hero-genome .lede strong { color: #fff; }

/* ---- the 3D rotating double helix (pure CSS) ---- */
.helix-stage { position: relative; height: clamp(420px, 56vw, 560px); display: flex; justify-content: center; perspective: 1100px; }
.helix { position: relative; width: 230px; height: 100%; transform-style: preserve-3d; }
.helix .rung { position: absolute; left: 50%; width: 190px; height: 2px; margin-left: -95px; transform-style: preserve-3d; animation: helixspin 9s linear infinite; will-change: transform; }
.helix .rung .bar {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(62,207,149,.85), rgba(62,207,149,.10) 32%, rgba(240,179,78,.10) 68%, rgba(240,179,78,.85));
}
.helix .rung::before, .helix .rung::after {
  content: ""; position: absolute; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%;
}
.helix .rung::before {
  left: -8px;
  background: radial-gradient(circle at 35% 30%, #8ef0c8, #1d8f63 70%);
  box-shadow: 0 0 5px rgba(62,207,149,.55);
}
.helix .rung::after {
  right: -8px;
  background: radial-gradient(circle at 35% 30%, #ffd98f, #c97f1d 70%);
  box-shadow: 0 0 5px rgba(240,179,78,.55);
}
@keyframes helixspin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* claim chips falling through the helix: denied in → paid out */
.chip-fall {
  position: absolute; z-index: 4; left: 50%; top: -28px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; white-space: nowrap;
  padding: .28rem .55rem; border-radius: 999px; border: 1px solid rgba(226,96,78,.65);
  background: rgba(226,96,78,.16); color: #ffb4a8;
  animation: chipfall 9.5s linear infinite;
  opacity: 0; will-change: transform, opacity;
}
@keyframes chipfall {
  0%   { transform: translateY(0); opacity: 0; border-color: rgba(226,96,78,.65); background: rgba(226,96,78,.16); color: #ffb4a8; }
  6%   { opacity: 1; }
  46%  { border-color: rgba(226,96,78,.65); background: rgba(226,96,78,.16); color: #ffb4a8; }
  54%  { border-color: rgba(47,191,143,.7); background: rgba(47,191,143,.15); color: #9af0d2; }
  94%  { opacity: 1; }
  100% { transform: translateY(660px); opacity: 0; border-color: rgba(47,191,143,.7); background: rgba(47,191,143,.15); color: #9af0d2; }
}

/* mascot at the base of the tower */
.helix-mascot {
  position: absolute; z-index: 5; bottom: -12px; right: -34px; width: clamp(150px, 17vw, 215px);
  animation: bob 5.5s ease-in-out infinite;
}
.helix-caption {
  position: absolute; z-index: 5; left: 0; bottom: 6px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7e96b3;
}
.helix-caption b { color: var(--care-g); font-weight: 500; }
.helix-caption i { color: var(--claim-g); font-style: normal; }

/* hero stat chips row */
.hero-genome .statchips { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.6rem; }
.statchip {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em;
  border: 1px solid rgba(126,166,214,.3); border-radius: 999px; padding: .42rem .8rem; color: #c3d2e4;
  background: rgba(255,255,255,.03);
}
.statchip b { color: #fff; font-weight: 600; }
.statchip--gold { border-color: rgba(240,179,78,.5); }
.statchip--gold b { color: var(--claim-g); }
.statchip--green { border-color: rgba(62,207,149,.45); }
.statchip--green b { color: var(--care-g); }

/* ---------------- TENSION: payer ⇄ provider, patient wins ---------------- */
.tension { background: var(--paper); position: relative; }
.tension__grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: stretch; margin-top: 2.6rem; }
.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.6rem; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.side-card img { width: 92px; margin: -52px auto .4rem; filter: drop-shadow(0 12px 18px rgba(24,21,17,.25)); }
.side-card h3 { font-size: 1.25rem; }
.side-card .pull-line { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .35rem; }
.side-card--payer .pull-line { color: var(--amber-deep); }
.side-card--provider .pull-line { color: var(--verdict); }
.side-card p.quote { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; margin-top: .9rem; color: var(--ink-soft); }

.resolve-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; text-align: center;
  background: linear-gradient(165deg, #122340, #16294a); color: #eef3f9;
  padding: 2rem 1.6rem 1.8rem; box-shadow: var(--shadow-lg);
}
.resolve-card .mini-weave { margin: .4rem auto 0; display: block; }
.resolve-card .mini-weave .s { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.resolve-card .mini-weave .s--care { stroke: var(--care-g); }
.resolve-card .mini-weave .s--claims { stroke: var(--claim-g); }
.resolve-card .mini-weave .pt { fill: #fff; }
.resolve-card .mini-weave .pulse { animation: nodepulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodepulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .45; } }
.resolve-card .amount { font-family: var(--font-serif); font-size: 2rem; color: #fff; margin-top: .6rem; }
.resolve-card .amount-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8fa7c4; }
.resolve-card .patient-line { margin-top: 1rem; font-size: .92rem; color: #c3d2e4; }
.resolve-card .patient-line b { color: #fff; }

.vs-arrows { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.vs-arrows span { color: var(--ink-muted); }

/* ---------------- WORKBENCH 3D product shot ---------------- */
.bench { background: linear-gradient(180deg, #0d1a2d 0%, #122340 100%); color: #eef3f9; overflow: hidden; position: relative; }
.bench .eyebrow { color: var(--claim-g); }
.bench h2 { color: #fff; }
.bench .lede { color: #c3d2e4; }
.bench-stage { perspective: 1600px; margin-top: 2.6rem; }
.browser {
  transform: rotateX(7deg) rotateY(-7deg) rotateZ(.6deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 45px 90px -28px rgba(0,0,0,.65), 0 0 0 1px rgba(126,166,214,.18);
  background: #f7f6f2; color: var(--ink);
}
.bench-stage:hover .browser { transform: rotateX(2deg) rotateY(-2deg) rotateZ(0deg); }
.browser__chrome { display: flex; align-items: center; gap: .6rem; background: #0f1f38; padding: .6rem .9rem; }
.browser__dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.browser__url { flex: 1; font-family: var(--font-mono); font-size: .68rem; color: #93a9c4; background: rgba(255,255,255,.07); border-radius: 6px; padding: .3rem .7rem; }
.browser__badge { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; color: #f0b34e; }
.browser__body { padding: 1.3rem 1.4rem 1.5rem; }
.browser__kicker { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.browser__h { font-size: clamp(1.1rem, 2.2vw, 1.55rem); font-weight: 700; color: #14233c; font-family: var(--font-sans); margin-top: .35rem; }
.bench-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1rem; }
.bench-tile { border: 1px solid #e3ded3; border-radius: 8px; padding: .7rem .8rem; background: #fff; }
.bench-tile .v { font-weight: 700; font-size: 1.05rem; color: #14233c; font-variant-numeric: tabular-nums; }
.bench-tile .k { font-size: .68rem; color: #75809a; margin-top: .15rem; }
.bench-tile--ready { background: #ecf7f1; border-color: #bfe3d2; }
.bench-tile--ready .v { color: #157a52; }
.bench-rows { margin-top: 1rem; border-top: 1px solid #e3ded3; }
.bench-row { display: grid; grid-template-columns: 1.1fr 1fr .7fr 2fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid #efebe0; align-items: center; font-size: .78rem; }
.bench-row .path { font-family: var(--font-mono); font-weight: 600; }
.bench-row .money { font-variant-numeric: tabular-nums; font-weight: 700; color: #14233c; }
.bench-row .n { color: #75809a; font-variant-numeric: tabular-nums; }
.bench-row .what { color: #4d5a72; font-size: .73rem; }
.bench-row .path--appeal { color: #b26b17; border-left: 3px solid #e0a23c; padding-left: .55rem; }
.bench-row .path--resubmit { color: #157a52; border-left: 3px solid #3ecf95; padding-left: .55rem; }
.bench-row .path--cob { color: #8a2a1f; border-left: 3px solid #d97b6c; padding-left: .55rem; }
.bench-row .path--timely { color: #36506e; border-left: 3px solid #7c97b8; padding-left: .55rem; }
/* floating chips around the browser */
.bench-float {
  position: absolute; z-index: 4; font-family: var(--font-mono); font-size: .68rem;
  padding: .5rem .8rem; border-radius: 10px; backdrop-filter: blur(6px);
  background: rgba(13,26,45,.82); border: 1px solid rgba(126,166,214,.3); color: #c3d2e4;
  box-shadow: 0 18px 36px rgba(0,0,0,.45);
  animation: bob 6s ease-in-out infinite;
}
.bench-float b { color: #fff; }
.bench-float--tl { top: -18px; left: 2%; animation-delay: -1.2s; }
.bench-float--br { bottom: -16px; right: 3%; animation-delay: -3s; }
.bench-float--paid b { color: var(--paid); }

/* ---------------- THE CAST ---------------- */
.cast { background: var(--paper); }
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.cast-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem 1.25rem; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.cast-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--care-g), var(--claim-g)); opacity: 0; transition: opacity .3s; }
.cast-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); border-color: var(--line-strong); }
.cast-card:hover::before { opacity: 1; }
.cast-card img { width: 96px; height: 96px; object-fit: contain; margin-bottom: .7rem; filter: drop-shadow(0 10px 14px rgba(24,21,17,.2)); transition: transform .35s var(--ease); }
.cast-card:hover img { transform: scale(1.08) rotate(2deg); }
.cast-card h3 { font-size: 1.15rem; }
.cast-card .role { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); margin-top: .25rem; }
.cast-card p.line { font-size: .88rem; color: var(--ink-muted); margin-top: .6rem; line-height: 1.55; }
.cast-card .kpi { margin-top: .8rem; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); background: var(--paper-deep); border-radius: 6px; padding: .45rem .6rem; }
.cast-card .kpi b { color: var(--ink); }

/* ---------------- SCALE band ---------------- */
.scaleband { background: linear-gradient(180deg, #16294a, #0d1a2d); color: #fff; position: relative; overflow: hidden; }
.scaleband .eyebrow { color: var(--claim-g); }
.scaleband .kicker-xl { font-family: var(--font-serif); font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: 1; color: #fff; letter-spacing: -.02em; }
.scaleband .kicker-xl .unit { font-size: .45em; color: var(--claim-g); }
.scaleband .subline { color: #c3d2e4; max-width: 36ch; }
.scale-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(126,166,214,.22); border: 1px solid rgba(126,166,214,.22); border-radius: var(--r-lg); overflow: hidden; margin-top: 2.4rem; }
.scale-stat { background: rgba(13,26,45,.92); padding: 1.3rem 1.2rem; }
.scale-stat .n { font-family: var(--font-serif); font-size: 1.9rem; color: #fff; font-variant-numeric: tabular-nums; }
.scale-stat .n .u { color: var(--claim-g); font-size: .65em; }
.scale-stat .l { font-size: .8rem; color: #8fa7c4; margin-top: .3rem; }
.scale-orgs { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.8rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa7c4; }
.scale-orgs b { color: #e8eef6; font-weight: 500; }

/* ---------------- ANATOMY: the evidence board ---------------- */
.anatomy { background: #0b1626; color: #eef3f9; position: relative; overflow: hidden; }
.anatomy::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(126,166,214,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(126,166,214,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.anatomy .container { position: relative; z-index: 2; }
.anatomy .eyebrow { color: var(--claim-g); }
.anatomy h2 { color: #fff; }
.anatomy .lede { color: #c3d2e4; }
.anatomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 2rem; margin-top: 3rem; }
.exhibit { position: relative; margin: 0; transition: transform .45s var(--ease); }
.exhibit--wide { grid-column: 1 / -1; }
.exhibit:nth-child(odd)  { transform: rotate(-1.1deg); }
.exhibit:nth-child(even) { transform: rotate(1deg); }
.exhibit:hover { transform: rotate(0deg) translateY(-6px); z-index: 5; }
.exhibit__pin {
  position: absolute; top: -10px; left: 50%; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd98f, #c97f1d 75%);
  box-shadow: 0 5px 10px rgba(0,0,0,.55), inset 0 -2px 4px rgba(0,0,0,.3); z-index: 4;
}
.exhibit__frame {
  border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid rgba(126,166,214,.28);
  box-shadow: 0 34px 70px -22px rgba(0,0,0,.65);
}
.exhibit__frame img { width: 100%; display: block; }
.exhibit figcaption {
  margin-top: .8rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  color: #8fa7c4; line-height: 1.55;
}
.exhibit figcaption b { color: var(--claim-g); font-weight: 600; letter-spacing: .14em; }
.exhibit figcaption span { color: #d7e2ef; }
.callout {
  position: absolute; z-index: 4; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em;
  padding: .35rem .65rem; border-radius: 999px; white-space: nowrap;
  background: rgba(13,26,45,.92); border: 1px solid rgba(240,179,78,.6); color: #ffd98f;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
  animation: bob 6.5s ease-in-out infinite;
}
.callout--green { border-color: rgba(62,207,149,.55); color: #9af0d2; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero-genome__grid { grid-template-columns: 1fr; }
  .helix-stage { height: 360px; margin-top: 1rem; }
  .helix-mascot { right: 4%; }
  .tension__grid { grid-template-columns: 1fr; }
  .side-card img { margin-top: -46px; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .anatomy-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .callout { display: none; }
  .bench-tiles { grid-template-columns: repeat(2, 1fr); }
  .bench-row { grid-template-columns: 1fr 1fr .7fr; }
  .bench-row .what { display: none; }
  .scale-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cast-grid { grid-template-columns: 1fr; }
  .browser { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .helix .rung, .chip-fall, .helix-mascot, .bench-float, .resolve-card .pulse { animation: none !important; }
  .chip-fall { opacity: 0; }
}

/* ============================================================
   STORY LAYER — chapters, annotations, payoff, people
   ============================================================ */

/* chapter ribbon: the strands carry the story between sections */
.chapter-band { text-align: center; padding: 2.8rem 0 .4rem; }
.chapter-band--paper { background: var(--paper); }
.chapter-band--deep  { background: #0b1626; }
.chapter-band--navy  { background: #16294a; }
.chapter__weave { display: block; margin: 0 auto .7rem; }
.chapter__weave .cw { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chapter__weave .cw--care { stroke: #2a8f6b; }
.chapter__weave .cw--claims { stroke: #d97706; }
.reveal-go .chapter__weave .cw, .chapter__weave .cw { animation: draw 1.4s var(--ease) forwards; }
.chapter__weave .cw-node { fill: #cda23d; animation: nodepulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.chapter-band--deep .chapter__weave .cw--care, .chapter-band--navy .chapter__weave .cw--care { stroke: #3ecf95; }
.chapter-band--deep .chapter__weave .cw--claims, .chapter-band--navy .chapter__weave .cw--claims { stroke: #f0b34e; }
.chapter__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-muted); }
.chapter-band--deep .chapter__label, .chapter-band--navy .chapter__label { color: #8fa7c4; }
.chapter__label b { color: var(--amber-deep); font-weight: 600; }
.chapter-band--deep .chapter__label b, .chapter-band--navy .chapter__label b { color: #f0b34e; }
.chapter__line { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); margin-top: .35rem; }
.chapter-band--deep .chapter__line, .chapter-band--navy .chapter__line { color: #c3d2e4; }

/* exhibit annotations: every screenshot teaches its value */
.exhibit__frame { position: relative; }
.exhibit__frame::after { /* intelligence scan on hover */
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(240,179,78,.16), transparent);
  opacity: 0; pointer-events: none;
}
.exhibit:hover .exhibit__frame::after { opacity: 1; animation: scanline 1.6s var(--ease) infinite; }
@keyframes scanline { from { top: -30%; } to { top: 110%; } }
.exhibit figcaption .val { display: block; font-style: normal; color: #f0b34e; margin-top: .35rem; }
.exhibit figcaption .val::before { content: "→ the value: "; color: #8fa7c4; }

/* payoff: from compliance to care */
.payoff { background: linear-gradient(180deg, #0b1626 0%, #122340 100%); color: #eef3f9; position: relative; overflow: hidden; }
.payoff .eyebrow { color: #f0b34e; }
.payoff h2.payoff-h { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.02; }
.payoff h2.payoff-h .c { color: #f0b34e; }
.payoff .lede { color: #c3d2e4; }
.payoff .lede strong { color: #fff; }
.value-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 2.4rem; counter-reset: vc; list-style: none; padding: 0; }
.value-chain li {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(126,166,214,.22);
  border-radius: var(--r); padding: 1.1rem 1.1rem 1.2rem; counter-increment: vc;
}
.value-chain li::before { content: "0" counter(vc); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; color: #f0b34e; }
.value-chain li h4 { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: .98rem; margin-top: .35rem; }
.value-chain li p { font-size: .84rem; color: #9fb2ca; margin-top: .35rem; line-height: 1.5; }
.value-chain li:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.85rem; top: 42%; color: #f0b34e; font-size: 1.1rem; z-index: 2;
}
.value-chain li:last-child { border-color: rgba(62,207,149,.5); background: rgba(62,207,149,.08); }
.dollar-river { display: block; margin: 2.6rem auto 0; max-width: 720px; width: 100%; }
.dollar-river text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.dollar-river .lbl-fight { fill: #e2604e; }
.dollar-river .lbl-care { fill: #3ecf95; }
.dollar-river .lbl-src { fill: #8fa7c4; }

/* people: the real bench */
.people { background: var(--paper); }
.people-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.person { text-align: center; }
.person .ava {
  width: 96px; height: 96px; margin: 0 auto .7rem; border-radius: 50%;
  background: linear-gradient(150deg, #d8efe3, #e9f6ef);
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.5rem; color: #2a8f6b;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.person .ava img { width: 100%; height: 100%; object-fit: cover; }
.person:hover .ava { transform: translateY(-5px) scale(1.04); box-shadow: var(--shadow); }
.person h4 { font-family: var(--font-sans); font-weight: 600; font-size: .92rem; }
.person .r { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-top: .25rem; line-height: 1.5; }

@media (max-width: 980px) {
  .value-chain { grid-template-columns: 1fr 1fr; }
  .value-chain li:not(:last-child)::after { display: none; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   MODERN WINDOW FRAMES — screenshots with context + annotations
   ============================================================ */
.window { border-radius: 12px; overflow: hidden; background: #f7f6f2; border: 1px solid rgba(126,166,214,.3); box-shadow: 0 42px 84px -26px rgba(0,0,0,.68); }
.window__bar { display: flex; align-items: center; gap: .55rem; padding: .55rem .85rem; background: #0f1f38; }
.window__bar .wd { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wd--r { background: #e2604e; } .wd--y { background: #f0b34e; } .wd--g { background: #2fbf8f; }
.window__url { flex: 1; text-align: center; font-family: var(--font-mono); font-size: .66rem; color: #93a9c4; background: rgba(255,255,255,.07); border-radius: 6px; padding: .28rem .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__env { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: #3ecf95; border: 1px solid rgba(62,207,149,.45); border-radius: 999px; padding: .22rem .6rem; white-space: nowrap; }
.window__ctx { display: block; padding: .5rem .95rem; background: #16294a; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; color: #c3d2e4; border-top: 1px solid rgba(255,255,255,.06); }
.window__ctx b { color: #ffd98f; font-weight: 600; }
.window__shot { position: relative; }
.window__shot img { width: 100%; display: block; }

/* numbered annotation markers on the shot */
.marker {
  position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: #0d1a2d; border: 2px solid #f0b34e; color: #ffd98f;
  font-family: var(--font-mono); font-size: .7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.45); z-index: 5;
}
.marker::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(240,179,78,.55); animation: ringpulse 2.4s ease-out infinite; }
.marker--green { border-color: #3ecf95; color: #9af0d2; }
.marker--green::after { border-color: rgba(62,207,149,.55); }
@keyframes ringpulse { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

/* legend rows in exhibit captions */
.exhibit figcaption .leg { display: flex; align-items: baseline; gap: .55rem; margin-top: .4rem; color: #aebfd4; }
.exhibit figcaption .leg b {
  flex: none; width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(240,179,78,.6); color: #ffd98f; font-size: .58rem; letter-spacing: 0; transform: translateY(2px);
}
.exhibit figcaption .leg span { color: #d7e2ef; }
@media (prefers-reduced-motion: reduce) { .marker::after { animation: none; } }

/* ============================================================
   GROUNDING — raw EDI, UB-04 facsimile, wedge bars
   ============================================================ */
.edi { background: #0d1a2d; border-radius: 10px; padding: 1.1rem 1.3rem; max-width: 660px; margin: 1.6rem auto 0; border: 1px solid rgba(126,166,214,.25); }
.edi__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #8fa7c4; margin: 0 0 .6rem; }
.edi pre { margin: 0; font-family: var(--font-mono); font-size: .78rem; line-height: 1.7; color: #c3d2e4; overflow-x: auto; }
.edi pre b { color: #ffd98f; font-weight: 600; background: rgba(240,179,78,.12); }
.edi pre .cmt { color: #5d7798; }

.ub04 { background: #fff; border: 2px solid #d26a60; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); }
.ub04__head { display: flex; justify-content: space-between; padding: .5rem .9rem; background: #fdf0ee; border-bottom: 2px solid #d26a60; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: #b3453b; }
.ub04__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.ub04__fl { border-right: 1px solid #f0c0ba; border-bottom: 1px solid #f0c0ba; padding: .45rem .6rem .5rem; min-width: 0; }
.ub04__fl .k { font-family: var(--font-mono); font-size: .52rem; letter-spacing: .06em; text-transform: uppercase; color: #c4655c; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub04__fl .v { font-family: var(--font-mono); font-size: .8rem; color: #14233c; font-weight: 600; margin-top: .15rem; display: block; white-space: nowrap; }
.ub04__fl--hot { background: rgba(240,179,78,.14); }
.ub04 figcaption, .ub04__note { padding: .5rem .9rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; color: #8a6b64; background: #fdf6f5; }

.wedge { margin-top: 2rem; }
.wedge-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 70px; gap: .9rem; align-items: center; margin-bottom: .65rem; }
.wedge-name { font-size: .85rem; color: var(--paper-on-dark); text-align: right; }
.wedge-bar { height: 14px; background: rgba(126,166,214,.14); border-radius: 99px; overflow: hidden; }
.wedge-bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.3s var(--ease) .2s; }
.reveal.in .wedge-bar i { width: var(--w); }
.wedge-val { font-family: var(--font-mono); font-size: .8rem; color: #fff; font-variant-numeric: tabular-nums; }
.sig-table { margin-top: 2rem; border-top: 1px solid rgba(126,166,214,.25); }
.sig-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(126,166,214,.15); font-size: .82rem; }
.sig-row .s { color: #fff; font-weight: 600; }
.sig-row .p { color: #c3d2e4; }
.sig-row .c { color: #9af0d2; }
.sig-row--head { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.sig-row--head span { color: #8fa7c4 !important; font-weight 400; }
@media (max-width: 760px) { .ub04__grid { grid-template-columns: repeat(3, 1fr); } .sig-row { grid-template-columns: 1fr; gap: .25rem; } }

/* ============================================================
   THE MAP — story overview strip + sticky chapter rail
   ============================================================ */
.storymap { margin-top: 2.6rem; }
.storymap__title { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #8fa7c4; text-align: center; margin: 0 0 1.1rem; }
.storymap__track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.storymap__track::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 9px; height: 2px;
  background: linear-gradient(90deg, #3ecf95, #f0b34e); opacity: .55; border-radius: 2px;
}
.sm-node { position: relative; text-align: center; padding-top: 24px; transition: transform .25s var(--ease); }
.sm-node::before {
  content: ""; position: absolute; top: 2px; left: 50%; margin-left: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #0d1a2d; border: 2.5px solid #f0b34e;
  box-shadow: 0 0 10px rgba(240,179,78,.4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.sm-node:nth-child(odd)::before { border-color: #3ecf95; box-shadow: 0 0 10px rgba(62,207,149,.4); }
.sm-node:hover { transform: translateY(-3px); }
.sm-node:hover::before { transform: scale(1.25); }
.sm-node b { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .16em; color: #f0b34e; font-weight: 600; }
.sm-node:nth-child(odd) b { color: #3ecf95; }
.sm-node span { display: block; font-weight: 600; font-size: .88rem; color: #fff; margin-top: .15rem; }
.sm-node em { display: block; font-style: normal; font-size: .7rem; color: #8fa7c4; margin-top: .15rem; line-height: 1.35; }
@media (max-width: 860px) {
  .storymap__track { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
  .storymap__track::before { display: none; }
}

/* sticky chapter rail (desktop) */
.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: .9rem;
}
.rail a { display: flex; align-items: center; gap: .55rem; justify-content: flex-end; text-decoration: none; }
.rail a .lbl {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: #8fa7c4; opacity: 0; transform: translateX(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  background: rgba(13,26,45,.85); padding: .25rem .55rem; border-radius: 99px; border: 1px solid rgba(126,166,214,.25);
}
.rail a i { width: 9px; height: 9px; border-radius: 50%; background: rgba(126,166,214,.4); transition: all .25s var(--ease); flex: none; }
.rail a:hover .lbl { opacity: 1; transform: none; }
.rail a.active i { background: #f0b34e; box-shadow: 0 0 0 4px rgba(240,179,78,.25); transform: scale(1.2); }
.rail a.active .lbl { opacity: 1; transform: none; color: #ffd98f; }
@media (max-width: 1180px) { .rail { display: none; } }

/* ============================================================
   THE NARRATED TOUR — auto-playing guided demo
   ============================================================ */
.demoplayer { max-width: 980px; margin: 2.6rem auto 0; }
.demoplayer .window__shot { aspect-ratio: 1480 / 715; background: #f7f6f2; }
.demoplayer .window__shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center;
  opacity: 0; transition: opacity .7s var(--ease);
}
.demoplayer .window__shot img.on { opacity: 1; }
.dp-caption {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #122340; border-radius: 0 0 12px 12px; padding: 1rem 1.2rem;
  border-top: 1px solid rgba(126,166,214,.2);
}
.dp-caption img { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.dp-step { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #f0b34e; margin: 0; }
.dp-text { margin: .25rem 0 0; color: #d7e2ef; font-size: .95rem; line-height: 1.55; min-height: 2.9em; }
.dp-text b { color: #fff; }
.dp-bar { height: 3px; background: rgba(126,166,214,.18); border-radius: 99px; overflow: hidden; margin-top: .6rem; }
.dp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ecf95, #f0b34e); }
.dp-bar i.run { animation: dpfill var(--dp-dur, 6.5s) linear forwards; }
@keyframes dpfill { to { width: 100%; } }
.dp-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.dp-dots button {
  width: 34px; height: 6px; border-radius: 99px; border: none; cursor: pointer;
  background: rgba(126,166,214,.25); transition: background .25s;
}
.dp-dots button.on { background: #f0b34e; }
.dp-dots button:hover { background: rgba(240,179,78,.6); }
@media (prefers-reduced-motion: reduce) { .dp-bar { display: none; } }

/* fix: ghost button on genome hero (was ink-on-navy, invisible) */
.hero-genome .btn--ghost { color: #fff; border-color: rgba(126,166,214,.4); }
.hero-genome .btn--ghost:hover { background: #fff; color: #14233c; border-color: #fff; }

/* richer DNA — care-strand + plan-type chips falling with the denials */
.chip-care, .chip-plan {
  position: absolute; z-index: 4; left: 50%; top: -28px; will-change: transform, opacity;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em; white-space: nowrap;
  padding: .26rem .55rem; border-radius: 999px;
  animation: carefall 11s linear infinite; opacity: 0;
}
.chip-care { border: 1px solid rgba(62,207,149,.55); background: rgba(62,207,149,.12); color: #9af0d2; }
.chip-plan { border: 1px solid rgba(126,166,214,.5); background: rgba(126,166,214,.12); color: #b9cce4; }
@keyframes carefall {
  0% { transform: translateY(0); opacity: 0; } 7% { opacity: .95; } 92% { opacity: .95; } 100% { transform: translateY(680px); opacity: 0; }
}

/* ============================================================
   LIVE DEMO SCENES — animated charts instead of screenshots
   ============================================================ */
.dp-stage { position: relative; aspect-ratio: 1480 / 760; background: #f7f6f2; overflow: hidden; }
.dp-scene { position: absolute; inset: 0; padding: clamp(.9rem, 2.5vw, 2rem); opacity: 0; pointer-events: none; transition: opacity .55s var(--ease); }
.dp-scene.on { opacity: 1; pointer-events: auto; }
.dps-kicker { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #b45309; margin: 0; }
.dps-h { font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 700; color: #14233c; font-family: var(--font-sans); margin: .3rem 0 0; font-variant-numeric: tabular-nums; }

/* scene 1: readiness tiles w/ fill bars */
.dps-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1.1rem; }
.dps-tile { border: 1px solid #e3ded3; border-radius: 8px; padding: .7rem .8rem; background: #fff; opacity: 0; transform: translateY(10px); }
.on .dps-tile { animation: tilein .5s var(--ease) forwards; }
.on .dps-tile:nth-child(2) { animation-delay: .25s; } .on .dps-tile:nth-child(3) { animation-delay: .5s; } .on .dps-tile:nth-child(4) { animation-delay: .75s; }
@keyframes tilein { to { opacity: 1; transform: none; } }
.dps-tile .v { font-weight: 700; font-size: clamp(.95rem, 1.8vw, 1.25rem); color: #14233c; font-variant-numeric: tabular-nums; }
.dps-tile .k { font-size: clamp(.58rem, 1.1vw, .72rem); color: #75809a; margin-top: .15rem; }
.dps-tile .fill { height: 5px; border-radius: 99px; background: #ece7dc; margin-top: .55rem; overflow: hidden; }
.dps-tile .fill i { display: block; height: 100%; width: 0; border-radius: 99px; }
.on .dps-tile .fill i { animation: fillgrow 1s var(--ease) forwards; animation-delay: inherit; }
@keyframes fillgrow { to { width: var(--w); } }
.dps-tile--ready { background: #ecf7f1; border-color: #bfe3d2; } .dps-tile--ready .v { color: #157a52; }

/* scene 2: path bars */
.dps-paths { margin-top: 1.1rem; display: grid; gap: .75rem; }
.dps-path { display: grid; grid-template-columns: minmax(86px, 130px) 1fr minmax(96px, 130px); gap: .8rem; align-items: center; }
.dps-path .nm { font-family: var(--font-mono); font-size: clamp(.62rem, 1.2vw, .78rem); font-weight: 600; text-align: right; }
.dps-path .tr { height: clamp(14px, 2.2vw, 22px); background: #ece7dc; border-radius: 99px; overflow: hidden; }
.dps-path .tr i { display: block; height: 100%; width: 0; border-radius: 99px; }
.on .dps-path i { animation: fillgrow 1.1s var(--ease) forwards; }
.on .dps-path:nth-child(2) i { animation-delay: .2s; } .on .dps-path:nth-child(3) i { animation-delay: .4s; } .on .dps-path:nth-child(4) i { animation-delay: .6s; }
.dps-path .amt { font-variant-numeric: tabular-nums; font-weight: 700; color: #14233c; font-size: clamp(.72rem, 1.4vw, .9rem); }

/* scene 3: claim resolve */
.dps-claim { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; align-items: stretch; }
.dps-card { border: 1px solid #e3ded3; border-radius: 10px; background: #fff; padding: .9rem 1rem; opacity: 0; transform: translateY(10px); }
.on .dps-card { animation: tilein .5s var(--ease) forwards; }
.on .dps-card:nth-child(2) { animation-delay: .5s; }
.dps-card .lbl { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #75809a; }
.dps-card .big { font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; font-variant-numeric: tabular-nums; color: #14233c; margin-top: .2rem; }
.dps-card .big.green { color: #157a52; }
.dps-card .sub { font-size: clamp(.66rem, 1.3vw, .8rem); color: #4d5a72; margin-top: .35rem; line-height: 1.5; }

/* scene 4: packet ticks */
.dps-list { margin: 1.1rem 0 0; padding: 0; list-style: none; max-width: 560px; }
.dps-list li { display: flex; gap: .6rem; align-items: baseline; padding: .42rem 0; border-bottom: 1px solid #efebe0; font-size: clamp(.7rem, 1.4vw, .88rem); color: #3a4458; opacity: 0; transform: translateX(-8px); }
.on .dps-list li { animation: tickin .4s var(--ease) forwards; }
.on .dps-list li:nth-child(2) { animation-delay: .35s; } .on .dps-list li:nth-child(3) { animation-delay: .7s; }
.on .dps-list li:nth-child(4) { animation-delay: 1.05s; } .on .dps-list li:nth-child(5) { animation-delay: 1.4s; } .on .dps-list li:nth-child(6) { animation-delay: 1.75s; }
@keyframes tickin { to { opacity: 1; transform: none; } }
.dps-list .ok { color: #157a52; font-weight: 700; } .dps-list .warn { color: #b26b17; font-weight: 700; }

/* scene 5: the signature */
.dps-sign { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 78%; text-align: center; }
.dps-approve { display: inline-block; background: var(--amber-cta); color: #fff; font-weight: 700; font-size: clamp(.95rem, 2vw, 1.2rem); border-radius: 12px; padding: .9rem 1.7rem; box-shadow: 0 18px 40px -10px rgba(217,119,6,.5); opacity: 0; transform: scale(.8); }
.on .dps-approve { animation: approvein .5s var(--ease) forwards; }
@keyframes approvein { to { opacity: 1; transform: scale(1); } }
.dps-filed { margin-top: 1.1rem; font-family: var(--font-mono); font-size: clamp(.62rem, 1.3vw, .78rem); letter-spacing: .14em; text-transform: uppercase; color: #157a52; border: 2px solid #157a52; border-radius: 8px; padding: .4rem .8rem; transform: rotate(-4deg) scale(.7); opacity: 0; }
.on .dps-filed { animation: stampin .45s var(--ease) .9s forwards; }
@keyframes stampin { to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.dps-next { margin-top: 1rem; font-family: var(--font-mono); font-size: clamp(.56rem, 1.1vw, .68rem); letter-spacing: .12em; text-transform: uppercase; color: #75809a; opacity: 0; }
.on .dps-next { animation: tilein .4s var(--ease) 1.5s forwards; }
@media (prefers-reduced-motion: reduce) {
  .on .dps-tile, .on .dps-card, .on .dps-list li, .on .dps-approve, .on .dps-filed, .on .dps-next { animation: none; opacity: 1; transform: none; }
  .on .dps-tile .fill i, .on .dps-path i { animation: none; width: var(--w); }
}

/* ============================================================
   THE APP FRAME — demo that looks like the real product
   ============================================================ */
.appwin { display: flex; min-height: 100%; position: absolute; inset: 0; background: #f6f5f1; }
.appwin__side { width: 44px; flex: none; background: #0f1f38; display: flex; flex-direction: column; align-items: center; padding-top: .7rem; gap: .85rem; }
.appwin__side .lg { width: 22px; height: 22px; border-radius: 6px; background: #fff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.appwin__side .lg img { width: 18px; height: 18px; object-fit: contain; }
.appwin__side i { width: 16px; height: 16px; border-radius: 4px; background: rgba(126,166,214,.28); }
.appwin__side i.on { background: #f0b34e; }
.appwin__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.appwin__top { display: flex; align-items: center; gap: .7rem; padding: .45rem .9rem; background: #fff; border-bottom: 1px solid #e6e2d8; font-size: .64rem; }
.appwin__top .seal { width: 7px; height: 7px; border-radius: 50%; background: #2a8f6b; flex: none; }
.appwin__top .dept { font-weight: 700; color: #14233c; white-space: nowrap; }
.appwin__top .sub { color: #75809a; white-space: nowrap; }
.appwin__top .crumb { margin-left: auto; font-family: var(--font-mono); color: #4d5a72; white-space: nowrap; }
.appwin__top .me { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #e9f6ef; color: #157a52; font-family: var(--font-mono); font-size: .5rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.appwin__bar { display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem; background: #fff; border-bottom: 1px solid #e6e2d8; }
.appwin__bar .cn { font-family: var(--font-mono); font-size: .66rem; color: #14233c; white-space: nowrap; }
.appwin__bar .cn b { font-size: .8rem; }
.appwin__bar .track { flex: 1; height: 4px; border-radius: 99px; background: #ece7dc; overflow: hidden; }
.appwin__bar .track i { display: block; height: 100%; width: 1%; background: linear-gradient(90deg, #3ecf95, #f0b34e); transition: width .8s var(--ease); }
.appwin__bar .ghostbtn { font-size: .6rem; color: #4d5a72; border: 1px solid #d8d2c4; border-radius: 6px; padding: .3rem .6rem; white-space: nowrap; }
.appwin__bar .nextbtn {
  font-size: .64rem; font-weight: 700; color: #fff; background: var(--amber-cta);
  border-radius: 7px; padding: .38rem .7rem; white-space: nowrap; position: relative;
  box-shadow: 0 6px 16px -4px rgba(217,119,6,.55);
}
.nextbtn.pressed { animation: nextpress .5s var(--ease); }
@keyframes nextpress { 30% { transform: scale(.92); box-shadow: 0 2px 8px -2px rgba(217,119,6,.6); } 100% { transform: scale(1); } }
.appwin__content { flex: 1; position: relative; padding: clamp(.7rem, 1.8vw, 1.2rem); overflow: hidden; }
@media (max-width: 700px) { .appwin__top .sub, .appwin__top .crumb { display: none; } }

/* claim header card inside app */
.acl { background: #fff; border: 1px solid #e6e2d8; border-radius: 8px; padding: .8rem .95rem; }
.acl__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.acl__code { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; color: #b3453b; }
.acl__name { font-family: var(--font-serif); font-size: clamp(1rem, 2vw, 1.3rem); color: #14233c; margin-top: .2rem; }
.acl__sub { font-size: .64rem; color: #75809a; margin-top: .15rem; }
.acl__amt { text-align: right; }
.acl__amt .l { font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: #75809a; }
.acl__amt .v { font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 700; color: #14233c; font-variant-numeric: tabular-nums; }
.acl__ready { display: inline-block; margin-top: .25rem; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .12em; color: #157a52; background: #e9f6ef; border-radius: 99px; padding: .15rem .5rem; }

/* filed overlay stamp inside app content */
.afiled {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(246,245,241,.88); backdrop-filter: blur(2px); opacity: 0; pointer-events: none;
}
.on .afiled { animation: tilein .4s var(--ease) 1.1s forwards; }
.afiled .stamp { font-family: var(--font-mono); font-size: clamp(.8rem, 1.8vw, 1.1rem); letter-spacing: .2em; text-transform: uppercase; color: #157a52; border: 3px solid #157a52; border-radius: 10px; padding: .5rem 1.1rem; transform: rotate(-5deg); }
.afiled .nx { margin-top: .9rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: #4d5a72; }

/* shift tally scene */
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1rem; }
.tally .t { background: #fff; border: 1px solid #e6e2d8; border-radius: 8px; padding: .8rem .9rem; text-align: center; opacity: 0; transform: translateY(10px); }
.on .tally .t { animation: tilein .5s var(--ease) forwards; }
.on .tally .t:nth-child(2) { animation-delay: .25s; } .on .tally .t:nth-child(3) { animation-delay: .5s; }
.tally .v { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.6vw, 1.8rem); color: #14233c; font-variant-numeric: tabular-nums; }
.tally .v.green { color: #157a52; }
.tally .k { font-size: .62rem; color: #75809a; margin-top: .2rem; }

/* ============================================================
   4 STAGES · 2 GATES — the staffing answer (payers)
   ============================================================ */
.gates { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: 2.4rem; align-items: stretch; }
.stagebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem .9rem; position: relative; }
.stagebox .sno { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.stagebox h4 { font-family: var(--font-sans); font-weight: 700; font-size: .92rem; margin-top: .3rem; color: var(--ink); }
.stagebox p { font-size: .72rem; color: var(--ink-muted); margin-top: .3rem; line-height: 1.5; }
.gatebox { background: var(--ink-panel); border-radius: var(--r); padding: 1rem .9rem; color: #fff; position: relative; border: 1px solid rgba(240,179,78,.5); }
.gatebox .sno { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: #f0b34e; }
.gatebox h4 { font-family: var(--font-sans); font-weight: 700; font-size: .92rem; margin-top: .3rem; color: #fff; }
.gatebox p { font-size: .72rem; color: #c3d2e4; margin-top: .3rem; line-height: 1.5; }
.gatebox::before { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; transform: rotate(45deg); background: #f0b34e; border-radius: 3px; }
@media (max-width: 900px) { .gates { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   ELITE POLISH — page fade, staggered reveals, mobile
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pagein .55s ease-out both; }
  @keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
}
/* staggered children for grids (class added by site.js) */
.reveal--stagger { opacity: 1 !important; transform: none !important; }
.reveal--stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal--stagger.in > * { opacity: 1; transform: none; }
.reveal--stagger.in > *:nth-child(2) { transition-delay: .07s; }
.reveal--stagger.in > *:nth-child(3) { transition-delay: .14s; }
.reveal--stagger.in > *:nth-child(4) { transition-delay: .21s; }
.reveal--stagger.in > *:nth-child(5) { transition-delay: .28s; }
.reveal--stagger.in > *:nth-child(6) { transition-delay: .35s; }
.reveal--stagger.in > *:nth-child(7) { transition-delay: .42s; }
.reveal--stagger.in > *:nth-child(8) { transition-delay: .49s; }
@media (prefers-reduced-motion: reduce) { .reveal--stagger > * { opacity: 1; transform: none; transition: none; } }

/* smooth, consistent micro-interactions */
a, .btn { transition: color .2s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(217,119,6,.5); }

/* mobile: demo bar + helix + walls */
@media (max-width: 640px) {
  .appwin__bar .ghostbtn { display: none; }
  .appwin__bar { flex-wrap: wrap; row-gap: .4rem; }
  .appwin__side { width: 34px; }
  .dp-text { min-height: 4.2em; }
  .chip-fall, .chip-care, .chip-plan { font-size: .55rem; }
  .helix-mascot { right: 0; width: 120px; }
  .walls-grid { grid-template-columns: 1fr; }
  .hero-genome h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* mobile integrity: kill horizontal overflow, trim topbar */
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
  .topbar__inner span:nth-child(n+3) { display: none; }
}

/* mobile overflow root-cause: nowrap chips force grid wider than viewport */
@media (max-width: 980px) {
  .hero-genome__grid > *, .split > *, .appwin__main, .dps-claim > * { min-width: 0; }
  .cite, .statchip { white-space: normal; }
  .cite__card { white-space: normal; min-width: 200px; max-width: 80vw; }
  .helix-caption { max-width: 60%; }
}

/* small-screen nav: the long CTA + full lockup exceeded 390px */
@media (max-width: 540px) {
  .brand__name .sub, .brand__reg { display: none; }
  .nav__right .btn--primary { padding: .45rem .7rem; font-size: .78rem; }
  .nav__inner { gap: .4rem; }
}


/* ============================================================
   SCROLL PERFORMANCE
   ============================================================ */
/* pause the helix + chips when scrolled out of view (toggled by site.js) */
.helix-stage.paused .rung,
.helix-stage.paused .chip-fall, .helix-stage.paused .chip-care, .helix-stage.paused .chip-plan,
.helix-stage.paused .helix-mascot { animation-play-state: paused; }

/* the sticky nav blur was repainting on every scroll frame */
.nav--dark { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* skip rendering below-fold sections until they approach the viewport */
@media (min-width: 700px) {
  main > .section:not(.hero-genome) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}

/* ============================================================
   NEXT BUTTON — dictionary definition + richer app scenes
   ============================================================ */
.defcard {
  max-width: 880px; margin: 2.2rem auto 0;
  background: #122340; border-left: 4px solid #f0b34e; border-radius: 10px;
  padding: 1.5rem 1.8rem 1.4rem; color: #eef3f9;
}
.defcard .defword { font-family: var(--font-serif); font-size: 1.9rem; color: #fff; margin: 0; }
.defcard .defipa { font-family: var(--font-mono); font-size: .85rem; color: #8fa7c4; margin-left: .5rem; }
.defcard .defpos { font-style: italic; font-size: .9rem; color: #f0b34e; margin-left: .5rem; }
.defcard ol { margin: .9rem 0 0; padding-left: 1.3rem; }
.defcard ol li { color: #c3d2e4; font-size: .98rem; line-height: 1.6; margin-bottom: .55rem; }
.defcard ol li b { color: #fff; }
.defcard .defuse { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px dashed rgba(126,166,214,.3); font-family: var(--font-serif); font-style: italic; color: #9af0d2; font-size: .98rem; }
.defcard .defuse span { display: block; font-family: var(--font-mono); font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa7c4; margin-top: .4rem; }

/* dense claims table inside app scenes */
.aptbl { margin-top: .9rem; background: #fff; border: 1px solid #e6e2d8; border-radius: 8px; overflow: hidden; font-size: .66rem; }
.aptbl__row { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr 1fr .8fr .9fr; gap: .5rem; align-items: center; padding: .42rem .7rem; border-bottom: 1px solid #f0ece2; }
.aptbl__row:last-child { border-bottom: none; }
.aptbl__row--head { background: #0f1f38; color: #93a9c4; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; }
.aptbl__row .id { font-family: var(--font-mono); color: #b3453b; }
.aptbl__row .carc { font-family: var(--font-mono); background: #f4f1ea; border-radius: 4px; padding: .1rem .35rem; width: fit-content; color: #4d5a72; }
.aptbl__row .pay { color: #14233c; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aptbl__row .amt { font-variant-numeric: tabular-nums; font-weight: 700; color: #14233c; text-align: right; }
.aptbl__row .rdy { font-family: var(--font-mono); font-size: .52rem; letter-spacing: .1em; color: #157a52; background: #e9f6ef; border-radius: 99px; padding: .14rem .45rem; width: fit-content; }
.aptbl__row .go { font-size: .58rem; font-weight: 700; color: #fff; background: var(--amber-cta); border-radius: 5px; padding: .22rem .5rem; text-align: center; white-space: nowrap; }

/* claim field grid (like the real detail page) */
.fieldgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .7rem; }
.fieldgrid .fg { background: #fff; border: 1px solid #e6e2d8; border-radius: 6px; padding: .45rem .6rem; min-width: 0; }
.fieldgrid .fg .k { font-family: var(--font-mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; color: #75809a; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fieldgrid .fg .v { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; color: #14233c; margin-top: .12rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fieldgrid .fg .v.red { color: #b3453b; }
@media (max-width: 700px) { .fieldgrid { grid-template-columns: repeat(2, 1fr); } .aptbl__row { grid-template-columns: 1.4fr 1fr .9fr; } .aptbl__row .carc, .aptbl__row .rdy, .aptbl__row .go { display: none; } }
