/* /identity/: Double Agent Identity. Builds on site.css (frame, rows, win, stamp, badge, btn, reticle).
   Wider canvas, big type and one accent per chapter: gold (identity), blue (claims), green (record). */

.idv { --max: 1440px; --blue: var(--globe-city); }
.idv-page { position: relative; overflow: clip;
  /* One continuous wash instead of section dividers: warm at the top, then the three chapter accents. */
  background: linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--gold) 4%, transparent) 22%, color-mix(in srgb, var(--blue) 4%, transparent) 42%,
    color-mix(in srgb, var(--human) 4%, transparent) 60%, transparent 82%); }
.idv-page > .row { border-bottom: 0; }

/* The thread: one line down the page that fills with each chapter's colour as you scroll */
.idv-thread { position: absolute; left: clamp(14px, 2.4vw, 40px); top: var(--thread-top, 100vh); height: var(--thread-h, 0px); width: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent); }
.idv-thread-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0px); border-radius: 2px;
  background: linear-gradient(180deg, var(--gold) 0, var(--agent) 22%, var(--blue) 45%, var(--human) 70%, var(--gold) 100%);
  background-size: 100% var(--thread-h, 100%); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 45%, transparent); }
.idv-thread-fill::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 16%, transparent); }
.idv-node { position: absolute; left: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); transition: border-color .4s, background-color .4s, transform .4s; }
.idv-node.lit { border-color: var(--node, var(--gold)); background: var(--node, var(--gold)); transform: scale(1.15); }
.idv h2 { letter-spacing: -0.055em; }
.idv-sub { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 34rem; }
.idv-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.01em; color: var(--accent, var(--muted)); }
.idv-eyebrow span { font: 500 0.75rem/1 var(--mono); padding: 4px 7px; border: 1px solid currentColor; border-radius: var(--r-pill); }

/* ---------- Hero: centered statement, the demo spanning the width below ---------- */
.idv-hero { display: grid; justify-items: center; gap: clamp(56px, 6vw, 88px); padding: clamp(88px, 11vw, 160px) clamp(24px, 5vw, 96px) clamp(88px, 10vw, 150px); text-align: center; }
.idv-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 18%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(40% 35% at 85% 70%, color-mix(in srgb, var(--human) 10%, transparent), transparent 70%),
    radial-gradient(40% 35% at 12% 75%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%);
}
.idv-copy { position: relative; z-index: 1; display: grid; justify-items: center; }
.idv-launch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 0 24px; }
.idv-beta { color: var(--ink); gap: 7px; }
.idv-beta i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: idv-ping 2.2s ease-out infinite; }
.idv-hero h1 { font-size: clamp(2.75rem, 7.4vw, 7rem); letter-spacing: -0.065em; line-height: 0.95; max-width: 14ch; margin: 0 0 26px; }
.idv-em { white-space: nowrap; background: linear-gradient(100deg, var(--agent) 10%, var(--gold) 45%, var(--human) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idv-hero .lede { font-size: clamp(1.125rem, 1.6vw, 1.4375rem); line-height: 1.5; color: var(--muted); max-width: 40rem; margin: 0 0 34px; }
.idv-hero .cta { justify-content: center; }

/* Console */
.idv-console { position: relative; z-index: 1; width: min(1180px, 100%); text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 50px 100px -40px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--gold) 12%, transparent); }
.idv-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; padding: 22px; overflow: hidden; }
.idv-body::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold) 14%, transparent), transparent); }
.idv-console[data-phase="checking"] .idv-body::after { opacity: 1; animation: idv-scan 1.3s ease-in-out; }
.idv-left { display: grid; gap: 16px; align-content: start; }
.idv-request { display: grid; gap: 9px; margin: 0; }
.idv-request div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.idv-request dt { font-size: 0.75rem; color: var(--faint); }
.idv-request dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.idv-request code { font-size: 0.8rem; }
.idv-tag { font-size: 0.6875rem; color: var(--muted); padding: 1px 7px; border: 1px dashed var(--line-strong); border-radius: var(--r-pill); }
.idv-checks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.idv-checks li { display: flex; align-items: center; gap: 8px; font-size: 0.8375rem; color: var(--muted); opacity: .35; transform: translateY(3px); transition: opacity .35s, transform .35s, color .35s; }
.idv-checks li.on { opacity: 1; transform: none; color: var(--ink); }
.idv-checks i { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.idv-checks li.on[data-state="ok"] i { background: var(--human); border-color: var(--human); }
.idv-checks li.on[data-state="bad"] i { background: var(--blown); border-color: var(--blown); }
.idv-checks li.on[data-state="none"] i { border-style: dashed; }
.idv-checks li.on[data-state="wait"] i { border-color: var(--gold); border-top-color: transparent; animation: idv-spin .8s linear infinite; }
.idv-checks li.on[data-state="ok"] i::after, .idv-checks li.on[data-state="bad"] i::after { content: ""; position: absolute; inset: 0; background: var(--on-ink); -webkit-mask: center / 10px no-repeat; mask: center / 10px no-repeat; }
.idv-checks li.on[data-state="ok"] i::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.idv-checks li.on[data-state="bad"] i::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.idv-checks em { margin-left: auto; font: 400 0.6875rem var(--mono); font-style: normal; color: var(--faint); white-space: nowrap; }
.idv-verdict { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.idv-stamp { font-size: 1rem; padding: 8px 12px 7px; opacity: 0; transform: rotate(-7deg) scale(1.6); }
.idv-stamp[data-status="verified"] { color: var(--human); }
.idv-stamp[data-status="absent"], .idv-stamp[data-status="unsupported"] { color: var(--bot); }
.idv-stamp[data-status="invalid"] { color: var(--blown); }
.idv-stamp[data-status="unavailable"] { color: var(--agent); }
.idv-console[data-phase="done"] .idv-stamp { animation: idv-slam .42s cubic-bezier(.2, .9, .3, 1.25) forwards; }
.idv-rule { font-size: 0.75rem; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-pill); opacity: 0; transition: opacity .3s .25s; }
.idv-console[data-phase="done"] .idv-rule { opacity: 1; }
.idv-rule.deny { color: var(--blown); border-color: color-mix(in srgb, var(--blown) 35%, var(--line)); }
.idv-readers { display: grid; gap: 12px; align-content: start; }
.idv-reader { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.idv-reader + .idv-reader { transition-delay: .12s; }
.idv-console[data-phase="done"] .idv-reader { opacity: 1; transform: none; }
.idv-reader .label { margin: 0 0 6px; font-size: 0.6875rem; }
.idv-human { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.idv-json code { display: block; background: none !important; border: 0 !important; padding: 0 !important; font: 400 0.72rem/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.idv-json .k { color: var(--muted); } .idv-json .s { color: var(--human); } .idv-json .n { color: var(--agent); }
.idv-cases { display: flex; gap: 2px; padding: 5px; border-top: 1px solid var(--line); background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.idv-cases button { position: relative; flex: 1 0 auto; font: 500 0.8125rem/1 var(--sans); color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 10px 12px; cursor: pointer; overflow: hidden; transition: color .15s, background-color .15s; }
.idv-cases button:hover { color: var(--ink); }
.idv-cases button[aria-current="true"] { color: var(--ink); background: var(--hover); font-weight: 600; }
.idv-cases button[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform-origin: left; animation: idv-progress var(--dwell, 6s) linear forwards; }
.idv-console[data-paused] .idv-cases button::after { animation-play-state: paused; }

/* ---------- Statement ---------- */
.idv-statement { padding-block: clamp(120px, 16vw, 240px); text-align: center; }
.idv-statement p { margin: 0 auto; max-width: 22ch; font: 600 clamp(2rem, 4.6vw, 4rem)/1.08 var(--display); letter-spacing: -0.05em; color: var(--faint); }
.idv-statement span { color: var(--ink); }
.idv-statement .a1 { color: var(--agent); } .idv-statement .a2 { color: var(--blue); } .idv-statement .a3 { color: var(--human); }

/* ---------- Chapters: pinned stages. Each chapter is tall; its stage stays centred on screen while
   the story plays in three steps (data-step, set from scroll) and --p runs 0 → 1 across the chapter. ---------- */
.idv-chapter { --accent: var(--muted); height: 260vh; padding: 0 clamp(24px, 6.5vw, 120px); }
.idv-chapter.c1 { --accent: var(--agent); } .idv-chapter.c2 { --accent: var(--blue); } .idv-chapter.c3 { --accent: var(--human); }
.idv-stage { position: sticky; top: 64px; height: calc(100vh - 64px); min-height: 640px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 128px); align-items: center; }
.idv-stage::before { content: ""; position: absolute; inset: -10% -20%; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 55% at var(--glow-x, 72%) 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.idv-chapter.flip .idv-text { order: 2; }
.idv-chapter.flip { --glow-x: 28%; }
.idv-text, .idv-visual { position: relative; z-index: 1; min-width: 0; }
.idv-chapter h2 { font-size: clamp(3rem, 6.6vw, 6.25rem); line-height: 0.96; margin: 0 0 26px; }
.idv-chapter .idv-sub { font-size: clamp(1.125rem, 1.6vw, 1.4375rem); }

.idv-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; max-width: 30rem; }
.idv-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 1.0625rem; font-weight: 500; color: var(--faint); transition: color .4s; }
.idv-steps li span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); font: 500 0.8125rem/1 var(--mono); transition: border-color .4s, background-color .4s, color .4s; }
.idv-chapter[data-step="1"] .idv-steps li[data-at="1"], .idv-chapter[data-step="2"] .idv-steps li[data-at="2"], .idv-chapter[data-step="3"] .idv-steps li[data-at="3"] { color: var(--ink); }
.idv-chapter[data-step="1"] .idv-steps li[data-at="1"] span, .idv-chapter[data-step="2"] .idv-steps li[data-at="2"] span, .idv-chapter[data-step="3"] .idv-steps li[data-at="3"] span { border-color: var(--accent); background: var(--accent); color: var(--on-ink); }
.idv-chapter[data-step="2"] .idv-steps li[data-at="1"] span, .idv-chapter[data-step="3"] .idv-steps li[data-at="1"] span, .idv-chapter[data-step="3"] .idv-steps li[data-at="2"] span { border-color: var(--accent); color: var(--accent); }
.idv-answer { display: flex; gap: 10px; max-width: 32rem; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  opacity: .25; transition: opacity .6s; }
.idv-chapter[data-step="3"] .idv-answer { opacity: 1; }
.idv-answer span { color: var(--accent); font-weight: 700; }

/* 01: a copied card, then the real one, then the check */
.idv-cards { display: grid; min-height: 440px; align-items: center; }
.idv-card { grid-area: 1 / 1; position: relative; width: min(540px, 86%); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45); transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .8s, border-color .6s; }
.idv-card dl { display: grid; gap: 14px; margin: 0; padding: 26px 26px 78px; }
.idv-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.idv-card dt { font: 400 0.8125rem var(--mono); color: var(--faint); }
.idv-card dd { margin: 0; font: 500 0.9375rem var(--mono); }
.idv-card .win-bar code { font-size: 0.75rem; }
.idv-none { color: var(--blown); }
.idv-card-stamp { position: absolute; right: 20px; bottom: 20px; font-size: 1rem; opacity: 0; transform: rotate(-4deg) scale(1.6); transition: opacity .3s, transform .45s cubic-bezier(.2, .9, .3, 1.25); }
.idv-card.signed .idv-card-stamp { color: var(--human); }
.idv-card.forged .idv-card-stamp { color: var(--blown); }
.idv-card.forged { justify-self: center; transform: translateY(0) rotate(0); }
.idv-card.signed { justify-self: center; opacity: 0; transform: translateX(60%) rotate(8deg); }
.idv-chapter[data-step="2"] .idv-card.forged, .idv-chapter[data-step="3"] .idv-card.forged { justify-self: start; transform: rotate(-5deg) translateY(-40px); }
.idv-chapter[data-step="2"] .idv-card.signed, .idv-chapter[data-step="3"] .idv-card.signed { justify-self: end; opacity: 1; transform: rotate(2deg) translateY(60px); }
.idv-chapter[data-step="3"] .idv-card-stamp { opacity: 1; transform: rotate(-4deg) scale(1); }
.idv-chapter[data-step="3"] .idv-card.forged { opacity: .55; }
.idv-chapter[data-step="3"] .idv-card.signed { border-color: color-mix(in srgb, var(--human) 45%, var(--line)); }

/* 02: proven fields first, then the claims, then kept apart */
.idv-claims ul { list-style: none; margin: 0; padding: 8px 0; }
.idv-claims li { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px 26px; border-bottom: 1px solid var(--line); font-size: 0.9375rem;
  transition: opacity .5s, transform .5s, background-color .5s; }
.idv-claims li:last-child { border-bottom: 0; }
.idv-claims li span { color: var(--faint); font-size: 0.875rem; }
.idv-claims code { justify-self: start; font-size: 0.84rem; }
.idv-claims b { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); border: 1px dashed var(--line-strong); color: var(--muted); transition: all .5s; }
.idv-claims b.ok { border: 1px solid color-mix(in srgb, var(--human) 40%, var(--line)); color: var(--human); background: color-mix(in srgb, var(--human) 8%, transparent); }
.idv-claims .badge { color: var(--human); }
.dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--human); }
.idv-chapter.c2 li { opacity: .12; transform: translateX(-10px); }
.idv-chapter.c2[data-step="1"] li.p, .idv-chapter.c2[data-step="2"] li, .idv-chapter.c2[data-step="3"] li { opacity: 1; transform: none; }
.idv-chapter.c2 li.c:nth-child(4) { transition-delay: .08s; } .idv-chapter.c2 li.c:nth-child(5) { transition-delay: .16s; } .idv-chapter.c2 li.c:nth-child(6) { transition-delay: .24s; }
.idv-chapter.c2[data-step="3"] li.p { background: color-mix(in srgb, var(--human) 6%, transparent); }
.idv-chapter.c2[data-step="3"] li.c b { border-color: var(--blue); color: var(--blue); }
.idv-chapter.c2[data-step="3"] li.c:nth-child(3) { border-top: 2px dashed color-mix(in srgb, var(--blue) 45%, var(--line)); }

/* 03: the record fills as you scroll */
.idv-record-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 36px 30px; }
.idv-ring { position: relative; width: 210px; height: 210px; }
.idv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.idv-ring circle { fill: none; stroke: var(--line); stroke-width: 9; }
.idv-ring .arc { stroke: var(--human); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--v) / 100 * var(--fillp, 1)); }
.idv-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.idv-ring b { font: 650 3.25rem/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.idv-ring span { font-size: 0.8125rem; color: var(--muted); }
.idv-stats p { margin: 0 0 18px; font-size: 1rem; color: var(--muted); }
.idv-stats p b { color: var(--ink); }
.idv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.idv-bars li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 30px; gap: 12px; align-items: center; font-size: 0.875rem; color: var(--muted); }
.idv-bars i { height: 10px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.idv-bars i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * var(--barp, 1)); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--human)); }
.idv-bars em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.idv-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 16px 36px 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); opacity: .15; transition: opacity .6s; }
.idv-linked span { color: var(--human); }
.idv-linked code { font-size: 0.78rem; }
.idv-chapter.c3[data-step="3"] .idv-linked { opacity: 1; }

/* ---------- Where trust pays off: a bento of complete tiles ---------- */
.idv-head { margin-bottom: clamp(44px, 5.5vw, 80px); }
.idv-head h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1; margin: 0 0 16px; }
.idv-uses-row, .idv-flow-row { padding: clamp(112px, 13vw, 200px) clamp(24px, 6.5vw, 120px); }
.idv-bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 20px; }
.idv-bento li { --accent: var(--muted); position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--surface); transition: transform .3s, border-color .3s; }
.idv-bento li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.idv-bento .idv-eyebrow { margin-bottom: 4px; }
.idv-bento h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); letter-spacing: -0.045em; line-height: 1.05; }
.idv-bento p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 30rem; }
.t-commerce { --accent: var(--gold) !important; grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.t-commerce h3 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.t-market { --accent: var(--human) !important; } .t-api { --accent: var(--blue) !important; } .t-builders { --accent: var(--agent) !important; }
.t-enterprise { --accent: var(--gold) !important; background: #0C0C0D !important; border-color: #1F1F1F !important; }
.t-enterprise h3, .t-enterprise .idv-eyebrow { color: #F5F5F5; } .t-enterprise p { color: #A1A1A1 !important; }
.t-delegate { --accent: var(--blue) !important; }
.idv-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 0.9375rem; order: -1; }
.idv-pay code { font-size: 0.8rem; }
.idv-pay-ok { color: var(--human); font-weight: 600; font-size: 0.875rem; padding: 4px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--human) 10%, transparent); }

/* ---------- Flow ---------- */
.idv-flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.idv-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line); }
.idv-flow::after { content: ""; position: absolute; left: 10%; top: 27px; height: 2px; width: 80%; background: linear-gradient(90deg, var(--blue), var(--gold), var(--human)); transform-origin: left; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .idv-flow:not(.in)::after { transform: scaleX(0); }
.idv-flow li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding-top: 0; }
.idv-flow li::before { content: ""; width: 20px; height: 20px; margin: 18px 0 6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); box-shadow: 0 0 0 6px var(--paper); z-index: 1; transition: border-color .4s, background-color .4s; }
.idv-flow.in li::before { border-color: var(--gold); }
.idv-flow.in li.you::before { background: var(--human); border-color: var(--human); }
.idv-flow li:nth-child(2)::before { transition-delay: .4s; } .idv-flow li:nth-child(3)::before { transition-delay: .7s; }
.idv-flow li:nth-child(4)::before { transition-delay: 1s; } .idv-flow li:nth-child(5)::before { transition-delay: 1.3s; }
.idv-flow .n { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.03em; }
.idv-flow small { font-size: 0.8125rem; color: var(--muted); max-width: 16ch; }

/* ---------- Finale: a dark band in both themes ---------- */
.idv-finale { display: grid; justify-items: center; gap: 24px; text-align: center; padding-block: clamp(240px, 26vw, 400px) clamp(140px, 17vw, 260px); border-bottom: 0;
  background: linear-gradient(180deg, transparent 0, #0B0B0C 32%); color: #F5F5F5; overflow: hidden; }
.idv-finale::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 100%, rgba(201, 162, 74, 0.28), transparent 70%), radial-gradient(35% 30% at 20% 40%, rgba(79, 174, 132, 0.12), transparent 70%); }
.idv-finale > * { position: relative; }
.idv-finale h2 { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; }
.idv-finale .idv-sub { color: #A1A1A1; margin: 0 0 10px; }
.idv-finale .cta { justify-content: center; }
.idv-closing-stamp { font-size: 0.9375rem; color: #C9A24A; transform: rotate(-6deg); }
.idv-btn-light { background: #F5F5F5; color: #0B0B0C; border-color: #F5F5F5; }
.idv-btn-light:hover { background: #FFFFFF; }
.idv-btn-ghost { background: transparent; color: #F5F5F5; border-color: #3A3A3A; }
.idv-btn-ghost:hover { background: #1A1A1A; border-color: #555; }

/* ---------- Reveal on scroll (JS only; reduced motion is handled in site.css) ---------- */
.js .idv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .idv-reveal.in { opacity: 1; transform: none; }

@keyframes idv-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes idv-scan { from { top: -30%; } to { top: 100%; } }
@keyframes idv-spin { to { transform: rotate(360deg); } }
@keyframes idv-slam { 0% { opacity: 0; transform: rotate(-7deg) scale(1.6); } 70% { opacity: 1; transform: rotate(-4deg) scale(.96); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes idv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1000px) {
  .idv-thread { left: 8px; }
  .idv-body { grid-template-columns: 1fr; }
  .idv-chapter { height: auto; padding-block: clamp(72px, 12vw, 120px); }
  .idv-stage { position: relative; top: 0; height: auto; min-height: 0; grid-template-columns: 1fr; }
  .idv-chapter.flip .idv-text { order: 0; }
  .idv-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-commerce { grid-column: span 2; grid-row: span 1; }
  .idv-flow { grid-template-columns: 1fr; gap: 0; justify-items: start; }
  .idv-flow::before, .idv-flow::after { left: 9px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .idv-flow::after { background: linear-gradient(180deg, var(--blue), var(--gold), var(--human)); transform-origin: top; }
  .js .idv-flow:not(.in)::after { transform: scaleY(0); }
  .idv-flow li { grid-template-columns: 20px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding-bottom: 22px; }
  .idv-flow li::before { grid-row: span 2; margin: 2px 0 0; }
  .idv-flow small { max-width: none; }
}
@media (max-width: 640px) {
  .idv-thread { display: none; }
  .idv-checks, .idv-bento { grid-template-columns: 1fr; }
  .t-commerce { grid-column: span 1; }
  .idv-em { white-space: normal; }
  .idv-request div { grid-template-columns: 1fr; gap: 2px; }
  .idv-record-body { grid-template-columns: 1fr; justify-items: center; }
  .idv-ring { width: 170px; height: 170px; }
  .idv-card { width: 94%; }
  .idv-cards { min-height: 400px; }
  .idv-record-body { padding: 28px 20px; }
  .idv-claims li { grid-template-columns: 64px minmax(0, 1fr) auto; padding-inline: 14px; }
}
