/* /decks: the deck list in the v4 site design.
   The list itself is drawn by the inline script in decks.html from /api/decks-list;
   everything here is presentation only. Classes are prefixed dk- (page) so nothing
   leaks into the shared v4 system in ox.css. */

/* ------------------------------------------------------------------ hero */
.dk-hero .page-hero__title { max-width: 11em; }
.dk-hero__visual { --ratio: 560 / 440; max-height: 480px; justify-self: end; }
.dk-stack { width: 100%; height: 100%; overflow: visible; }
.dk-stack .sh { transform-box: fill-box; }
.dk-stack .sh-c { animation: dk-float 9s ease-in-out infinite alternate; }
.dk-stack .sh-b { animation: dk-float 9s ease-in-out -3s infinite alternate; }
.dk-stack .sh-a { animation: dk-float 9s ease-in-out -6s infinite alternate; }
@keyframes dk-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -7px, 0); } }
.dk-stack .frame { fill: var(--ink-0); stroke: var(--line-2); stroke-width: 1; }
.dk-stack .frame--paper { fill: var(--paper); stroke: rgba(11, 11, 18, 0.12); }
.dk-stack .frame--ghost { fill: var(--ink-2); stroke: var(--line); }
.dk-stack .gl { stroke: var(--line); stroke-width: 1; }
.dk-stack .reg { stroke: var(--line-3); stroke-width: 1; fill: none; }
.dk-stack .reg--ink { stroke: rgba(11, 11, 18, 0.25); }
.dk-stack .bar { fill: var(--fg); }
.dk-stack .bar--2 { fill: var(--fg-3); }
.dk-stack .bar--3 { fill: var(--fg-4); }
.dk-stack .bar--ink { fill: var(--paper-fg); }
.dk-stack .bar--ink2 { fill: var(--paper-fg-3); }
.dk-stack .bar--acc { fill: var(--ox-300); }
.dk-stack .bar--ox6 { fill: var(--ox-600); }
.dk-stack .prog { fill: var(--line); }
.dk-stack .arc { fill: none; stroke-width: 5; stroke-linecap: round; }
.dk-stack .node { fill: var(--ink-0); stroke-width: 1.6; }
.dk-stack .track { fill: none; stroke: var(--line); stroke-width: 1; }
.dk-stack .orbit { transform-box: view-box; transform-origin: 380px 282px; animation: dk-spin 14s linear infinite; }
.dk-stack .run { fill: #e9fbff; filter: drop-shadow(0 0 5px var(--cyan)); }
.dk-stack .tb { fill: color-mix(in srgb, var(--ink-1) 80%, transparent); stroke: var(--line-2); stroke-width: 1; }
.dk-stack .tbl { stroke: var(--line-2); stroke-width: 1; }
.dk-stack .key { fill: rgba(255, 255, 255, 0.03); stroke: var(--line-2); stroke-width: 1; }
.dk-stack .key-t { font: 500 13px/1 var(--font-mono); fill: var(--fg-2); letter-spacing: 0.04em; }
.dk-stack .key-l { font: 500 10.5px/1 var(--font-mono); fill: var(--fg-3); letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
@media (max-width: 699px) { .dk-hero__visual { display: none; } }

/* ------------------------------------------------------------------ toolbar */
.dk-lib { padding-top: clamp(56px, 6vw, 104px); }
.dk-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.dk-search {
  position: relative; display: flex; align-items: center; gap: 12px; flex: 0 1 480px; min-width: 0;
  padding: 0 14px 0 18px; min-height: 54px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color var(--t-med), box-shadow var(--t-med), background-color var(--t-med);
}
.dk-search:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(123, 126, 242, 0.18); background: rgba(255, 255, 255, 0.05); }
.dk-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--fg-3); stroke-width: 1.8; stroke-linecap: round; }
.dk-search input {
  flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none;
  font: 400 1rem/1 var(--font-sans); color: var(--fg); -webkit-appearance: none; appearance: none;
}
.dk-search input::placeholder { color: var(--fg-4); }
.dk-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.dk-search kbd {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--line-2); font: 500 12px/1 var(--font-mono); color: var(--fg-3);
}
.dk-count {
  margin: 0; font: 500 var(--fs-mono)/1.2 var(--font-mono); letter-spacing: var(--track-mono);
  text-transform: uppercase; color: var(--fg-3);
}
@media (max-width: 599px) {
  .dk-search { flex-basis: 100%; }
  .dk-search kbd { display: none; }
  .dk-search input { font-size: 1rem; }
}

/* ------------------------------------------------------------------ grid */
.dk-grid { display: grid; gap: clamp(16px, 1.6vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .dk-grid { grid-template-columns: minmax(0, 1fr); } }

/* the card: .card.card--media.card--link from ox.css, with the cover as its media */
.dk { --acc: var(--ox-400); }
.dk .card__media { --ratio: 16 / 9; }
.dk .card__body { gap: 14px; }
.dk__stage {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0;
  font: 500 11.5px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.dk__stage-n { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--fg-2); }
.dk__stage-n .dot { background: var(--acc); }
.dk--featured .dk__stage-n .dot { background: var(--grad-mark); }
.dk__len { flex: none; white-space: nowrap; }
.dk__len i { font-style: normal; color: var(--fg-4); margin: 0 0.5em; }
.dk .card__title { margin: 0; }
.dk__open { color: inherit; text-decoration: none; }
/* the title link covers the whole card; the share button sits above it */
.dk__open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dk__open:focus-visible { outline: none; }
.dk:has(.dk__open:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.dk__blurb { --lines: 3; margin: 0; }
.dk__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2px 0 0; }
.dk__tags .tag { white-space: normal; }
.dk .card__foot { padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.dk__go {
  display: inline-flex; align-items: center; gap: 12px; margin-left: auto;
  font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--fg-2);
  transition: color var(--t-fast);
}
.dk__go .card__arrow { margin-left: 0; }
.dk:hover .dk__go { color: var(--fg); }
.dk:hover .card__arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
.dk:hover .card__arrow svg { transform: rotate(0deg); }
.dk__share {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; cursor: pointer;
  font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--fg-3);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.dk__share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk__share:hover, .dk__share:focus-visible { border-color: var(--accent-text); color: var(--fg); background: rgba(123, 126, 242, 0.1); }
.dk__share.done { border-color: var(--cyan); color: var(--cyan); }

/* the deck's cover, drawn small: a dark sheet with the v4 deck chrome */
.dk-cover {
  container-type: inline-size; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 90% at 74% 52%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%),
    linear-gradient(180deg, #09090f, var(--ink-0));
  border-bottom: 1px solid var(--line);
}
.dk-cover::before {
  /* the sheet's faint column grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.dk-cover__chrome { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dk-cover__chrome .reg { stroke: var(--line-3); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.dk-cover__chrome .prog { fill: var(--line); }
.dk-cover__chrome .prog-f { fill: url(#dk-grad-h); }
.dk-cover__copy {
  position: absolute; left: 6.2%; top: 50%; translate: 0 -54%; width: 54%;
  display: flex; flex-direction: column; align-items: flex-start;
}
.dk-cover__t {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font-size: 6.1cqw; line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; color: var(--fg);
  padding-bottom: 0.08em;
}
.dk-cover__rule { display: block; width: 62%; height: 1px; margin: 4.2cqw 0 3cqw; background: var(--grad-line); }
.dk-cover__k {
  font: 500 max(8px, 1.45cqw)/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.dk__motif {
  position: absolute; right: 9%; top: 50%; translate: 0 -54%; width: 27%; height: auto;
  color: var(--acc); overflow: visible;
}
.dk-cover .dk-cover__wm {
  position: absolute; left: 6.2%; bottom: 5.6%; width: 12.5%; height: auto; object-fit: contain;
  opacity: 0.92; transition: none;
}
.card--media:hover .dk-cover .dk-cover__wm { transform: none; }
.dk-cover__tb {
  position: absolute; right: 5.6%; bottom: 5.4%; display: flex;
  border: 1px solid var(--line-2); border-radius: 3px; background: color-mix(in srgb, var(--ink-1) 70%, transparent);
  font: 500 max(7.5px, 1.25cqw)/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.dk-cover__tb span { padding: 0.55em 0.9em; color: var(--fg-2); white-space: nowrap; }
.dk-cover__tb span + span { border-left: 1px solid var(--line-2); }
.dk-cover__tb b { display: block; font-weight: 500; color: var(--fg-4); margin-bottom: 0.25em; }

/* motifs from js/deck-motifs.js: line art in the card's colour, static at rest, moving on hover
   (or while on screen on touch, where nothing hovers) */
.dk__motif [class^="m-"], .dk__motif [class*=" m-"] {
  stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.dk__motif .m-u, .dk__motif .m-port, .dk__motif .m-grid { opacity: .4; stroke-width: 2.4; }
.dk__motif .m-grid { opacity: .22; }
.dk__motif .m-track { opacity: .3; stroke-dasharray: 4 5; }
.dk__motif .m-dot, .dk__motif .m-node, .dk__motif .m-pin, .dk__motif .m-fill,
.dk__motif .m-dev, .dk__motif .m-run, .dk__motif .m-wheel { fill: currentColor; stroke: none; }
.dk__motif .m-fill, .dk__motif .m-dev { opacity: .55; }
.dk__motif .m-run { opacity: 0; }
.dk__motif .m-ring { opacity: .22; }
/* the lifecycle ring's runner is a live marker, so cyan (green is for sustainability only) */
.dk__motif .m-head { fill: var(--cyan); stroke: none; filter: drop-shadow(0 0 5px rgba(92, 225, 230, .85)); }
.dk__motif .m-tail { stroke: var(--cyan); fill: none; stroke-width: 4; stroke-linecap: round; }
.dk__motif .t1 { opacity: .7; } .dk__motif .t2 { opacity: .4; } .dk__motif .t3 { opacity: .18; }
.dk__motif .m-orbit { transform-box: view-box; transform-origin: 60px 60px; animation: dkOrbit 11s linear infinite; }
@keyframes dkOrbit { to { transform: rotate(360deg); } }
.dk__motif .m-hub { opacity: .5; }
.dk__motif .m-node { opacity: .7; }
.dk__motif .m-tick { stroke-width: 4; }
.dk__motif .m-out, .dk__motif .m-site { opacity: .5; }
.dk__motif .m-road { opacity: .3; }
.dk__motif .m-wave { opacity: .5; }
.dk__motif .m-stamp, .dk__motif .m-lens { opacity: .65; }
.dk__motif .m-plot { opacity: .45; }
.dk__motif .m-ask { stroke-width: 3.4; }
.dk__motif .m-bar { fill: currentColor; stroke: none; opacity: .5; }
.dk__motif .m-row { opacity: .55; }
.dk__motif .m-flow { opacity: .5; stroke-dasharray: 5 6; }
.dk__motif .m-tool, .dk__motif .m-hand { stroke-width: 3.4; }
:is(.dk:hover, .dk.play) .dk__motif .m-run { opacity: 1; }
:is(.dk:hover, .dk.play) .dk__motif .m-sweep { animation: dkSweep 2.6s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-spin { animation: dkSpin 4s linear infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-fill { animation: dkFill 1.8s ease-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .f2 { animation-delay: .15s; }
:is(.dk:hover, .dk.play) .dk__motif .f3 { animation-delay: .3s; }
:is(.dk:hover, .dk.play) .dk__motif .f4 { animation-delay: .45s; }
:is(.dk:hover, .dk.play) .dk__motif .m-wave { animation: dkWave 2s ease-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .w2 { animation-delay: .25s; }
:is(.dk:hover, .dk.play) .dk__motif .w3 { animation-delay: .5s; }
:is(.dk:hover, .dk.play) .dk__motif .m-pin { animation: dkPin 2.1s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .p2 { animation-delay: .35s; }
:is(.dk:hover, .dk.play) .dk__motif .p3 { animation-delay: .7s; }
:is(.dk:hover, .dk.play) .dk__motif .m-site { animation: dkSite 2.4s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .s2 { animation-delay: .3s; }
:is(.dk:hover, .dk.play) .dk__motif .s3 { animation-delay: .6s; }
:is(.dk:hover, .dk.play) .dk__motif .m-draw { animation: dkDraw 2.6s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .b { animation-delay: .3s; }
:is(.dk:hover, .dk.play) .dk__motif .c { animation-delay: .6s; }
:is(.dk:hover, .dk.play) .dk__motif .m-cable { animation: dkCable 2.4s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-bolt { animation: dkBolt 1.4s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .pulse { animation: dkPulse 1.6s ease-out infinite; opacity: 1; }
:is(.dk:hover, .dk.play) .dk__motif .m-wheel { animation: dkRoll 1.2s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-tick { animation: dkTick 2.2s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-dev { animation: dkDev 2.2s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .d2 { animation-delay: .4s; }
:is(.dk:hover, .dk.play) .dk__motif .m-bar { animation: dkBar 2.2s ease-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .b2 { animation-delay: .2s; }
:is(.dk:hover, .dk.play) .dk__motif .b3 { animation-delay: .4s; }
:is(.dk:hover, .dk.play) .dk__motif .m-row { animation: dkFill 2s ease-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .r2 { animation-delay: .2s; }
:is(.dk:hover, .dk.play) .dk__motif .r3 { animation-delay: .4s; }
:is(.dk:hover, .dk.play) .dk__motif .m-flow { animation: dkFlow 1.6s linear infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-turn { animation: dkTurn 2.4s ease-in-out infinite; }
:is(.dk:hover, .dk.play) .dk__motif .m-ask { animation: dkTick 2s ease-in-out infinite; }
.dk__motif .m-spin, .dk__motif .m-sweep, .dk__motif .m-pin, .dk__motif .m-wheel,
.dk__motif .m-site, .dk__motif .m-dev, .dk__motif .m-wave, .dk__motif .m-row { transform-origin: 60px 60px; transform-box: fill-box; }
.dk__motif .m-bar { transform-origin: left center; transform-box: fill-box; }
.dk__motif .m-turn { transform-origin: 96px 50px; transform-box: view-box; }
.dk__motif .m-spin { transform-origin: center; }
@keyframes dkSweep { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 14px); } }
@keyframes dkSpin { to { transform: rotate(360deg); } }
@keyframes dkFill { 0% { opacity: .12; } 40% { opacity: .85; } 100% { opacity: .12; } }
@keyframes dkWave { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .7; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes dkPin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes dkSite { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
@keyframes dkDraw { 0% { opacity: .15; } 45% { opacity: 1; } 100% { opacity: .15; } }
@keyframes dkCable { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes dkBolt { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes dkPulse { 0% { r: 4; opacity: .9; } 100% { r: 16; opacity: 0; } }
@keyframes dkRoll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes dkTick { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes dkDev { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(6px); opacity: 1; } }
@keyframes dkBar { 0% { transform: scaleX(.25); opacity: .2; } 60% { transform: scaleX(1); opacity: .75; } 100% { transform: scaleX(1); opacity: .3; } }
@keyframes dkFlow { to { stroke-dashoffset: -22; } }
@keyframes dkTurn { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }

/* the featured deck (Company Overview) runs the whole row, cover beside the copy */
@media (min-width: 900px) {
  .dk--hero { grid-column: 1 / -1; flex-direction: row; }
  .dk--hero .card__media {
    flex: 0 0 58%; border-radius: calc(var(--r-3) - 1px) 0 0 calc(var(--r-3) - 1px);
  }
  .dk--hero .dk-cover { border-bottom: 0; border-right: 1px solid var(--line); }
  .dk--hero .card__body { justify-content: center; padding: clamp(28px, 3vw, 48px); gap: 18px; }
  .dk--hero .card__title { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.02em; }
  .dk--hero .dk__blurb { --lines: 5; font-size: 1rem; }
  .dk--hero .card__foot { margin-top: 10px; }
}

/* waiting for /api/decks-list, and the two empty states */
.dk-wait { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.dk-wait__bar { position: relative; width: 120px; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.dk-wait__bar i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--grad-mark-h); animation: dk-wait 1.4s var(--ease-in-out) infinite; }
@keyframes dk-wait { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.dk-wait__t { font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--fg-3); }
.dk-ghost { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--ink-2); overflow: hidden; }
.dk-ghost::before { content: ""; display: block; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #09090f, var(--ink-0)); border-bottom: 1px solid var(--line); }
.dk-ghost i { display: block; height: 12px; margin: 22px 24px 0; border-radius: 3px; background: var(--ink-3); }
.dk-ghost i:nth-child(2) { width: 46%; height: 18px; }
.dk-ghost i:last-child { width: 70%; margin-bottom: 26px; }
.dk-empty { margin: 0; padding: 48px 0; color: var(--fg-2); font-size: 1.0625rem; }
.dk-empty a { color: var(--accent-text); }

/* ------------------------------------------------------------------ walked through */
.dk-talk .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.dk-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); max-width: 920px; }
@media (max-width: 699px) { .dk-people { grid-template-columns: minmax(0, 1fr); } }
.dk-person { gap: 6px; }
.dk-person h3 { font-size: var(--fs-h4); }
.dk-person .card__eyebrow { margin: 0 0 12px; }
.dk-person a {
  display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--fg-2); text-decoration: none;
  font-size: var(--fs-small); overflow-wrap: anywhere; transition: color var(--t-fast);
}
.dk-person a + a { border-top: 1px solid var(--line); }
.dk-person a svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dk-person a:hover { color: var(--fg); }

/* the saasyn credit wears saasyn's palette, and runs their hero shader (js/syn-flow.js) */
.builtby {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin: clamp(48px, 5vw, 80px) 0 0;
  padding: 22px 28px; border: 1px solid rgba(34, 211, 238, .26); border-radius: var(--r-3);
  background-color: #070a16; text-decoration: none;
  transition: border-color .25s, box-shadow .25s;
}
.builtby::before {
  content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 185% at 9% 38%, rgba(14, 165, 233, .42), transparent 70%),
    radial-gradient(ellipse 36% 175% at 45% 62%, rgba(34, 211, 238, .28), transparent 70%),
    radial-gradient(ellipse 44% 190% at 88% 44%, rgba(124, 92, 255, .40), transparent 70%);
  filter: blur(26px);
}
.bb-flow { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.builtby::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(5, 6, 14, .50), rgba(5, 6, 14, .38) 46%, rgba(5, 6, 14, .46));
}
.builtby > span { position: relative; z-index: 3; }
a.builtby:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 1px rgba(34, 211, 238, .14), 0 18px 44px rgba(14, 165, 233, .13); }
.builtby .bb-lab { font-size: 0.9375rem; font-weight: 500; color: var(--fg); white-space: nowrap; }
/* the wordmark sits on the label's baseline: margin-bottom is the y's descender (15 x 200/708) */
.builtby .bb-logo { display: inline; height: 15px; width: auto; vertical-align: baseline; margin: 0 0 -4.24px 9px; filter: invert(1); opacity: .95; }
.builtby .bb-note { font-size: 0.9375rem; color: #d7e0f0; flex: 1 1 260px; }
.builtby .bb-go {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: #5fe3f7; white-space: nowrap;
}
.builtby .bb-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
a.builtby:hover .bb-go svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ saasyn edge bar
   Rests closed against the right edge showing only the wordmark and opens on hover or focus;
   on touch the first tap opens it and the second follows the link. */
.synbar {
  position: fixed; right: 0; top: 50%; z-index: 40; display: flex; align-items: stretch;
  text-decoration: none; color: inherit;
  background: rgba(14, 14, 21, .94); border: 1px solid var(--line-2); border-right: 0;
  border-radius: var(--r-3) 0 0 var(--r-3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
  transform: translate(calc(100% - 46px), -50%);
  transition: transform .4s var(--ease-out), border-color .3s;
}
.synbar:hover, .synbar:focus-visible, .synbar.open { transform: translate(0, -50%); border-color: var(--accent-text); }
.synbar:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sb-tab { flex: 0 0 46px; position: relative; display: block; border-right: 1px solid var(--line); }
.sb-chev {
  position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%);
  width: 15px; height: 15px; stroke: var(--fg-3); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease-out), stroke .3s;
}
.synbar:hover .sb-chev, .synbar.open .sb-chev { transform: translateX(-50%) rotate(180deg); stroke: var(--accent-text); }
.sb-tab img {
  position: absolute; top: 50%; left: 50%; width: 78px; height: auto; max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg); filter: invert(1); opacity: .82; transition: opacity .3s;
}
.synbar:hover .sb-tab img, .synbar.open .sb-tab img { opacity: 1; }
.sb-body { width: 252px; padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.sb-body b { font-size: 0.9375rem; font-weight: 500; color: var(--fg); }
.sb-note { font-size: 0.875rem; color: var(--fg-3); line-height: 1.45; }
.sb-go { font: 500 var(--fs-mono)/1.2 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--accent-text); margin-top: 4px; }
/* on a narrow screen the strip under the list carries this, and a fixed tab would sit over the cards */
@media (max-width: 820px) { .synbar { display: none; } }

/* ------------------------------------------------------------------ toast */
#toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 60; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--ink-4); color: var(--fg);
  font-size: 0.9375rem; line-height: 1.3; box-shadow: var(--shadow-2);
  opacity: 0; transform: translate(-50%, 12px) scale(.98); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
#toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
#toast.bad { border-color: var(--bad); }
#toast svg { flex: none; width: 17px; height: 17px; stroke: var(--cyan); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#toast span { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .dk-stack .sh-a, .dk-stack .sh-b, .dk-stack .sh-c, .dk-stack .orbit, .dk__motif .m-orbit, .dk-wait__bar i { animation: none !important; }
  :is(.dk:hover, .dk.play) .dk__motif * { animation: none !important; }
  .synbar, #toast { transition: none; }
}

/* a deck marked retired, internal or tool (the server only sends these when they are switched on) */
.dk-cover__badge {
  position: absolute; top: 6.4%; right: 5.6%; z-index: 1;
  background: color-mix(in srgb, var(--ink-1) 80%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}
