/* Kriya One landing page: the animated sections (compare, capabilities, hands-free, a day, approvals, install).
   fx.js adds .fx to <html> (JS on) and .fx-m (JS on and motion allowed). Without them every state is static and
   complete: no-JS and reduced-motion visitors see all the content, the final frames, nothing hidden. */

/* ================================================================ 01 · compare: tools <-> one agent */
.cmpx { position: relative; }
.cmp-switch { position: relative; display: inline-flex; gap: 0; margin: 0 0 28px; padding: 4px; min-inline-size: 0;
  border: 1px solid var(--ts-border); border-radius: 999px; background: var(--ts-surface-sunken);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.cmp-switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--tw, 0); border-radius: 999px;
  transform: translateX(var(--tx, 0)); background: var(--k-amber); box-shadow: 0 0 22px -4px var(--k-glow-amber), 0 0 0 1px rgba(255, 193, 92, .5);
  transition: transform .5s var(--k-ease-spring), width .5s var(--k-ease-spring); opacity: 0; }
.fx .cmp-switch::before { opacity: 1; }
.cmp-switch label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; cursor: pointer; white-space: nowrap; font: 500 .8125rem/1 var(--k-mono); color: var(--ts-text-muted);
  transition: color .25s; }
.cmp-switch label:hover { color: var(--ts-text); }
.cmp-switch label::before { content: "" / ""; width: 7px; height: 7px; border-radius: 2px; border: 1.5px solid currentColor; opacity: .8; }
.cmp-switch label:last-child::before { border-radius: 50%; }
.cmp-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.cmp-switch label:has(input:checked) { color: #0B1433; }
html:not(.fx) .cmp-switch label:has(input:checked) { background: var(--k-amber); }
.cmp-switch label:has(input:focus-visible) { outline: 2px solid var(--k-amber); outline-offset: 3px; }
@media (pointer: coarse) { .cmp-switch label { min-height: 44px; } }
@media (max-width: 400px) { .cmp-switch label { padding: 0 12px; font-size: .75rem; } }

.compare { display: grid; gap: 48px 20px; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "k k" "cc ag"; align-items: stretch; }
.cmp-kriya { grid-area: k; } .cmp-cc { grid-area: cc; } .cmp-ag { grid-area: ag; }
.cmp { display: flex; flex-direction: column; gap: 16px; transition: border-color .3s, box-shadow .4s, opacity .4s, filter .4s, outline-color .4s; }
.cmp-head { display: flex; align-items: center; gap: 12px; padding-right: 120px; }
.cmp-head .ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--ts-primary-tint); color: var(--ts-primary); border: 1px solid var(--k-line); }
:root[data-theme="dark"] .cmp-head .ic { color: var(--k-indigo-hi); }
.cmp-head h3 { font-size: 1.25rem; font-weight: 700; }
.cmp-by { font: 400 .8125rem/1.4 var(--k-mono); color: var(--ts-text-muted); }
.cmp dl { margin: 0; display: grid; gap: 12px; }
.cmp dl > div { display: grid; gap: 3px; padding-top: 12px; border-top: 1px dashed var(--k-line); }
.cmp dt { font: 500 .6875rem/1.4 var(--k-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ts-text-subtle); }
.cmp dd { margin: 0; }
.cmp-adds { font: 500 .6875rem/1.4 var(--k-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--k-kicker);
  padding-top: 12px; border-top: 1px dashed var(--k-line); }
.ticks { display: grid; gap: 8px; padding: 0; margin: -6px 0 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 12px; height: 7px;
  border-left: 2px solid var(--k-mint); border-bottom: 2px solid var(--k-mint); transform: rotate(-45deg);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--k-mint) 60%, transparent)); }
.ticks li:nth-child(2) { --i: 1; } .ticks li:nth-child(3) { --i: 2; } .ticks li:nth-child(4) { --i: 3; }
.ticks li:nth-child(5) { --i: 4; } .ticks li:nth-child(6) { --i: 5; }
.fx-m .ticks.play li { animation: fx-tick .55s var(--k-ease-spring) calc(var(--i, 0) * 70ms + .15s) both; }
.fx-m .ticks.play li::before { animation: fx-check .5s var(--k-ease-spring) calc(var(--i, 0) * 70ms + .3s) both; }
@keyframes fx-tick { from { opacity: 0; transform: translateX(-14px); } }
@keyframes fx-check { from { transform: rotate(-45deg) scale(0); } }

/* status chips (decorative, text from data attributes) */
.card > .cmp-chip { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px;
  border-radius: 999px; border: 1px solid var(--k-line); background: var(--ts-surface-sunken);
  font: 500 .6875rem/1 var(--k-mono); color: var(--ts-text-muted); white-space: nowrap; }
.cmp-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--k-mint); }
.cmp-chip::after { content: attr(data-kriya); }
.cmp-kriya .cmp-chip { color: var(--k-mint); border-color: color-mix(in srgb, var(--k-mint) 40%, transparent); }
.fx-m .cmp-kriya .cmp-chip::before { animation: k-pulse 2s ease-out infinite; }
.cmp-cc .cmp-chip, .cmp-ag .cmp-chip { color: var(--k-indigo-hi); }
:root[data-theme="light"] .cmp-cc .cmp-chip, :root[data-theme="light"] .cmp-ag .cmp-chip { color: #1C3EBA; }
.cmp-cc .cmp-chip::before, .cmp-ag .cmp-chip::before { background: currentColor; border-radius: 1px; }

/* Kriya state (default): the harness on top, the engines plugged in under it */
.cmp-kriya { border-color: color-mix(in srgb, var(--ts-primary) 70%, var(--ts-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ts-primary) 45%, transparent), 0 30px 80px -40px var(--k-glow), 0 0 50px -24px var(--k-glow); }
.cmp-kriya .cmp-head .ic { background: #0B1433; border-color: rgba(111, 139, 255, .4); box-shadow: 0 0 20px -4px var(--k-glow); }
@media (min-width: 961px) {
  .cmp-kriya { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 44px; align-content: start; }
  .cmp-kriya .cmp-head { grid-column: 1 / -1; }
  .cmp-kriya dl { grid-column: 1; grid-row: 2 / span 2; }
  .cmp-kriya .cmp-adds { grid-column: 2; grid-row: 2; }
  .cmp-kriya .ticks { grid-column: 2; grid-row: 3; }
}
.cmp-cc::after, .cmp-ag::after { content: ""; position: absolute; left: 50%; top: -49px; width: 2px; height: 48px; margin-left: -1px;
  border-radius: 2px; background: repeating-linear-gradient(0deg, var(--k-amber) 0 6px, transparent 6px 14px);
  background-size: 2px 28px; box-shadow: 0 0 10px var(--k-glow-amber); transition: opacity .3s; }
.fx-m .cmp-cc::after, .fx-m .cmp-ag::after { animation: fx-flow .9s linear infinite; }
@keyframes fx-flow { to { background-position: 0 -28px; } }

/* Tools state: three separate silos side by side, Kriya One on standby */
.fx .cmpx[data-mode="tools"] .compare, html:not(.fx) .cmpx:has(input[value="tools"]:checked) .compare {
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "cc ag k"; gap: 28px; }
.fx .cmpx[data-mode="tools"] .cmp-kriya, html:not(.fx) .cmpx:has(input[value="tools"]:checked) .cmp-kriya {
  display: flex; border-color: var(--ts-border); box-shadow: none; opacity: .8; filter: saturate(.4); }
.fx .cmpx[data-mode="tools"] .cmp-kriya .cmp-chip { color: var(--ts-text-subtle); border-color: var(--k-line); }
.fx .cmpx[data-mode="tools"] .cmp-kriya .cmp-chip::before { background: var(--ts-text-subtle); animation: none; }
.fx .cmpx[data-mode="tools"] .cmp-chip::after, html:not(.fx) .cmpx:has(input[value="tools"]:checked) .cmp-chip::after { content: attr(data-tools); }
.fx .cmpx[data-mode="tools"] :is(.cmp-cc, .cmp-ag), html:not(.fx) .cmpx:has(input[value="tools"]:checked) :is(.cmp-cc, .cmp-ag) {
  border-color: color-mix(in srgb, var(--k-amber) 45%, var(--ts-border)); outline: 1px dashed color-mix(in srgb, var(--k-amber) 45%, transparent);
  outline-offset: 6px; box-shadow: 0 20px 50px -30px var(--k-glow-amber); }
.fx .cmpx[data-mode="tools"] :is(.cmp-cc, .cmp-ag) .cmp-chip { color: var(--k-kicker); border-color: color-mix(in srgb, var(--k-amber) 40%, transparent); }
.fx .cmpx[data-mode="tools"] :is(.cmp-cc, .cmp-ag)::after, html:not(.fx) .cmpx:has(input[value="tools"]:checked) :is(.cmp-cc, .cmp-ag)::after { opacity: 0; }
.fx .cmpx[data-mode="tools"] .cmp-head { padding-right: 84px; }
@media (max-width: 960px) {
  .compare { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "cc" "ag"; gap: 44px; }
  .cmp-cc::after, .cmp-ag::after { left: 44px; top: -45px; height: 44px; }
  .fx .cmpx[data-mode="tools"] .compare, html:not(.fx) .cmpx:has(input[value="tools"]:checked) .compare {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "cc" "ag" "k"; gap: 32px; }
}
@media (max-width: 480px) {
  .cmp-head { padding-right: 0; padding-top: 30px; }
  .card > .cmp-chip { top: 16px; left: 20px; right: auto; }
}
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }

/* ================================================================ cards: tilt, glow, focus, reveal */
.fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .6s var(--k-ease-out), border-color .25s, box-shadow .3s; }
.fx-tilt:hover { --lift: -4px; transition: transform .14s linear, border-color .25s, box-shadow .3s; }
.feature:hover, .os-steps .card:hover, .optional-host:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ts-primary) 35%, transparent), 0 24px 50px -28px var(--k-glow), 0 0 40px -20px var(--k-glow); }
.card:focus-within { border-color: var(--k-amber); box-shadow: 0 0 0 3px var(--k-glow-amber), 0 0 36px -8px var(--k-glow-amber); }
.card:focus-visible { outline: 2px solid var(--k-amber); outline-offset: 3px; box-shadow: 0 0 0 6px var(--k-glow-amber), 0 0 40px -6px var(--k-glow-amber); }
.card:focus-visible::before { opacity: 1; }

/* hex index on capability cards */
#features .wrap, #safety .grid { counter-reset: fx-n; }
.feature { counter-increment: fx-n; }
@counter-style fx-hex { system: numeric; symbols: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F"; pad: 2 "0"; }
.feature::after { content: "0x" counter(fx-n, fx-hex) / ""; position: absolute; top: 18px; right: 18px;
  font: 500 .6875rem/1 var(--k-mono); letter-spacing: .04em; color: var(--ts-text-subtle); opacity: .7; transition: color .25s, opacity .25s, text-shadow .25s; }
.feature:hover::after, .feature:focus-within::after { color: var(--k-kicker); opacity: 1; text-shadow: 0 0 10px var(--k-glow-amber); }

/* scroll reveal (only when fx.js runs and motion is allowed) */
.fx-m .rv { opacity: 0; translate: 0 22px;
  transition: opacity .7s var(--k-ease-out) var(--d, 0s), translate .8s var(--k-ease-out) var(--d, 0s),
    transform .6s var(--k-ease-out), border-color .25s, box-shadow .3s; }
.fx-m .rv.in { opacity: 1; translate: none; }
.fx-m .fx-tilt.rv.in:hover { transition: opacity .7s, translate .8s, transform .14s linear, border-color .25s, box-shadow .3s; }

/* ================================================================ icon micro-animations (hover / focus) */
.ic svg * { transform-box: fill-box; transform-origin: center; }
.card:is(:hover, :focus-within) .ic { transform: translateY(-2px) scale(1.06); color: var(--k-amber); }
:root[data-theme="light"] .card:is(:hover, :focus-within) .ic { color: #B86E00; }
.fx-m .card:is(:hover, :focus-within) .ic-nodes circle:first-child,
.fx-m .card:is(:hover, :focus-within) .ic-graph circle { animation: fx-pulse .9s ease-in-out infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-nodes circle:nth-of-type(n+2) { animation: fx-blink 1.2s steps(2) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-nodes circle:nth-of-type(3), .fx-m .card:is(:hover, :focus-within) .ic-graph circle:nth-of-type(2) { animation-delay: .3s; }
.fx-m .card:is(:hover, :focus-within) .ic-nodes circle:nth-of-type(4), .fx-m .card:is(:hover, :focus-within) .ic-graph circle:nth-of-type(3) { animation-delay: .6s; }
.fx-m .card:is(:hover, :focus-within) .ic-nodes circle:nth-of-type(5) { animation-delay: .9s; }
.fx-m .card:is(:hover, :focus-within) :is(.ic-nodes, .ic-graph) path { stroke-dasharray: 2 2.5; animation: fx-dash .5s linear infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-grid rect { animation: fx-pop 1.2s var(--k-ease-spring) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-grid rect:nth-of-type(2) { animation-delay: .15s; }
.fx-m .card:is(:hover, :focus-within) .ic-grid rect:nth-of-type(4) { animation-delay: .3s; }
.fx-m .card:is(:hover, :focus-within) .ic-grid rect:nth-of-type(3) { animation-delay: .45s; }
.fx-m .card:is(:hover, :focus-within) .ic-servers path:nth-of-type(-n+2) { stroke: var(--k-mint); stroke-width: 3; animation: fx-blink .5s steps(2) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-servers path:nth-of-type(2) { animation-delay: .25s; }
.fx-m .card:is(:hover, :focus-within) :is(.ic-phone, .ic-phonecheck) svg { animation: fx-wiggle .6s ease-in-out infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-desktop path:nth-of-type(3) { animation: fx-pulse .8s ease-in-out infinite; fill: currentColor; }
.fx-m .card:is(:hover, :focus-within) .ic-usb svg { animation: fx-bob .8s ease-in-out infinite; }
.fx-m .card:is(:hover, :focus-within) :is(.ic-canvas, .ic-book) path,
.fx-m .card:is(:hover, :focus-within) :is(.ic-shield, .ic-phonecheck) path:last-child { stroke-dasharray: 26; animation: fx-draw 1.4s var(--k-ease-out) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-book path:first-child { animation: none; stroke-dasharray: none; }
.fx-m .card:is(:hover, :focus-within) .ic-pin svg { animation: fx-drop 1s var(--k-ease-spring) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-db path:nth-of-type(2) { animation: fx-bob .9s ease-in-out infinite; }
.ic-clock path { transform-box: view-box; transform-origin: 12px 12px; }
.fx-m .card:is(:hover, :focus-within) .ic-clock path { animation: fx-spin 1.6s linear infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-undo svg { animation: fx-rewind 1.2s var(--k-ease-out) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-mic path:first-child { animation: fx-bob .45s ease-in-out infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-mic path:nth-of-type(2) { animation: fx-level .45s ease-in-out infinite alternate; }
.fx-m .card:is(:hover, :focus-within) .ic-chip path { animation: fx-blink .6s steps(2) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-chip path:nth-of-type(odd) { animation-delay: .3s; }
.fx-m .card:is(:hover, :focus-within) .ic-search svg { animation: fx-orbit 1.4s linear infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-file path:nth-of-type(n+3) { stroke: var(--k-amber); animation: fx-blink .5s steps(2) infinite; }
.ic-lock path { transition: transform .4s var(--k-ease-spring); }
.card:is(:hover, :focus-within) .ic-lock path { transform: translateY(-2.5px); }
.fx-m .card:is(:hover, :focus-within) .ic-term path:nth-of-type(3) { animation: fx-nudge .7s ease-in-out infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-prompt path:nth-of-type(2) { animation: fx-blink .8s steps(2) infinite; }
.fx-m .card:is(:hover, :focus-within) .ic-mac rect { animation: fx-glowstroke 1.2s ease-in-out infinite; }
@keyframes fx-pulse { 50% { transform: scale(1.35); } }
@keyframes fx-blink { 50% { opacity: .15; } }
@keyframes fx-dash { to { stroke-dashoffset: -9; } }
@keyframes fx-pop { 0%, 60%, 100% { transform: none; } 30% { transform: scale(.7); } }
@keyframes fx-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes fx-bob { 50% { transform: translateY(-2px); } }
@keyframes fx-draw { 0% { stroke-dashoffset: 26; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes fx-drop { 0% { transform: translateY(-5px); } 40%, 100% { transform: none; } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-rewind { 0% { transform: none; } 50%, 100% { transform: rotate(-360deg); } }
@keyframes fx-level { from { transform: scale(.85); opacity: .5; } to { transform: scale(1.15); } }
@keyframes fx-orbit { 0%, 100% { transform: translate(1.5px, 0); } 25% { transform: translate(0, 1.5px); } 50% { transform: translate(-1.5px, 0); } 75% { transform: translate(0, -1.5px); } }
@keyframes fx-nudge { 50% { transform: translateX(2px); } }
@keyframes fx-glowstroke { 50% { stroke: var(--k-mint); } }

/* ================================================================ 03 · hands-free */
.hf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hf { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hf-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.hf-list li { position: relative; padding: 2px 0 2px 20px; line-height: 1.55; color: var(--ts-text-muted); }
.hf-list li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--k-amber), color-mix(in srgb, var(--k-amber) 20%, transparent)); transition: box-shadow .3s; }
.hf-list li:hover::before { box-shadow: 0 0 12px var(--k-glow-amber); }
.hf-list strong { color: var(--ts-text); font-family: var(--k-mono); font-weight: 500; font-size: .9em; }
.hf-art { min-width: 0; position: relative; }
.hf-art svg { width: 100%; height: auto; max-width: 520px; margin: 0 auto; overflow: visible; }
.hf-amb { opacity: .8; }
:root[data-theme="light"] .hf-amb { opacity: .45; }
.hf-tv { fill: #0B1124; stroke: #2A3563; stroke-width: 1.5; }
.hf-screen { fill: #060A1C; }
.hf-tab { fill: #18214A; }
.hf-tab.on { fill: #5B7BFF; }
.hf-card { fill: #0D1430; stroke: #22305E; }
.hf-card.hot { stroke: #F5A524; stroke-opacity: .7; }
.hf-bar { fill: #3A4C8F; }
.hf-bar.acc, .hf-clicker .acc { fill: #F5A524; }
.hf-line { fill: #22305E; } .hf-line.dim { fill: #172042; } .hf-line.acc { fill: #F5A524; }
.hf-pin { fill: #F5A524; }
.hf-pin-t { font: 700 10px var(--ts-font-sans); text-anchor: middle; fill: #0B1433; }
.hf-ripple { fill: none; stroke: #FFC15C; stroke-width: 1.5; opacity: 0; }
.hf-reply { fill: #0E1636; stroke: #2A3563; }
.hf-pr { fill: #F5A524; }
.hf-seg { fill: #9BB0FF; } .hf-caret { fill: #FFC15C; }
.hf-scan { fill: none; }
.hf-stand { fill: #1A2245; }
.hf-clicker rect { fill: #0B1433; stroke: #34416B; }
:root[data-theme="dark"] .hf-clicker rect { fill: #10172E; }
.hf-clicker circle { fill: #3A4C8F; }
.hf-beam { transform: translate(132px, 246px) rotate(5.5deg) scaleY(147); opacity: .85; }
.hf-spot { transform: translate(36px, -28px); }
.hf-p2 { opacity: 0; }
.hf-meter rect { fill: var(--k-mint); transform-box: fill-box; transform-origin: 50% 100%; }
.hf-meter rect:nth-child(1) { transform: scaleY(.4); } .hf-meter rect:nth-child(2) { transform: scaleY(.75); }
.hf-meter rect:nth-child(4) { transform: scaleY(.6); } .hf-meter rect:nth-child(5) { transform: scaleY(.3); }
.hf-headset path, .hf-headset rect { fill: none; stroke: var(--ts-text-muted); stroke-width: 5; stroke-linecap: round; }
.hf-headset rect { fill: var(--ts-text-muted); stroke-width: 0; }
.hf-headset path:last-child { stroke-width: 3; }
.hf-micdot { fill: var(--k-mint); }

.fx-m .hf-art svg * { animation-duration: 8s; animation-iteration-count: infinite; animation-timing-function: var(--k-ease-out); animation-fill-mode: both; }
.fx .hf-art:not(.play) svg * { animation-play-state: paused !important; }
.fx-m .hf-b1 { animation-name: hf-press1; transform-box: fill-box; transform-origin: center; }
.fx-m .hf-b2 { animation-name: hf-press2; transform-box: fill-box; transform-origin: center; }
.fx-m .hf-beam { animation-name: hf-beam; }
.fx-m .hf-spot { animation-name: hf-spot; }
.fx-m .hf-pin-g { animation-name: hf-pin; }
.fx-m .hf-ripple { animation-name: hf-rip; transform-box: fill-box; transform-origin: center; }
.fx-m .hf-tabhi { animation-name: hf-tab; }
.fx-m .hf-p1 { animation-name: hf-p1; }
.fx-m .hf-p2 { animation-name: hf-p2; }
.fx-m .hf-seg { animation-name: hf-type; animation-timing-function: steps(1); }
.fx-m .hf-seg:nth-child(3) { animation-delay: .12s; } .fx-m .hf-seg:nth-child(4) { animation-delay: .24s; }
.fx-m .hf-seg:nth-child(5) { animation-delay: .36s; } .fx-m .hf-seg:nth-child(6) { animation-delay: .48s; }
.fx-m .hf-seg:nth-child(7) { animation-delay: .6s; } .fx-m .hf-seg:nth-child(8) { animation-delay: .72s; }
.fx-m .hf-meter { animation-name: hf-env; transform-box: fill-box; transform-origin: 50% 100%; }
.fx-m .hf-meter rect { animation: hf-lvl .42s ease-in-out infinite alternate both; }
.fx-m .hf-meter rect:nth-child(2) { animation-delay: -.2s; } .fx-m .hf-meter rect:nth-child(3) { animation-delay: -.35s; }
.fx-m .hf-meter rect:nth-child(4) { animation-delay: -.1s; } .fx-m .hf-meter rect:nth-child(5) { animation-delay: -.28s; }
.fx-m .hf-micdot { animation-name: hf-mic; }
@keyframes hf-press1 { 0%, 1.5%, 5%, 28.5%, 32%, 100% { transform: none; } 3%, 30% { transform: scale(.55); fill: #FFE1A6; } }
@keyframes hf-press2 { 0%, 72.5%, 76%, 92.5%, 96%, 100% { transform: none; } 74%, 94% { transform: scale(.55); fill: #9BB0FF; } }
@keyframes hf-beam {
  0%, 4% { opacity: 0; transform: translate(132px, 246px) rotate(-10.6deg) scaleY(120); }
  7%, 12% { opacity: .9; transform: translate(132px, 246px) rotate(-10.6deg) scaleY(120); }
  28%, 62% { opacity: .9; transform: translate(132px, 246px) rotate(5.5deg) scaleY(147); }
  66%, 100% { opacity: 0; transform: translate(132px, 246px) rotate(5.5deg) scaleY(147); } }
@keyframes hf-spot {
  0%, 4% { opacity: 0; transform: translate(0, 0); }
  7%, 12% { opacity: 1; transform: translate(0, 0); }
  28%, 62% { opacity: 1; transform: translate(36px, -28px); }
  66% { opacity: 0; transform: translate(36px, -28px); }
  100% { opacity: 0; transform: translate(0, 0); } }
@keyframes hf-pin {
  0%, 31% { opacity: 0; transform: translateY(-34px); }
  34% { opacity: 1; transform: translateY(2px); } 36.5% { transform: translateY(-4px); } 39%, 72% { opacity: 1; transform: none; }
  76%, 100% { opacity: 0; transform: none; } }
@keyframes hf-rip { 0%, 34% { opacity: 0; transform: scale(.5); } 35% { opacity: .9; transform: scale(.6); } 48%, 100% { opacity: 0; transform: scale(3.4); } }
@keyframes hf-tab { 0%, 74.5% { transform: none; } 78%, 94% { transform: translateX(62px); } 97.5%, 100% { transform: none; } }
@keyframes hf-p1 { 0%, 74.5% { opacity: 1; transform: none; } 78%, 94% { opacity: 0; transform: translateX(-18px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes hf-p2 { 0%, 75% { opacity: 0; transform: translateX(18px); } 79%, 94% { opacity: 1; transform: none; } 97.5%, 100% { opacity: 0; transform: translateX(18px); } }
@keyframes hf-type { 0% { opacity: 0; } 58% { opacity: 1; } 91% { opacity: 0; } }
@keyframes hf-env { 0%, 37% { transform: scaleY(.18); opacity: .55; } 40%, 56% { transform: none; opacity: 1; } 60%, 100% { transform: scaleY(.18); opacity: .55; } }
@keyframes hf-lvl { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes hf-mic { 0%, 37%, 60%, 100% { opacity: .35; } 40%, 56% { opacity: 1; } }

/* ================================================================ 04 · a day: scroll-driven timeline */
.tl-wrap { position: relative; }
.tl-rail { position: absolute; left: 0; right: 0; top: 9px; height: 2px; border-radius: 2px; background: var(--ts-border-strong); }
.tl-fill { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--k-indigo-hi), var(--k-amber)); box-shadow: 0 0 12px var(--k-glow-amber); }
.timeline { list-style: none; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.timeline li { position: relative; padding: 36px 16px 0 0; min-width: 0; }
.tl-dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--k-amber);
  border: 2px solid var(--k-amber); box-shadow: 0 0 0 4px var(--ts-bg), 0 0 18px var(--k-glow-amber);
  transition: background .3s, border-color .3s, box-shadow .4s, transform .5s var(--k-ease-spring); }
.tl-card { height: 100%; padding: 14px 16px 16px; border-radius: 12px; border: 1px solid var(--k-line);
  background: color-mix(in srgb, var(--ts-bg) 80%, transparent);
  transition: opacity .6s var(--k-ease-out), translate .7s var(--k-ease-out), border-color .4s, box-shadow .4s; }
.timeline li.lit .tl-card { border-color: color-mix(in srgb, var(--ts-primary) 45%, var(--ts-border)); box-shadow: 0 18px 40px -26px var(--k-glow); }
.tl-time { display: block; margin-bottom: 6px; font: 500 .6875rem/1.4 var(--k-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--k-kicker); }
.timeline h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.timeline p { margin-top: 6px; color: var(--ts-text-muted); font-size: .9375rem; }
.fx-m .timeline li:not(.lit) .tl-dot { background: var(--ts-bg); border-color: var(--ts-border-strong); box-shadow: 0 0 0 4px var(--ts-bg); transform: scale(.75); }
.fx-m .timeline li:not(.lit) .tl-card { opacity: .62; translate: 0 18px; }
.fx-m .timeline li:not(.lit) .tl-time { color: var(--ts-text-subtle); }
.fx-m .timeline li.lit .tl-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--k-amber);
  animation: k-ring .8s ease-out forwards; }
@media (max-width: 960px) {
  .tl-rail { left: 7px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .tl-fill { transform-origin: 50% 0; background: linear-gradient(180deg, var(--k-indigo-hi), var(--k-amber)); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline li { padding: 0 0 0 36px; }
  .tl-dot { top: 16px; }
  .fx-m .timeline li:not(.lit) .tl-card { translate: 0 14px; }
}

/* ================================================================ 05 · approvals: the stamp */
.safety-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: center; margin-bottom: 40px; }
.safety-top .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .safety-top { grid-template-columns: minmax(0, 1fr); gap: 28px; } .apx { max-width: 380px; } }
.apx { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.apx:focus-visible { outline: 2px solid var(--k-amber); outline-offset: 4px; }
.apx-card { position: relative; display: grid; gap: 14px; padding: 16px 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--ts-surface) 92%, transparent); border: 1px solid var(--ts-border);
  box-shadow: 0 30px 70px -36px var(--k-glow), inset 0 1px 0 rgba(255, 255, 255, .03); transition: border-color .3s, box-shadow .3s; }
.apx:hover .apx-card { border-color: color-mix(in srgb, var(--ts-primary) 50%, var(--ts-border)); }
.apx-top { display: flex; justify-content: space-between; align-items: center; font: 500 .6875rem/1 var(--k-mono); color: var(--ts-text-muted); }
.apx-tag::before { content: "● " / ""; color: var(--k-amber); }
.apx-timer { color: var(--k-kicker); font-variant-numeric: tabular-nums; }
.apx-body { display: flex; gap: 12px; align-items: flex-start; }
.apx-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 200deg, var(--k-indigo-hi), var(--k-amber), var(--k-indigo-hi)); }
.apx-lines { flex: 1; display: grid; gap: 7px; padding-top: 3px; }
.apx-lines i { display: block; height: 7px; border-radius: 4px; background: var(--ts-border); }
.apx-lines i:nth-child(1) { width: 92%; } .apx-lines i:nth-child(2) { width: 76%; } .apx-lines i:nth-child(3) { width: 54%; }
.apx-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 11px; border-radius: 999px;
  font: 500 .75rem/1 var(--k-mono); color: #8A5300; background: rgba(245, 165, 36, .12); border: 1px solid rgba(245, 165, 36, .45);
  transition: opacity .3s, color .3s; }
:root[data-theme="dark"] .apx-chip { color: var(--k-amber-hi); }
.apx-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.apx-acts { display: flex; gap: 8px; }
.apx-acts i { display: block; height: 28px; border-radius: 8px; }
.apx-acts i:first-child { width: 96px; background: color-mix(in srgb, var(--k-mint) 22%, transparent); border: 1px solid color-mix(in srgb, var(--k-mint) 50%, transparent); }
.apx-acts i:last-child { width: 120px; border: 1px solid var(--ts-border-strong); }
.apx-stamp { position: absolute; right: 14px; bottom: 26px; padding: 6px 14px; pointer-events: none;
  font: 800 1.75rem/1 var(--ts-font-display); letter-spacing: .14em; color: var(--k-mint);
  border: 3px solid currentColor; border-radius: 8px; transform: rotate(-12deg); opacity: .92;
  text-shadow: 0 0 18px color-mix(in srgb, var(--k-mint) 55%, transparent);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--k-mint) 55%, transparent), inset 0 0 12px -4px color-mix(in srgb, var(--k-mint) 60%, transparent);
  background: color-mix(in srgb, var(--ts-surface) 55%, transparent); }
.apx-ink { position: absolute; right: 100px; bottom: 46px; width: 0; height: 0; pointer-events: none; }
.apx-ink i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--k-mint); opacity: 0; }
.apx[data-state="approved"] .apx-chip { opacity: .4; text-decoration: line-through; }
.apx[data-state="approved"] .apx-timer { opacity: .5; }
.apx[data-state="wait"] .apx-stamp { opacity: 0; transform: rotate(-24deg) scale(2.4); }
.apx[data-state="wait"] .apx-card { border-color: rgba(245, 165, 36, .5); box-shadow: 0 30px 70px -36px var(--k-glow-amber); }
.fx-m .apx[data-state="wait"] .apx-spin { animation: fx-spin .8s linear infinite; }
.fx-m .apx[data-state="wait"] .apx-chip { animation: apx-chip-k 1.4s ease-out infinite; }
@keyframes apx-chip-k { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .5); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.fx-m .apx.slam .apx-stamp { animation: ap-slam .46s cubic-bezier(.2, .9, .25, 1.15) both; }
.fx-m .apx.slam .apx-card { animation: ap-shake .42s .16s ease-out both; }
.fx-m .apx.slam .apx-ink i { animation: ap-ink .7s .16s var(--k-ease-out) both; }
.apx-ink i:nth-child(1) { --x: -70px; --y: -34px; } .apx-ink i:nth-child(2) { --x: 64px; --y: -40px; width: 4px; height: 4px; }
.apx-ink i:nth-child(3) { --x: 82px; --y: 22px; } .apx-ink i:nth-child(4) { --x: -58px; --y: 38px; width: 8px; height: 8px; }
.apx-ink i:nth-child(5) { --x: 10px; --y: -52px; width: 4px; height: 4px; } .apx-ink i:nth-child(6) { --x: -6px; --y: 50px; }
@keyframes ap-slam { 0% { opacity: 0; transform: rotate(-26deg) scale(2.6); } 60% { opacity: 1; transform: rotate(-10deg) scale(.9); }
  80% { transform: rotate(-13deg) scale(1.04); } 100% { opacity: .92; transform: rotate(-12deg); } }
@keyframes ap-shake { 0%, 100% { transform: none; } 20% { transform: translate(-3px, 2px) rotate(-.6deg); } 40% { transform: translate(3px, -1px) rotate(.5deg); }
  60% { transform: translate(-2px, 1px); } 80% { transform: translate(1px, 0); } }
@keyframes ap-ink { 0% { opacity: 0; transform: none; } 20% { opacity: 1; } 100% { opacity: .35; transform: translate(var(--x), var(--y)) scale(.6); } }

/* ================================================================ 06 · get started: terminal */
.gs-card { position: relative; transition: border-color .3s, box-shadow .4s, opacity .7s var(--k-ease-out) var(--d, 0s), translate .8s var(--k-ease-out) var(--d, 0s); }
.gs-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--k-card-hi), transparent 60%); transition: opacity .3s; }
.gs-card:hover::before, .gs-card:focus-within::before { opacity: 1; }
.gs-card > * { position: relative; }
.gs-card:hover { border-color: color-mix(in srgb, var(--ts-primary) 55%, var(--ts-border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ts-primary) 30%, transparent), 0 30px 70px -24px var(--k-glow); }
.gs-card .cmd-card-head { padding-bottom: 12px; border-bottom: 1px solid var(--k-line); background: color-mix(in srgb, var(--ts-surface-sunken) 60%, transparent); }
.gs-card .cmd-card-head h3 { margin-right: auto; font: 500 .8125rem/1.4 var(--k-mono); color: var(--ts-text-muted); }
.gs-card .cmd-card-head h3::before { content: "~/kriya-one ❯ " / ""; color: var(--k-kicker); }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; opacity: .85; }
.term-dots i:nth-child(2) { background: #FEBC2E; } .term-dots i:nth-child(3) { background: #28C840; }
.gs-card .cmd { box-shadow: inset 0 0 40px -20px rgba(111, 139, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .04); }
.gs-card .cmd pre { text-shadow: 0 0 10px rgba(111, 139, 255, .45); }
.gs-card .cmd pre::after { content: "" / ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 3px; vertical-align: -.2em;
  background: var(--k-amber); box-shadow: 0 0 8px var(--k-glow-amber); }
.fx-m .gs-card .cmd pre::after { animation: fx-caret 1.1s steps(1) infinite; }
@keyframes fx-caret { 50% { opacity: 0; } }
@media (max-width: 480px) { .gs-card .cmd-card-head h3::before { content: "❯ " / ""; } }

/* ================================================================ easter egg canvas */
.fx-egg { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; pointer-events: none; transition: opacity .4s; }

/* ================================================================ reduced motion: final frames, nothing moving */
@media (prefers-reduced-motion: reduce) {
  .fx-tilt { transform: none !important; }
  .cmp-switch::before { transition: none; }
}
