/* SP-B085 (Eric, 2026-10-26): the skinny frame around every project. Matches the home-page build tours. */
body.c1 .spf{container-type:inline-size;width:100%;margin:0 0 18px;outline:0;font-family:Inter,system-ui,sans-serif}
body.c1 .spf-stage{overflow:hidden;border:1px solid rgba(182,205,240,.3);border-radius:10px;background:#020817}
body.c1 .spf-chrome{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:8px;height:34px;padding:0 12px;border-bottom:1px solid rgba(182,205,240,.2);background:linear-gradient(180deg,#172743,#101d37);color:#becce1}
body.c1 .spf-lights{display:flex;gap:5px}
body.c1 .spf-lights i{width:7px;height:7px;border-radius:50%;background:#ff6f6a}
body.c1 .spf-lights i:nth-child(2){background:#ffd16d}
body.c1 .spf-lights i:nth-child(3){background:#69d69a}
body.c1 .spf-address{justify-self:center;max-width:100%;overflow:hidden;padding:3px 11px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(2,8,23,.36);font-size:10px;letter-spacing:.03em;text-overflow:ellipsis;white-space:nowrap}
body.c1 .spf-count{justify-self:end;color:#d5e4fa;font-size:10px;font-weight:700;letter-spacing:.08em;font-variant-numeric:tabular-nums}
body.c1 .spf-screen{position:relative;display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;background:radial-gradient(ellipse,#20385d,#050b19 75%)}
body.c1 .spf-img{display:block;width:100%;height:100%;object-fit:contain;cursor:pointer;transition:opacity .22s ease}
body.c1 .spf-img.is-changing{opacity:.35}
body.c1 .spf-tag{position:absolute;bottom:10px;left:12px;padding:5px 9px;border:1px solid rgba(220,235,255,.42);border-radius:999px;background:rgba(4,12,38,.78);color:#eff6ff;font-size:10px;font-weight:800;letter-spacing:.08em}
body.c1 .spf .spf-caption{min-height:20px;margin:0!important;padding:10px 14px;border-top:1px solid rgba(182,205,240,.18);color:#d2dced;font-size:13px;line-height:1.5}
body.c1 .spf-stage .sm-bar{margin:0;padding:10px 12px 12px;border-top:1px solid rgba(182,205,240,.2)}
body.c1 .spf-stage .sm-bar:has(> .sm-panel[hidden]){display:none}
body.c1 .spf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
body.c1 .spf-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 13px;border:1px solid rgba(141,168,207,.62);border-radius:999px;background:rgba(8,20,45,.66);color:#edf4ff;font:700 12px/1 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
body.c1 .spf-btn:hover{border-color:#a9ccff;background:rgba(123,166,226,.18)}
body.c1 .spf-play{min-width:84px;border-color:#ff9c5c;background:linear-gradient(180deg,#ff9a54,#f17b2e);color:#1a0e08}
body.c1 .spf-play:hover{border-color:#ffc08e;background:linear-gradient(180deg,#ffb375,#ff9148)}
body.c1 .spf-scrub-row{display:flex;flex:1 1 120px;align-items:center;gap:10px;min-width:0}
body.c1 .spf-scrub{flex:1;min-width:0;height:20px;margin:0;accent-color:#ff8a3d;cursor:pointer}
body.c1 .spf-time{flex:0 0 auto;min-width:76px;color:#c6d2e8;font-size:12px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
body.c1 .spf-markup-slot{display:contents}
body.c1 .spf-bar .sm-toggle{min-height:34px;padding:6px 13px;border:1.5px solid #1AA0DC;border-radius:999px;background:rgba(4,12,38,.72);color:#fff;font:700 12px Inter,system-ui,sans-serif}
body.c1 .spf-bar .sm-toggle.is-open{background:#1AA0DC;color:#041126}
body.c1 .spf .spf-hint{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;margin:8px 2px 0!important;color:#9fb0c8;font-size:11px;line-height:1.4}
body.c1 .spf-build{color:#74d2ff;font-weight:800;letter-spacing:.06em}
body.c1 .spf :is(button,input):focus-visible{outline:3px solid #ffad76;outline-offset:2px}
body.c1 .spf:fullscreen{display:flex;flex-direction:column;justify-content:center;padding:24px;background:#040c26;overflow:auto}
body.c1 .spf:fullscreen .spf-stage,body.c1 .spf:fullscreen .spf-bar,body.c1 .spf:fullscreen .spf-hint{width:min(100%,calc((100vh - 200px) * 16 / 9));margin-right:auto;margin-left:auto}

/* Narrow frames (cards, phones): progress on its own line, then the buttons. */
@container (max-width:760px){
  body.c1 .spf-scrub-row{order:-1;flex-basis:100%}
}

/* Client cards with a frame: one card per row so the frame is big enough to read. */
body.c1 .sp-client-grid:has(.has-spf){grid-template-columns:1fr;gap:56px}
body.c1 .sp-client.has-spf{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:32px;align-items:start}
@media(max-width:900px){body.c1 .sp-client.has-spf{grid-template-columns:1fr;gap:18px}}
body.c1 .c1-work-card.has-spf{cursor:default}
@media(prefers-reduced-motion:reduce){body.c1 .spf-img{transition:none}}

/* SP-B087 (Eric, 2026-10-26): one skinny bar. Play · scrubber with a dot per screen · one speed pill · Mark & Copy
   · Full screen · Explore build. The caption is one slim line; only the build stamp stays under the bar. */
body.c1 .spf .spf-caption{overflow:hidden;padding:8px 14px;white-space:nowrap;text-overflow:ellipsis}
body.c1 .spf-track{position:relative;display:flex;flex:1;align-items:center;min-width:0}
body.c1 .spf-dots{position:absolute;inset:0;pointer-events:none}
body.c1 .spf-dots button{position:absolute;top:50%;left:calc(8px + (100% - 16px) * var(--at,0));width:11px;min-width:0;height:11px;min-height:0;padding:0;border:2px solid #040c26;border-radius:50%;background:#c6d2e8;transform:translate(-50%,-50%);cursor:pointer;pointer-events:auto}
body.c1 .spf-dots button[aria-current=true]{background:#ff8a3d}
body.c1 .spf-dots button:hover{background:#fff;transform:translate(-50%,-50%) scale(1.25)}
body.c1 .spf-bar .spf-speed{min-width:52px;padding-right:10px;padding-left:10px;font-variant-numeric:tabular-nums}
body.c1 .spf-explore{text-decoration:none}
body.c1 .spf .spf-hint{justify-content:flex-end}
@container (max-width:760px){
  body.c1 .spf-bar .spf-speed{flex:0 0 auto}
  body.c1 .spf-explore{margin-left:auto}
}

/* SP-B092 (Eric, 2026-10-26): frames show each screenshot at its natural height, like the home tour. */
body.c1 .spf-screen{aspect-ratio:auto}
body.c1 .spf-img{height:auto;max-height:82vh}

/* SP-B103 (Eric, 2026-10-27): website frames get two header buttons, Watch Website Tour and View Back-End Dashboard.
   Same pill styles as the bar: the chosen view takes the orange Play look. */
body.c1 .spf-views{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 10px}
body.c1 .spf-views .spf-view{min-height:38px;padding:8px 16px;font-size:13px}
body.c1 .spf-views .spf-view[aria-pressed=true]{border-color:#ff9c5c;background:linear-gradient(180deg,#ff9a54,#f17b2e);color:#1a0e08}
@container (max-width:520px){body.c1 .spf-views .spf-view{flex:1 1 100%}}

/* SP-B112 (2026-10-29): on phones the caption wraps instead of cutting off with "…" (same as the home tour, SP-B095). */
@media (max-width:600px){body.c1 .spf .spf-caption{white-space:normal;overflow:visible;text-overflow:clip}}
