/* =========================================================
   Cirya page (v2.0): one scroll-driven camera over a sample dashboard.
   The dashboard is real HTML at 1200×780, so it stays sharp at any zoom. cirya.js moves the camera:
   tilted intro, upright overview, then close-ups of each feature from a different angle.
   All figures are invented and re-randomised on every visit.
   ========================================================= */

.peka-cirya__head { min-height: auto; }
.peka-cirya__own { padding-top: 0 !important; background: var(--ink); }

/* ---------- Scroll story ---------- */
html.js .pk-zoom { position: relative; width: 100vw; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; height: calc(var(--n, 8) * 88vh); }
html.js .pk-zoom__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.js .pk-zoom__sticky::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 48vw; pointer-events: none; background: linear-gradient(90deg, var(--ink) 38%, rgba(10,10,10,.6) 70%, rgba(10,10,10,0)); }
html.js .pk-zoom__stage { position: absolute; inset: 0; perspective: 1800px; }
.pk-dash { position: absolute; left: 0; top: 0; width: 1200px; height: 780px; transform-origin: 0 0; will-change: transform; background: #0E0E0E; border: 1px solid #262626; color: #fff; font-family: var(--sans); font-size: 14px; line-height: 1.35; backface-visibility: hidden; }
.pk-dash * { box-sizing: border-box; }
.pk-dash [data-r], .pk-dash .pk-d-top, .pk-dash .pk-d-side { transition: opacity 450ms var(--ease-notice), outline-color 450ms; outline: 1px solid transparent; outline-offset: 8px; }
.pk-dash.has-focus [data-r]:not(.is-focus), .pk-dash.has-focus .pk-d-top, .pk-dash.has-focus .pk-d-side { opacity: .16; }
.pk-dash.has-focus [data-r].is-focus { outline-color: rgba(255,255,255,.28); }

.pk-d-top { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid #222; }
.pk-d-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.pk-d-logo i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: inset 0 0 0 4px #0E0E0E, inset 0 0 0 5.5px #fff; }
.pk-d-crumb { color: rgba(255,255,255,.8); }
.pk-d-crumb b { color: rgba(255,255,255,.45); font-weight: 400; }
.pk-d-sync { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.5); }
.pk-d-live { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.pk-d-who { display: flex; }
.pk-d-who i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-left: -6px; border: 2px solid #0E0E0E; background: #2A2A2A; font: 600 10px/1 var(--sans); font-style: normal; color: #fff; }
.pk-d-side { position: absolute; left: 0; top: 56px; bottom: 0; width: 200px; border-right: 1px solid #222; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.pk-d-side a { padding: 10px 12px; color: rgba(255,255,255,.45); font-size: 14px; border-left: 2px solid transparent; }
.pk-d-side a.is-on { color: #fff; background: #181818; border-left-color: var(--signal); }
.pk-d-host { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12px; color: rgba(255,255,255,.5); }
.pk-d-host svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.pk-d-card { background: #151515; border: 1px solid #262626; border-radius: 2px; }
.pk-d-h { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,.5); }
.pk-d-h b { font-weight: 500; color: rgba(255,255,255,.75); }
.pk-d-kpis { position: absolute; left: 220px; top: 76px; width: 960px; height: 130px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pk-d-kpi { position: relative; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.pk-d-kpi span { font-size: 12px; color: rgba(255,255,255,.5); }
.pk-d-kpi b { font: 800 32px/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pk-d-kpi em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.72); }
.pk-d-kpi svg { position: absolute; right: 14px; bottom: 14px; width: 92px; height: 26px; overflow: visible; }
.pk-d-kpi svg path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .7; }
.pk-d-chart { position: absolute; left: 220px; top: 226px; width: 640px; height: 300px; padding: 18px 20px; }
.pk-d-bars { position: absolute; left: 20px; right: 20px; top: 56px; bottom: 44px; display: flex; align-items: flex-end; gap: 16px; border-bottom: 1px solid #2A2A2A; }
.pk-d-bars i { flex: 1; height: var(--h, 50%); background: #333; transform-origin: bottom; transform: scaleY(var(--bars, 1)); }
.pk-d-bars i.is-hot { background: var(--signal); }
.pk-d-ticks { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 16px; }
.pk-d-ticks span { flex: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,.45); }
.pk-d-moves { position: absolute; left: 880px; top: 226px; width: 300px; height: 470px; padding: 18px; }
.pk-d-moves ul { list-style: none; margin: 10px 0 0; padding: 0; }
.pk-d-moves li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid #232323; font-size: 13px; }
.pk-d-moves li i { grid-row: 1 / span 2; width: 18px; height: 18px; border: 1px solid #3A3A3A; margin-top: 2px; position: relative; transition: background-color 250ms, border-color 250ms; }
.pk-d-moves li.is-done i { background: #fff; border-color: #fff; }
.pk-d-moves li.is-done i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #0E0E0E; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pk-d-moves li.is-flag.is-done i { background: var(--signal); border-color: var(--signal); }
.pk-d-moves li span { color: rgba(255,255,255,.62); }
.pk-d-moves li span b { display: block; color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.pk-d-moves li em { font-style: normal; color: #fff; }
.pk-d-moves li small { grid-column: 2; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.pk-d-partner { position: absolute; left: 220px; top: 546px; width: 310px; height: 154px; padding: 16px 18px; }
.pk-d-tog { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,.72); }
.pk-d-tog i { width: 30px; height: 16px; border-radius: 999px; background: #333; position: relative; }
.pk-d-tog i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #777; }
.pk-d-tog i.is-on { background: #fff; }
.pk-d-tog i.is-on::after { left: 16px; background: #0E0E0E; }
.pk-d-keys { position: absolute; left: 550px; top: 546px; width: 310px; height: 154px; padding: 18px; display: flex; gap: 16px; align-items: center; }
.pk-d-key { width: 48px; height: 48px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; }
.pk-d-keys b { display: block; font: 700 17px/1.2 var(--display); letter-spacing: -.015em; margin-bottom: 4px; }
.pk-d-keys span { font-size: 12px; color: rgba(255,255,255,.55); }
.pk-d-ai { position: absolute; left: 220px; top: 716px; width: 960px; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #383838; background: #121212; font-size: 15px; }
.pk-d-ai__k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.pk-d-ai__q { color: #fff; white-space: pre; }
.pk-d-ai__cur { width: 1.5px; height: 18px; background: #fff; margin-left: -10px; opacity: var(--cur, 0); }
.pk-d-ai__a { margin-left: 16px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); font-size: 13px; opacity: var(--ans, 0); transform: translateY(calc((1 - var(--ans, 0)) * 6px)); }

/* captions */
html.js .pk-zoom__caps { position: absolute; z-index: 3; top: 0; bottom: 0; left: max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 1280px) / 2)); width: min(31vw, 420px); display: grid; align-items: center; pointer-events: none; }
html.js .pk-zoom__cap { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 300ms var(--ease-exit), transform 300ms var(--ease-exit); }
@media (min-width: 900px) { html.js .pk-zoom__cap:first-child { align-self: start; padding-top: calc(var(--hdr, 64px) + clamp(1.5rem, 6vh, 4rem)); } }
html.js .pk-zoom__cap.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 520ms var(--ease-notice) 120ms, transform 520ms var(--ease-notice) 120ms; }
.pk-zoom__k { margin: 0 0 1rem; font: 500 .6875rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); font-variant-numeric: tabular-nums; }
.pk-zoom__cap h2 { margin: 0 0 1rem; font: 800 clamp(2rem, 3.4vw, 3.25rem)/1 var(--display) !important; letter-spacing: -.04em; }
.pk-zoom__cap p:not(.pk-zoom__k) { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--fg2); max-width: 34ch; }
.pk-zoom__demo { color: var(--light); text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.pk-zoom__demo:hover { background-size: 100% 2px; }
html.js .pk-zoom__bar { position: absolute; z-index: 3; bottom: 2.25rem; left: max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 1280px) / 2)); width: min(31vw, 420px); height: 1px; background: var(--line-dark); }
.pk-zoom__bar i { display: block; height: 2px; margin-top: -.5px; background: var(--light); transform-origin: left; transform: scaleX(var(--p, 0)); }
html.js .pk-zoom__note { position: absolute; z-index: 3; bottom: 1.75rem; right: max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 1280px) / 2)); margin: 0; font-size: .75rem; color: var(--fg3); }

@media (max-width: 899px) {
  html.js .pk-zoom { height: calc(var(--n, 8) * 80vh); }
  html.js .pk-zoom__sticky::before { inset: auto 0 0 0; width: auto; height: 58%; background: linear-gradient(0deg, var(--ink) 52%, rgba(10,10,10,0)); }
  html.js .pk-zoom__caps { top: auto; bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); left: clamp(1.25rem, 4vw, 3rem); right: clamp(1.25rem, 4vw, 3rem); width: auto; align-items: end; }
  .pk-zoom__cap h2 { font-size: 1.875rem !important; }
  .pk-zoom__cap p:not(.pk-zoom__k) { font-size: 1rem; }
  html.js .pk-zoom__bar { left: clamp(1.25rem, 4vw, 3rem); right: clamp(1.25rem, 4vw, 3rem); width: auto; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
  html.js .pk-zoom__note { right: auto; left: clamp(1.25rem, 4vw, 3rem); bottom: auto; top: calc(var(--hdr, 64px) + .75rem); }
}

/* reduced motion or no JS: one upright dashboard, then the captions as a plain list */
.pk-zoom.is-static, html:not(.js) .pk-zoom { height: auto !important; }
.pk-zoom.is-static .pk-zoom__sticky, html:not(.js) .pk-zoom__sticky { position: relative; height: auto; overflow: visible; }
.pk-zoom.is-static .pk-zoom__sticky::before { display: none; }
.pk-zoom.is-static .pk-zoom__stage { position: relative; height: var(--static-h, 520px); overflow: hidden; }
.pk-zoom.is-static .pk-zoom__caps, html:not(.js) .pk-zoom__caps { position: static; width: auto; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 3rem clamp(1.25rem, 4vw, 3rem); }
.pk-zoom.is-static .pk-zoom__cap { opacity: 1; transform: none; }
.pk-zoom.is-static .pk-zoom__bar { display: none; }
.pk-zoom.is-static .pk-zoom__note { position: static; padding: 0 clamp(1.25rem, 4vw, 3rem); }
html:not(.js) .pk-zoom__stage { display: none; }

/* ---------- Bento: features, after the story ---------- */
.peka-bento-head { margin-top: clamp(3rem, 8vw, 6rem); }
.peka .peka-bento__tile h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.peka-bento__tile { transition: border-color 300ms var(--ease-notice), transform 300ms var(--ease-notice); }
.peka-bento__tile:hover { transform: none; border-color: rgba(255,255,255,.22); }
.peka-bento__chip[aria-pressed="true"]::before { background: var(--signal); border-color: var(--signal); }
.peka-bento__key-ok { background: var(--light); color: var(--ink); }
.peka-bento__tool.is-on { color: var(--light); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.peka-bento__tool.is-on::before { background: var(--light); }
.peka-bento__pulse { background: var(--signal); }
.peka-bento__spark .area { fill: rgba(255,255,255,.08); }
.peka-bento__spark stop { stop-color: #FFFFFF; }
