/* Panel 01 · ON-CE Again — identity from the app's own site: cinematic story clips + progress bars,
   Chakra Petch / IBM Plex Mono, topographic contours, amber #F5B700 only on track / sparkle / CTA. */
@font-face{font-family:"once-Chakra";src:url(chakra-petch-700-latin.woff2?v=9864eef3) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"once-Plex";src:url(once-plex-mono-500.woff2?v=3a2668b9) format("woff2");font-weight:500;font-display:swap}

.p-once{--once-amber:#F5B700;--once-amber-hi:#FFD24D;--once-card:#1c1c1e;--once-mono:"once-Plex","site-Plex",ui-monospace,monospace;--once-disp:"once-Chakra","site-Chakra","Chakra Petch",sans-serif;
  background:#000;color:#fff}

/* ---- cinematic stage ---- */
.p-once .once-stage{position:absolute;inset:0;z-index:0;background:#000}
.p-once .once-clip{position:absolute;inset:0;opacity:0;transition:opacity 1s ease}
.p-once .once-clip.is-on{opacity:1}
.p-once .once-clip img,.p-once .once-clip video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;opacity:.7}
.p-once .once-clip video{background:transparent}
.p-once .once-scrim{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.78) 34%,rgba(0,0,0,.22) 72%,rgba(0,0,0,.4) 100%),linear-gradient(0deg,#000 0%,transparent 32%),linear-gradient(180deg,rgba(0,0,0,.55) 0%,transparent 22%)}
.p-once .once-topo{position:absolute;inset:0;z-index:1;background:url(once-topo.svg?v=2991500c) center/cover;opacity:.1;mix-blend-mode:screen;pointer-events:none}

/* ---- story progress bars (as on on-ce.com) ---- */
.p-once .once-bars{display:none;position:absolute;z-index:4;top:54px;left:var(--gut);right:var(--gut);gap:6px}
.js .p-once .once-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.p-once .once-bar{height:44px;padding:6px 0 0;border:0;background:transparent;cursor:pointer}
.p-once .once-bar span{display:block;height:3px;border-radius:2px;background:rgba(255,255,255,.3);position:relative;overflow:hidden}
.p-once .once-bar span::after{content:"";position:absolute;inset:0;background:#fff;transform-origin:left;transform:scaleX(var(--fill,0))}
.p-once .once-bar:focus-visible,.p-once .once-pause:focus-visible,.p-once .once-btn:focus-visible,.p-once .p-cta:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 5px #000}

.p-once .once-story{position:relative;z-index:4;display:none;align-items:center;gap:12px;font-family:var(--once-mono);font-weight:500;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.78)}
.js .p-once .once-story{display:flex}
.p-once .once-count{color:var(--once-amber)}
.p-once .once-cap{max-width:34ch;line-height:1.4;text-align:left}
.p-once .once-cap [hidden]{display:none}
.p-once .once-pause{display:none;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.14);cursor:pointer;place-items:center;flex:none}
.js .p-once .once-pause{display:grid}
.p-once .once-pause svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p-once .once-pause .i-play{fill:#fff;display:none}
.p-once .once-pause[aria-pressed=true] .i-pause{display:none}
.p-once .once-pause[aria-pressed=true] .i-play{display:block}

/* ---- copy ---- */
.p-once .copy{position:relative;z-index:3}
.p-once .p-meta{font-family:var(--once-mono);font-weight:500;letter-spacing:.16em}
.p-once .pill{color:var(--once-amber)}
.p-once .once-h{margin-top:26px;line-height:0;font-weight:400}
.p-once .once-h img{width:clamp(170px,16vw,260px);height:auto}
.p-once .p-line{font-family:var(--once-mono);font-weight:500;font-size:clamp(15px,1.2vw,18px);line-height:1.45;letter-spacing:.01em;max-width:32ch;margin-top:22px;color:#fff}
.p-once .p-ai{font-size:13.5px;line-height:1.55;max-width:44ch;margin-top:16px;color:rgba(255,255,255,.78);opacity:1}
.p-once .p-ai em{font-family:var(--once-mono);font-weight:500;color:var(--once-amber);opacity:1}
.p-once .once-links{margin-top:26px}
.p-once .once-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;background:var(--once-amber);color:#000;font-family:var(--once-disp);font-weight:700;font-size:clamp(11.5px,.95vw,13px);letter-spacing:.08em;white-space:nowrap;text-transform:uppercase;text-decoration:none;margin-bottom:4px;transition:background .2s}
.p-once .once-btn:hover{background:var(--once-amber-hi)}
.p-once .once-links{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.p-once .once-sec{display:flex;flex-wrap:wrap;gap:0 26px}
.p-once .once-links .p-cta{margin-top:0;padding-top:0;align-self:center;font-family:var(--once-disp);font-weight:700;text-transform:uppercase;letter-spacing:.1em;font-size:12.5px;color:#fff;border-bottom-color:rgba(255,255,255,.45)}
.p-once .once-links .p-cta.case{opacity:.85}
.p-once .once-links .p-cta:hover{border-bottom-color:var(--once-amber);opacity:1}

/* ---- real app capture in a phone frame ---- */
.p-once .once-vis{position:relative;z-index:3;justify-self:center;font-size:12.5px;display:flex;flex-direction:column;align-items:center;margin:0}
.p-once .once-phone{position:relative;width:23em;border-radius:3.1em;padding:.14em;background:linear-gradient(160deg,#6a6a6e,#2a2a2c 45%,#58585c);box-shadow:0 30px 70px -24px rgba(0,0,0,.85),0 0 90px -30px rgba(245,183,0,.14)}
.p-once .once-phone img{display:block;width:100%;height:auto;aspect-ratio:560/1210;object-fit:cover;border-radius:2.96em;background:#000}

@media (prefers-reduced-motion:reduce){.p-once .once-bars,.p-once .once-pause,.p-once .once-story{display:none!important}.p-once .once-clip video{display:none}}

/* ---- desktop: 2 columns inside the sticky 100svh panel ---- */
@media (min-width:900px){
  .p-once .once-vis{font-size:clamp(9.5px,min(1.05vw,1.45svh),13px)}
  .p-once .once-story{position:absolute;right:var(--gut);bottom:22px;max-width:calc(100% - var(--gut) * 2 - 260px);justify-content:flex-end;text-align:right}
}
/* ---- below 900: plain section, copy then screen ---- */
@media (max-width:899px){
  .p-once .once-bars{top:68px}
  .js section.p-once{padding-top:124px}
  .p-once .once-scrim{background:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.72) 40%,rgba(0,0,0,.9) 100%)}
  .p-once .once-vis{font-size:12.5px}
  .p-once .once-story{justify-self:start;align-self:start;width:100%}
  .p-once .once-btn{width:100%;justify-content:center;margin-bottom:6px}
}
@media (max-width:899px) and (max-height:500px){
  .p-once .once-vis{font-size:11px}
}
@media (forced-colors:active){.p-once .once-bar span::after{background:Highlight}}

/* ---- three phones, light parallax (translate set by site.js) ---- */
section.p-once{overflow-x:clip}
.p-once .once-phones{position:relative}
.p-once .once-main{z-index:2}
.p-once .once-side{position:absolute;width:17.5em;z-index:1;box-shadow:0 24px 50px -22px rgba(0,0,0,.9)}
.p-once .once-l{left:-46%;top:16%}
.p-once .once-r{right:-46%;top:4%}
@media (max-width:599px){.p-once .once-l{left:-30%}.p-once .once-r{right:-30%}.p-once .once-side{width:15.2em}}
@media (max-width:899px){.p-once .once-main{width:19.55em}}
@media (max-width:899px){.p-once .once-story{display:none}}
/* device-framed captures: the frame is in the image */
.p-once .once-dev{background:none;padding:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 24px 40px rgba(0,0,0,.6))}
.p-once .once-dev img{aspect-ratio:550/1020;border-radius:0;background:none}
/* owner request: no video captions on mobile, no pause button anywhere (beats the .js display rules) */
@media (max-width:899px){.js .p-once .once-story{display:none!important}}
.js .p-once .once-pause{display:none!important}
