/* SEE IT — watch Complly work (mock-up, 18 Oct 2026; Epic #299 / #301). Risk and Construct each get a captioned
   walkthrough of real product screens on a made-up company; FRA and Inspection are honest "in development" rows;
   Try it live hands over to the existing demo. Owner, 18 Oct: "keep this at Risk and Construct for now".

   🔑 THE PAGE MUST LOOK FINISHED WITH STILLS ALONE (the epic's own rule). So the "player" is a slideshow of stills
   with subtitles, not a video that may never arrive. When recordings exist, the same frame takes a <video> and the
   step list becomes chapters; nothing else on the page changes.
   🔑 It uses the site's own tokens (--p-risk, --p-construct …) and the thread's chip style, so a product is the same
   colour here as on Our apps. */
.sx [data-p="risk"] { --c: var(--p-risk); }
.sx [data-p="construct"] { --c: var(--p-construct); }
.sx [data-p="fra"] { --c: var(--p-fra); }
.sx [data-p="inspect"] { --c: var(--p-inspect); }

/* ---- hero ---- */
.sx-hero { padding: clamp(138px, 13vw, 170px) 0 clamp(30px, 4vw, 52px); text-align: center; }
.sx-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .35); padding: 5px 12px; border-radius: 999px; }
.sx-hero h1 { margin: 16px auto 0; max-width: 820px; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; color: var(--white); }
.sx-hero__lede { margin: 16px auto 0; max-width: 640px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--slate-300); }
.sx-hero__lede b { color: var(--white); font-weight: 600; }
.sx-hero__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.sx-pick { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 14px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--white);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  transition: background .25s var(--ease), transform .25s var(--ease); }
.sx-pick:hover { background: color-mix(in srgb, var(--c) 24%, transparent); transform: translateY(-1px); }
.sx-pick__play { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); }
.sx-pick__play svg { width: 11px; height: 11px; fill: #0a1424; margin-left: 2px; }
.sx-pick small { display: block; font-family: var(--font-body, inherit); font-weight: 500; font-size: 12px; color: var(--slate-300); }
.sx-pick span { text-align: left; line-height: 1.2; }
.sx-hero__note { margin: 18px 0 0; font-size: 13px; color: var(--slate-400); }

/* ---- one product ---- */
.sx-prod { padding: clamp(40px, 5vw, 70px) 0; scroll-margin-top: 90px; }
.sx-prod + .sx-prod { border-top: 1px solid rgba(148, 163, 184, .14); }
.sx-prod__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.sx-prod--flip .sx-prod__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.sx-prod--flip .sx-player { order: 2; }
.sx-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c); }
.sx-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.sx-prod h2 { margin: 10px 0 0; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.1; letter-spacing: -.03em; color: var(--white); }
.sx-prod__lede { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--slate-300); }

/* the step list: chapters of the walkthrough */
.sx-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: sx; }
.sx-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-items: start; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer; padding: 10px 12px; border-radius: 12px; background: none; border: 1px solid transparent; overflow: hidden;
  transition: background .25s var(--ease), border-color .25s var(--ease); }
.sx-step:hover { background: rgba(255, 255, 255, .035); }
.sx-step[aria-current="step"] { background: color-mix(in srgb, var(--c) 9%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.sx-step__n { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: 12px; color: var(--slate-300); border: 1px solid rgba(148, 163, 184, .35); transition: all .25s var(--ease); }
.sx-step[aria-current="step"] .sx-step__n { color: #0a1424; background: var(--c); border-color: var(--c); }
.sx-step.is-seen .sx-step__n { color: var(--c); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.sx-step b { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--white); }
.sx-step small { font-size: 13px; line-height: 1.45; color: var(--slate-400); }
.sx-step__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c); }

.sx-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sx-fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--slate-500); }

/* ---- the player ---- */
.sx-player { position: relative; border-radius: 18px; overflow: hidden; background: #0b1527;
  border: 1px solid color-mix(in srgb, var(--c) 40%, rgba(148, 163, 184, .2)); box-shadow: 0 30px 70px -34px var(--c), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.sx-player__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #0f1b30; border-bottom: 1px solid rgba(148, 163, 184, .14);
  font-size: 12px; color: var(--slate-400); }
.sx-player__dots { display: inline-flex; gap: 6px; }
.sx-player__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .3); }
.sx-player__where { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-player__where b { color: var(--slate-200); font-weight: 600; }
.sx-player__screen { position: relative; aspect-ratio: 16 / 10; background: #f8fafc; overflow: hidden; cursor: pointer; }
.sx-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.015);
  transition: opacity .6s var(--ease), transform 6s linear; }
.sx-frame.is-on { opacity: 1; transform: scale(1.025); }
.sx-frame { transform-origin: 50% 0; }
.sx-player:not(.is-playing) .sx-frame.is-on { transform: scale(1); transition: opacity .6s var(--ease), transform .6s var(--ease); }
/* subtitles: the walkthrough works with the sound off because there is no sound */
.sx-sub { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(88%, 720px); text-align: center; pointer-events: none;
  font-size: clamp(13px, 1.15vw, 16px); line-height: 1.45; font-weight: 500; color: #fff; }
.sx-sub span { display: inline; padding: 5px 10px; border-radius: 8px; background: rgba(10, 20, 36, .86); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* the big play button before the first play */
.sx-cover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(10, 20, 36, .15), rgba(10, 20, 36, .55));
  border: 0; cursor: pointer; transition: opacity .35s var(--ease); }
.sx-cover__btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; background: rgba(10, 20, 36, .88);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 40px -12px var(--c); }
.sx-cover__btn i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); }
.sx-cover__btn svg { width: 15px; height: 15px; fill: #0a1424; margin-left: 3px; }
.sx-cover__btn small { display: block; font-family: var(--font-body, inherit); font-weight: 500; font-size: 12px; color: var(--slate-300); }
.sx-player.is-started .sx-cover { opacity: 0; pointer-events: none; }

/* controls */
.sx-ctl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0f1b30; border-top: 1px solid rgba(148, 163, 184, .14); }
.sx-ctl button { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(148, 163, 184, .2); color: var(--white); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.sx-ctl button:hover { background: rgba(255, 255, 255, .1); border-color: var(--c); }
.sx-ctl button:focus-visible, .sx-step:focus-visible, .sx-cover:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.sx-ctl svg { width: 14px; height: 14px; fill: currentColor; }
.sx-ctl .sx-play .ic-pause, .sx-player.is-playing .sx-ctl .sx-play .ic-play { display: none; }
.sx-player.is-playing .sx-ctl .sx-play .ic-pause { display: block; }
.sx-prog { flex: 1; display: flex; gap: 4px; min-width: 0; }
.sx-prog button { flex: 1; width: auto; height: 18px; padding: 0; border: 0; background: none; border-radius: 4px; position: relative; }
.sx-prog button:hover { background: none; }
.sx-prog button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 3px; background: rgba(148, 163, 184, .25); }
.sx-prog button i { position: absolute; left: 0; top: 7px; height: 4px; width: 0; border-radius: 3px; background: var(--c); }
.sx-prog button.is-done i { width: 100%; }
.sx-count { flex: none; font-size: 12px; color: var(--slate-400); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

/* ---- in development ---- */
.sx-dev { padding: clamp(36px, 4.5vw, 60px) 0; border-top: 1px solid rgba(148, 163, 184, .14); }
.sx-dev h2 { margin: 0; text-align: center; font-size: clamp(22px, 2.2vw, 28px); color: var(--white); letter-spacing: -.02em; }
.sx-dev > .container > p { margin: 8px auto 0; text-align: center; max-width: 620px; font-size: 14.5px; line-height: 1.6; color: var(--slate-400); }
.sx-dev__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 22px auto 0; }
.sx-devcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, .03); border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); transition: background .25s var(--ease); }
.sx-devcard:hover { background: rgba(255, 255, 255, .055); }
.sx-devcard__ring { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 10%, transparent); }
.sx-devcard b { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--white); }
.sx-devcard b span { color: var(--c); }
.sx-devcard small { grid-column: 2; font-size: 13px; line-height: 1.45; color: var(--slate-400); }
.sx-devcard em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-300); padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .3); white-space: nowrap; }

/* ---- try it live ---- */
.sx-live { padding: clamp(18px, 2.5vw, 34px) 0 clamp(60px, 7vw, 96px); }
.sx-live__box { position: relative; max-width: 900px; margin: 0 auto; text-align: center; padding: clamp(28px, 4vw, 46px) clamp(20px, 4vw, 48px); border-radius: 26px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(34, 211, 238, .16), rgba(11, 23, 41, .7) 62%); border: 1px solid rgba(34, 211, 238, .35); }
.sx-live h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; color: var(--white); }
.sx-live p { margin: 12px auto 0; max-width: 560px; font-size: 15.5px; line-height: 1.6; color: var(--slate-300); }
.sx-live .sx-acts { justify-content: center; margin-top: 22px; }

@media (max-width: 960px) {
  .sx-prod__grid, .sx-prod--flip .sx-prod__grid { grid-template-columns: 1fr; }
  .sx-prod--flip .sx-player { order: 0; }
}
@media (max-width: 640px) {
  .sx-dev__grid { grid-template-columns: 1fr; }
  .sx-pick { width: 100%; max-width: 360px; }
  .sx-sub { bottom: 10px; width: 94%; font-size: 12.5px; }
  .sx-cover__btn { gap: 9px; padding: 8px 14px 8px 8px; font-size: 13.5px; }
  .sx-cover__btn i { width: 32px; height: 32px; }
  .sx-cover__btn small { font-size: 11px; }
  .sx-player__where { text-align: left; }
  .sx-devcard { grid-template-columns: auto minmax(0, 1fr); }
  .sx-devcard em { grid-row: auto; grid-column: 2; justify-self: start; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-frame, .sx-frame.is-on { transition: opacity .2s linear !important; transform: none !important; }
  .sx-pick, .sx-step, .sx-cover { transition: none !important; }
}

/* ---- expand (owner, 18 Oct 2026: "make the videos expand out too") — see-it.js lifts the player out of the page ----
   The player moves to <body> while big (so no transformed or clipped ancestor can trap a fixed box), sized to the
   largest 16:10 picture that fits the screen with its bar and controls. Esc, the backdrop or the button put it back. */
.sx-ctl .sx-big .ic-shrink, .sx-player.is-big .sx-ctl .sx-big .ic-grow { display: none; }
.sx-player.is-big .sx-ctl .sx-big .ic-shrink { display: block; }
.sx-ctl .sx-big[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.sx-holder { border-radius: 18px; border: 1px dashed rgba(148, 163, 184, .25); background: rgba(255, 255, 255, .02); }
.sx-backdrop { position: fixed; inset: 0; z-index: 135; background: rgba(5, 10, 20, .82); backdrop-filter: blur(4px); animation: sxFade .25s ease-out both; }
.sx-player.is-big { position: fixed; z-index: 140; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(94vw, calc((100vh - 170px) * 1.6), 1600px); animation: sxGrow .32s cubic-bezier(.22, 1, .36, 1) both; }
.sx-player.is-big .sx-sub { bottom: 26px; font-size: clamp(15px, 1.5vw, 22px); }
.sx-player.is-big .sx-sub span { padding: 7px 14px; }
html.sx-locked, html.sx-locked body { overflow: hidden; }
@keyframes sxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sxGrow { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (max-width: 640px) {
  .sx-player.is-big { width: 100vw; border-radius: 0; border-left: 0; border-right: 0; }
  .sx-player.is-big .sx-sub { bottom: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sx-backdrop, .sx-player.is-big { animation: none !important; } }

/* ---- chapters, camera, pointer and finish card (19 Oct 2026; see-it.js v4) ----
   The stills no longer drift on their own: the CAMERA (.sx-cam, moved by see-it.js) glides to the part each caption is
   about, and the pointer lives inside it so it zooms with the picture. These rules override the slow drift above. */
.sx-cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.25s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.sx-frame, .sx-frame.is-on, .sx-player:not(.is-playing) .sx-frame.is-on { transform: none; transition: opacity .55s var(--ease); }

.sx-ptr { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -3px 0 0 -4px; pointer-events: none;
  transition: left .9s cubic-bezier(.45, 0, .2, 1), top .9s cubic-bezier(.45, 0, .2, 1); filter: drop-shadow(0 3px 6px rgba(10, 20, 36, .45)); }
.sx-ptr svg { width: 100%; height: 100%; fill: #0a1424; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.sx-ptr i { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -14px 0 0 -14px; border-radius: 50%; border: 3px solid var(--c); opacity: 0; }
.sx-ptr.is-click svg { animation: sxPress .35s ease-out; }
.sx-ptr.is-click i { animation: sxRipple .7s ease-out; }
@keyframes sxPress { 50% { transform: scale(.82); } }
@keyframes sxRipple { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }

.sx-chap { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(90% 90% at 50% 50%, rgba(10, 20, 36, .9), rgba(10, 20, 36, .97)); text-align: center; padding: 0 24px; }
.sx-chap[hidden] { display: none; }
.sx-chap.is-in { animation: sxChap 1.5s ease both; }
.sx-chap__n { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.sx-chap__t { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--white); }
@keyframes sxChap { 0% { opacity: 0; } 18% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
.sx-chap.is-in .sx-chap__t { animation: sxChapT 1.5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes sxChapT { 0% { transform: translateY(14px); opacity: 0; } 25% { transform: none; opacity: 1; } 100% { transform: none; } }

.sx-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 18px 24px; background: radial-gradient(110% 110% at 50% 0%, color-mix(in srgb, var(--c) 22%, rgba(10, 20, 36, .95)), rgba(10, 20, 36, .97));
  animation: sxFade .4s ease-out both; }
.sx-end[hidden] { display: none; }
.sx-end__k { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.sx-end__t { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; color: var(--white); max-width: 560px; }
.sx-end ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 7px; text-align: left; }
.sx-end li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--slate-200); }
.sx-end li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #0a1424; background: var(--c); }
.sx-end__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.sx-player.is-ended .sx-sub { display: none; }

/* the step list, grouped under its chapters */
.sx-chaphead { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.sx-chaphead:first-child { margin-top: 0; }
.sx-chaphead span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; color: #0a1424; background: var(--c); letter-spacing: 0; }
.sx-steps { gap: 3px; }
.sx-step { padding: 8px 12px; }
.sx-step small { display: none; }
.sx-step[aria-current="step"] small { display: block; }

@media (max-width: 640px) {
  .sx-end li { font-size: 13px; }
  .sx-end ul { display: none; }
  .sx-end__k { display: none; }
  .sx-ptr { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-cam { transition: none !important; }
  .sx-chap, .sx-ptr { display: none !important; }
}

/* Phones: the step bar's buttons were 18px tall (and only 4-8px wide with nine steps) — a fingertip missed them.
   Taller hit area; the visible 4px bar stays exactly where it was relative to the button's middle. */
@media (max-width: 680px) {
  .sx-prog button { height: 32px; }
  .sx-prog button::before, .sx-prog button i { top: 14px; }
}
