/* Visuals v2 (2026-11-11): focus-crop console vignette, enforcement-layer diagram,
   promoted K-path, ivory bands, zoomed console crops.
   Colours are Kihan Brand Tokens v1.4 palette colours. Vermilion is used for refusal only.
   Loaded after site.css on the pages that use these visuals. */

:root {
  --periwinkle: #6976C5;
  --indigo-depth: #3449A5;
  --lavender-mist: #B0B8E4;
  --reverse-mist: #D7DBEF;
  --mineral-sage: #7F9984;
  --washi: #F4F1E8;
  --graphite: #292B35;
  --quiet-ink: #8F95AB;
  --vermilion: #D94A3A;
  --stage: radial-gradient(70% 60% at 88% 8%, rgba(215,219,239,.55), transparent 60%),
           radial-gradient(80% 70% at 4% 100%, rgba(52,73,165,.95), transparent 62%),
           linear-gradient(135deg, #3449A5 0%, #6976C5 52%, #B0B8E4 100%);
}

/* ---------- Console vignette: three enlarged cards on a lit stage ---------- */
.vignette { margin: 0; }
.vignette__stage {
  position: relative; overflow: hidden; border-radius: 32px;
  padding: clamp(36px, 6vw, 88px);
  background: var(--stage);
  box-shadow: 0 60px 160px rgba(105,118,197,.28), 0 0 0 1px rgba(255,255,255,.14) inset;
  display: grid; gap: clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}
/* logomark grid as texture */
.vignette__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.vcard {
  position: relative; z-index: 1; min-width: 0;
  background: #08090C; color: var(--reverse-mist);
  border: 1px solid rgba(255,255,255,.14); border-radius: 22px;
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: 0 30px 70px rgba(8,9,20,.40);
}
.vcard__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet-ink); margin: 0 0 16px; }
.vcard--counts { grid-column: 1 / span 5; }
.vcard--decision { grid-column: 6 / span 7; grid-row: span 2; }
.vcard--replay { grid-column: 1 / span 5; }

/* Ivory card: run totals */
.vcard--ivory { background: var(--washi); color: var(--graphite); border-color: rgba(8,9,12,.08); }
.vcard--ivory .vcard__label { color: var(--indigo-depth); }
.vcard--ivory .vcount__total b { color: var(--indigo-depth); }
.vcard--ivory .vcount__total span { color: var(--graphite); opacity: 1; }
.vcard--ivory .vlegend b { color: #08090C; }

/* Mist card: replay */
.vcard--mist { background: var(--reverse-mist); color: #08090C; border-color: rgba(8,9,12,.08); }
.vcard--mist .vcard__label { color: var(--indigo-depth); }
.vcard--mist .vreplay__row strong { color: #08090C; }
.vcard--mist p { color: var(--graphite); opacity: 1; }
.vcard--mist code { color: var(--indigo-depth); opacity: 1; }

.vcount__total { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.vcount__total b { font-size: clamp(56px, 5vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.vcount__total span { font-size: 17px; opacity: .8; }
.vbar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; gap: 3px; margin-bottom: 20px; }
.vbar i { display: block; }
.vbar .ok { background: var(--mineral-sage); } .vbar .hold { background: var(--hold-fill); } .vbar .deny { background: var(--vermilion); }
.vlegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16.5px; }
.vlegend li { display: flex; align-items: center; gap: 12px; }
.vlegend b { color: #fff; font-weight: 600; min-width: 42px; font-variant-numeric: tabular-nums; }
.dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.dot--ok { background: var(--mineral-sage); } .dot--hold { background: var(--hold-fill); } .dot--deny { background: var(--vermilion); }

.vdecision__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.vdecision__ask { font-size: 23px; line-height: 1.3; color: #fff; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill--deny { background: rgba(217,74,58,.16); color: #FF8E80; border: 1px solid rgba(217,74,58,.5); }
.vcode { font-family: var(--font-mono); font-size: 14.5px; line-height: 1.6; background: rgba(105,118,197,.10); border: 1px solid rgba(176,184,228,.18); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; color: var(--reverse-mist); overflow-x: auto; white-space: pre; }
.vfails { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vfails li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: rgba(217,74,58,.08); border-left: 3px solid var(--vermilion); }
.vfails .x { color: #FF8E80; font-weight: 700; line-height: 1.4; }
.vfails strong { display: block; color: #fff; font-weight: 600; font-size: 17px; line-height: 1.35; margin-bottom: 2px; }
.vfails code { font-family: var(--font-mono); font-size: 12.5px; color: var(--quiet-ink); }
.vdecision__foot { margin: 20px 0 0; font-size: 15px; color: var(--quiet-ink); line-height: 1.55; }

.vreplay__row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vreplay__check { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mineral-sage); color: #08090C; flex: none; }
.vreplay__check svg { width: 22px; height: 22px; }
.vreplay__row strong { font-size: 22px; color: #fff; font-weight: 600; letter-spacing: -.015em; }
.vreplay p { margin: 0 0 8px; font-size: 16px; opacity: .85; line-height: 1.5; }
.vreplay code { font-family: var(--font-mono); font-size: 13px; opacity: .7; }

.vignette figcaption { font-size: 14px; color: var(--quiet-ink); padding: 18px 4px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.vignette figcaption a { color: var(--reverse-mist); border-bottom: 1px solid rgba(105,118,197,.7); }

/* compact variant (homepage, beside text) */
.vignette--compact .vignette__stage { grid-template-columns: minmax(0, 1fr); padding: clamp(28px, 4.4vw, 56px); }
.vignette--compact .vcard--decision { grid-column: auto; grid-row: auto; }
.vignette--compact .vmini { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.vmini .vcard { padding: 20px 22px; }
.vmini .vcount__total b { font-size: 44px; }
.vmini .vcount__total { margin-bottom: 12px; }
.vmini .vbar { margin-bottom: 0; }
.vmini .vreplay__row { margin-bottom: 8px; }
.vmini .vreplay__row strong { font-size: 18px; }
.vmini .vreplay__check { width: 34px; height: 34px; }
.vmini .vreplay__check svg { width: 18px; height: 18px; }
.vmini p { font-size: 14.5px; margin: 0; }

@media (max-width: 900px) {
  .vignette__stage { grid-template-columns: minmax(0, 1fr); }
  .vcard--counts, .vcard--decision, .vcard--replay { grid-column: auto; grid-row: auto; }
  .vcard--decision { order: -1; }
}
@media (max-width: 520px) {
  .vignette__stage { border-radius: 24px; padding: 22px; gap: 18px; }
  .vcard { padding: 22px; }
  .vdecision__head { flex-direction: column; gap: 12px; }
  .vdecision__ask { font-size: 20px; }
  .vcode { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
  .vignette--compact .vmini { grid-template-columns: 1fr; }
}

/* ---------- Stage diagram: Inktomi checks at every stage, the permit is the last line ---------- */
.stages { margin: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.stages__stage {
  border-radius: 32px; padding: clamp(28px, 4.5vw, 64px) clamp(20px, 3.5vw, 56px);
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(105,118,197,.40), transparent 65%),
    radial-gradient(50% 80% at 8% 100%, rgba(52,73,165,.50), transparent 70%),
    #0B0D18;
  border: 1px solid rgba(176,184,228,.18);
  box-shadow: 0 50px 140px rgba(52,73,165,.25);
}
.stages svg { width: 100%; height: auto; display: block; overflow: visible; }
.stages .st-wide { display: block; } .stages .st-tall { display: none; }
@media (max-width: 760px) { .stages .st-wide { display: none; } .stages .st-tall { display: block; max-width: 440px; margin: 0 auto; } .stages__stage { padding: 22px 14px; border-radius: 24px; } }
.st-line { fill: none; stroke: var(--lavender-mist); stroke-width: 5; stroke-linecap: round; }
.st-line--after { stroke-width: 3; stroke-dasharray: 3 9; opacity: .7; }
.st-path--bypass { fill: none; stroke: #FF8E80; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.st-bylabel { font-family: var(--font-body); font-size: 15px; fill: #FFB3AA; }
.st-node { fill: #08090C; stroke: var(--lavender-mist); stroke-width: 4; }
.st-node--commit { fill: var(--lavender-mist); stroke: #fff; stroke-width: 2; }
.st-label { font-family: var(--font-body); font-size: 15px; fill: var(--reverse-mist); }
.st-label--strong { font-weight: 600; fill: #fff; font-size: 16px; }
.st-ring { fill: #08090C; stroke: var(--periwinkle); stroke-width: 3; }
.st-stem, .st-feed { fill: none; stroke: var(--periwinkle); stroke-width: 2; }
.st-feed { stroke: rgba(105,118,197,.55); stroke-dasharray: 2 5; }
.st-stem--after { stroke-dasharray: 3 6; }
.st-ring.st-stem--after { stroke-dasharray: 3 3; }
.st-box { fill: #0E1020; stroke: rgba(176,184,228,.30); stroke-width: 1.2; }
.st-card--tool .st-box { stroke: var(--periwinkle); stroke-width: 2; fill: #151A38; }
.st-card--after .st-box { stroke-dasharray: 5 5; fill: rgba(14,16,32,.7); }
.st-num { fill: var(--periwinkle); }
.st-card--after .st-num { fill: var(--lavender-mist); }
.st-numt { font-family: var(--font-body); font-size: 14px; font-weight: 600; fill: #08090C; }
.st-name { font-family: var(--font-body); font-size: 17.5px; font-weight: 600; fill: #fff; letter-spacing: -.01em; }
.st-role { font-family: var(--font-body); font-size: 14.5px; fill: var(--reverse-mist); opacity: .9; }
.st-deny { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; fill: #FF8E80; }
.st-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: #FF9C90; }
.st-tag--after { fill: var(--lavender-mist); }
.st-rail rect { fill: var(--periwinkle); }
.st-railtag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; fill: #08090C; }
.st-railname { font-family: var(--font-body); font-size: 21px; font-weight: 600; fill: #08090C; letter-spacing: -.01em; }
.st-railrole { font-family: var(--font-body); font-size: 15px; fill: #08090C; }
@media (max-width: 760px) {
  .st-name { font-size: 19px; } .st-role, .st-deny { font-size: 16px; } .st-tag { font-size: 12.5px; }
  .st-label { font-size: 17px; } .st-railname { font-size: 22px; } .st-railrole { font-size: 16px; }
}
.st-token { offset-rotate: 0deg; }
.st-token--ok { fill: #fff; filter: drop-shadow(0 0 8px rgba(176,184,228,1)); animation: ly-run 5.5s cubic-bezier(.45,0,.25,1) infinite; }
.st-token--bypass { fill: #FF8E80; filter: drop-shadow(0 0 6px rgba(217,74,58,.9)); animation: ly-run-stop 5.5s cubic-bezier(.45,0,.25,1) infinite 1.2s; }
@keyframes ly-run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 85% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes ly-run-stop { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 70% { offset-distance: 100%; opacity: 1; } 78%, 100% { offset-distance: 100%; opacity: 0; } }
.st-stop { transform-box: fill-box; transform-origin: center; animation: ly-flash 5.5s ease-out infinite 1.2s; }
@keyframes ly-flash { 0%, 66% { opacity: .5; transform: scale(1); } 72% { opacity: 1; transform: scale(1.25); } 82%, 100% { opacity: .9; transform: scale(1); } }
.stages figcaption { font-size: 14.5px; color: var(--quiet-ink); margin-top: 20px; max-width: 820px; line-height: 1.6; }

/* ---------- K-path promotion ---------- */
.kfig--lit svg { max-height: 600px; }
.kfig--lit .k-label { font-size: 17px; fill: var(--reverse-mist); }
.kfig--lit .k-label--dim { opacity: 1; fill: #FF9C90; }
.kfig--lit .k-label--strong { font-size: 18px; fill: #fff; }
.kfig--lit .k-stop { stroke: var(--vermilion); stroke-width: 3; stroke-linecap: round; }
.kfig--lit .k-stop-ring { fill: #08090C; stroke: var(--vermilion); stroke-width: 2.5; }
@media (max-width: 600px) { .kfig--lit .k-label { font-size: 26px; } }

/* ---------- Ivory band (section rhythm) ---------- */
.band-ivory { background: var(--washi); color: var(--graphite); }
.band-ivory h2, .band-ivory h3 { color: #08090C; }
.band-ivory .eyebrow::before { background: var(--indigo-depth); }
.band-ivory .eyebrow { color: var(--indigo-depth); opacity: 1; }
.band-ivory .muted { opacity: .88; }
.band-ivory .stat + .stat { border-color: rgba(52,73,165,.18); }
.band-ivory .stat__src { opacity: .75; }
.band-ivory .why-note { color: var(--graphite); }
.band-ivory .stat__value { font-size: clamp(60px, 7vw, 96px); font-weight: 600; color: var(--indigo-depth); letter-spacing: -.04em; }
.band-ivory .stats { margin-top: 24px; }

/* ---------- Big figure ---------- */
.fact--big { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; margin: 28px 0 32px; }
.fact--big b { font-size: clamp(60px, 6.4vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -.04em; background: linear-gradient(180deg, #FFFFFF 20%, var(--lavender-mist) 70%, var(--periwinkle)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact--big span { font-size: 14.5px; max-width: 420px; }

/* ---------- Zoomed console crops on a lit stage (product page tabs) ---------- */
.frame.zoom {
  padding: clamp(22px, 4vw, 56px); border-radius: 30px;
  background: var(--stage);
  box-shadow: 0 50px 140px rgba(105,118,197,.24);
}
.zoom__win { display: block; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 70px rgba(8,9,20,.5); border: 1px solid rgba(255,255,255,.16); background: #0b0b0d; }
.zoom__win img { border-radius: 0 !important; display: block; height: auto; }
.frame.zoom video { border-radius: 16px !important; box-shadow: 0 30px 70px rgba(8,9,20,.5); }
.frame.zoom figcaption { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; padding: 8px 14px; border-radius: 12px; background: rgba(8,9,12,.78); color: var(--reverse-mist); opacity: 1; font-size: 13.5px; }
.frame.zoom figcaption .view-full { color: var(--lavender-mist); }

/* ---------- More air around the new visuals ---------- */
.product-shot { margin-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(24px, 3vw, 40px); }
#product .proof-grid { gap: clamp(48px, 7vw, 112px); }

@media (max-width: 760px) {
}
@media (prefers-reduced-motion: reduce) {
  .st-token { display: none; }
  .st-stop { animation: none; opacity: 1; }
}

/* K-path: lit backdrop and brighter receding arms */
.kfig--lit { position: relative; isolation: isolate; }
.kfig--lit::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(105,118,197,.38), rgba(52,73,165,.12) 60%, transparent); pointer-events: none; }
.kfig--lit svg > path[stroke^="url(#kUp)"], .kfig--lit svg > path[stroke^="url(#kLow)"] { opacity: .8; }
