/* VIGILFRAME deck. Desktop only (1440-1920 wide). One 3D stage behind, one frame in front. Tokens: ui/tokens.css. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #000; color: var(--ink); font: 400 1.15rem/1.45 var(--font-body); overflow: hidden; -webkit-font-smoothing: antialiased; }
/* The slide: a fixed 1920x1080 design space, scaled as one unit to fit the window (letterboxed), so nothing reflows. */
.slide { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: center; background: var(--bg); overflow: hidden; }
button { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.7rem 1.4rem; cursor: pointer; min-height: 2.9rem; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s; }
button:hover:not(:disabled) { border-color: var(--ink); }
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
/* Chrome */
.deck-header { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; height: 3.5rem; padding: 0 2.5rem; font: 500 0.85rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.deck-run { color: var(--ink-2); }
.deck-stage { position: absolute; inset: 0; z-index: 0; transition: opacity 0.5s; }

.deck-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.deck-tags { position: absolute; inset: 0; pointer-events: none; --stage-scale: 1; }
.deck { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: 1fr auto; pointer-events: none; }
.deck > * { pointer-events: auto; }
.deck-frames { position: relative; min-height: 0; }
/* Frame grid: 12 columns, 3 rows; each kind places its parts. */
.deck-frame { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: 1.5rem; padding: 5rem 2.5rem 1.5rem; }
.deck-frame[hidden] { display: none; }
.deck-frame.is-entering .deck-copy, .deck-frame.is-entering .deck-vote, .deck-frame.is-entering .deck-choose, .deck-frame.is-entering .deck-media, .deck-frame.is-entering .deck-rows { animation: deck-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes deck-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Copy block */
.deck-copy { grid-column: 1 / span 4; grid-row: 1 / span 3; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; max-width: 36rem; max-height: 100%; overflow: hidden; padding: 1.25rem 1.5rem 1.25rem 1.5rem; border-left: 2px solid var(--ice); background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 70%, transparent) 85%, transparent); }
.deck-kicker { margin: 0 0 0.6rem; color: var(--ice); font: 500 0.8rem/1.3 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.deck-title { margin: 0 0 0.8rem; font: 600 2.6rem/1.06 var(--font-body); letter-spacing: -0.03em; text-wrap: balance; }
.deck-body { margin: 0 0 0.55rem; font-size: 1.2rem; }
.deck-body + .deck-body { color: var(--ink-2); font-size: 1.05rem; }
.deck-label { margin: 1.25rem 0 0.5rem; color: var(--ink-2); font: 500 0.75rem/1.3 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.deck-cta { margin-top: 1.25rem; border-color: var(--proof); background: var(--proof); color: #070a12; font-weight: 600; font-size: 1.15rem; padding: 0.9rem 2rem; }
.deck-cta:hover { transform: translateY(-1px); }
/* Mouse-wheel tip. */
.deck-tip { margin: 0.9rem 0 0; padding: 0.6rem 0.8rem; border-radius: 0.5rem; background: color-mix(in srgb, var(--ice) 10%, transparent); color: var(--ink); font-size: 0.95rem; line-height: 1.4; }
/* Plain introduction on every frame. */
.deck-explain { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line-2); }
.deck-explain .deck-label { margin-top: 0; }
.deck-explain-text { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.5; }
/* Cover: big headline, 3D to the right. */
.is-cover .deck-copy { border-left: 0; background: none; padding-left: 0; }
.is-cover .deck-title { font-size: 3.6rem; letter-spacing: -0.04em; }
/* Choose: question centred top, two large cards centred. */
.deck-choose, .deck-vote { margin-top: 1rem; }
.deck-choose { display: grid; gap: 0.75rem; }
.deck-choices { display: grid; gap: 0.6rem; }
.deck-choice { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; min-height: 4.6rem; padding: 0.8rem 1.2rem; text-align: left; border-radius: 0.9rem; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(8px); }
.deck-choice::before { content: ''; position: absolute; inset: auto 0 0 0; height: 100%; width: var(--fill, 0%); background: color-mix(in srgb, var(--ice) 18%, transparent); transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none; }
.deck-choice > * { position: relative; }
.deck-choice:hover:not(:disabled) { border-color: var(--ice); transform: translateY(-2px); }
.deck-choice:active { transform: translateY(0); }
.deck-choice.is-last { border-color: var(--proof); }
.deck-choice-name { font: 600 1.3rem/1.15 var(--font-body); }
.deck-choice-price { grid-column: 1; font: 500 1rem/1.2 var(--font-display); color: var(--ice); }
.deck-choice-detail { grid-column: 1; color: var(--ink-2); font-size: 0.95rem; }
.deck-choice-count { grid-column: 2; grid-row: 1 / span 2; color: var(--ink); font: 500 1rem/1 var(--font-display); min-width: 4.5rem; text-align: right; }
.is-yesno .deck-choices { grid-template-columns: 1fr 1fr; }
.is-yesno .deck-choice-name { font-size: 1.6rem; }
.deck-hint { margin: 0 0 0.6rem; color: var(--ink); font-size: 1.05rem; }
.deck-hint.is-pulse { animation: deck-in 0.4s ease both; }
.deck-reveal { margin: 0.75rem auto 0; width: min(100%, 44rem); padding: 0.9rem 1.2rem; text-align: center; border: 1px solid color-mix(in srgb, var(--proof) 45%, transparent); border-radius: 0.75rem; background: color-mix(in srgb, var(--bg-2) 88%, transparent); }
/* Record: copy left with steps, monitor right, 3D dimmed below. */
.is-record .deck-copy { justify-content: flex-start; }
.deck-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.deck-step { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; font-size: 1.02rem; color: var(--ink); }
.deck-step::before { content: ''; position: absolute; left: 0.3rem; top: 0.85rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ink-2); }
.deck-step.is-proof::before { background: var(--proof); } .deck-step.is-threat::before { background: var(--threat); }
.deck-step + .deck-step::after { content: ''; position: absolute; left: 0.55rem; top: -0.5rem; height: 1rem; border-left: 1px solid var(--line-2); }
.deck-compare { margin-top: 0.25rem; }
.deck-bars { display: grid; gap: 0.35rem; }
.deck-bar-row { display: grid; grid-template-columns: 3rem 1fr 3.5rem; align-items: center; gap: 0.6rem; font-size: 1rem; }
.deck-bar { height: 0.55rem; min-width: 2px; border-radius: 0.3rem; background: var(--ice); transition: width 0.45s; }
.deck-bar-n { color: var(--ink-2); font-family: var(--font-display); text-align: right; font-size: 0.95rem; }
.deck-media { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: start; justify-self: end; margin: 0; width: min(100%, 40rem); border: 1px solid var(--line-2); border-radius: 1rem; background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.deck-media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.deck-media-label { padding: 0.65rem 1rem; color: var(--ink-2); font: 500 0.8rem/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; border-top: 1px solid var(--line); }
.deck-rows { margin-top: 0.5rem; }
.deck-rows-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.deck-row { display: grid; grid-template-columns: 1.6rem 1fr; column-gap: 0.6rem; padding: 0.55rem 0 0.55rem; border-top: 1px solid var(--line); }
.deck-row-n { grid-row: 1 / span 2; color: var(--ink-2); font: 500 0.78rem/1.4 var(--font-display); }
.deck-row-label { color: var(--ice); font: 600 0.98rem/1.3 var(--font-body); }
.deck-row-text { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink); }
.is-rows .deck-title { font-size: 2rem; } .is-rows .deck-explain-text { font-size: 0.95rem; }
/* Record: steps in the column, the booking screen as an overlay on demand. */
.deck-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.deck-step { position: relative; padding: 0.3rem 0 0.3rem 1.4rem; font-size: 1rem; color: var(--ink); cursor: pointer; }
.deck-step::before { content: ''; position: absolute; left: 0.3rem; top: 0.8rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--proof); }
.deck-step[data-state="ahead"] { color: var(--ink-2); } .deck-step[data-state="ahead"]::before { background: var(--line-2); }
.deck-step[data-state="current"]::before { background: var(--ice); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice) 30%, transparent); }
.deck-step:hover { color: var(--ice); }
.deck-open { margin-top: 0.9rem; align-self: flex-start; border-color: var(--ice); color: var(--ice); }
.deck-overlay { position: absolute; inset: 4.5rem 2.5rem 6rem 36%; z-index: 3; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.1rem; border-radius: 1.2rem; background: color-mix(in srgb, var(--bg) 94%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: deck-in 0.4s ease both; }
.deck-close { align-self: flex-end; }
/* Bottom bar: Back, progress rail with parts, Next. */
.deck-nav { display: grid; grid-template-columns: 10rem 1fr 10rem; align-items: center; gap: 1rem; padding: 0.75rem 2.5rem 1.4rem; }
.deck-back { justify-self: start; }
.deck-next { justify-self: end; border-color: var(--proof); background: var(--proof); color: #070a12; font-weight: 600; min-width: 10rem; }
.deck-next:hover:not(:disabled) { transform: translateY(-1px); }
.deck-next:disabled { background: transparent; color: var(--ink-2); border-color: var(--line-2); opacity: 1; }
.deck-nav[data-moving="true"] .deck-next { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.deck-next { transition: opacity 0.4s ease 0.15s; }
.deck-rail { display: flex; justify-content: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.deck-rail-part { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.deck-rail-label { color: var(--ink-2); font: 500 0.72rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.deck-rail-part[data-current="true"] .deck-rail-label { color: var(--ink); }
.deck-rail-dots { display: flex; gap: 0.45rem; }
.deck-dot { width: 0.6rem; height: 0.6rem; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); transition: background 0.2s, transform 0.2s; }
.deck-dot[data-state="reached"] { background: var(--ink-2); }
.deck-dot[data-state="current"] { background: var(--proof); transform: scale(1.35); }
.deck-dot:disabled { opacity: 1; cursor: default; }
/* Three.js tag layer: the same tiers as the explainer, sized for a full-screen stage. */
.motion-tag { position: absolute; left: 0; top: 0; padding: 0.35rem 0.65rem; background: color-mix(in srgb, var(--bg) 80%, transparent); border-left: 2px solid var(--ink-2); color: var(--ink); font: 500 0.98rem/1.2 var(--font-body); white-space: nowrap; will-change: transform, opacity; backdrop-filter: blur(4px); }
.motion-tag p { margin: 0; } .motion-tag-secondary { color: var(--ink-2); font-size: 0.85rem; }
.motion-tag.is-mono { font-family: var(--font-display); font-size: 0.9rem; }
.motion-tag.is-ice { border-color: var(--ice); } .motion-tag.is-threat { border-color: var(--threat); color: var(--threat); }
.motion-tag.is-proof { border-color: var(--proof); color: var(--proof); } .motion-tag.is-limit { border-color: var(--ink-2); color: var(--ink-2); }
.motion-tag.is-provider .motion-tag-main { font: 600 1.2rem/1.15 var(--font-body); }
.motion-tag.is-fixed { display: none; }
/* One plain statement at a time, under the picture. */
.motion-hero { position: absolute; left: 38%; right: 2.5rem; bottom: 7.2rem; padding: 0.9rem 1.25rem; border-left: 3px solid var(--ice); border-radius: 0 0.6rem 0.6rem 0; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(6px); will-change: opacity; }
.motion-hero p { margin: 0; }
.motion-hero-main { font: 600 1.45rem/1.2 var(--font-body); color: var(--ink); }
.motion-hero-secondary { margin-top: 0.25rem !important; color: var(--ink-2); font-size: 1.05rem; line-height: 1.4; }
.motion-hero.is-threat { border-color: var(--threat); } .motion-hero.is-threat .motion-hero-main { color: var(--threat); }
.motion-hero.is-proof { border-color: var(--proof); } .motion-hero.is-proof .motion-hero-main { color: var(--proof); }
.motion-hero.is-neutral { border-color: var(--ink-2); }
/* Booking screen: a reconstruction of the recorded provider page and simulated booking, stepping through the record. */
.deck-screen { display: flex; flex-direction: column; gap: 0.9rem; }
.screen-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.screen-pill { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line-2); border-radius: 0.6rem; color: var(--ink-2); font-size: 0.92rem; line-height: 1.2; cursor: pointer; background: color-mix(in srgb, var(--bg-2) 80%, transparent); transition: border-color 0.2s, color 0.2s; }
.screen-pill-n { flex: 0 0 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 500 0.8rem/1 var(--font-display); }
.screen-pill[data-state="done"] { color: var(--ink); } .screen-pill[data-state="done"] .screen-pill-n { background: var(--proof); border-color: var(--proof); color: #070a12; }
.screen-pill[data-state="current"] { color: var(--ink); border-color: var(--ice); background: color-mix(in srgb, var(--ice) 10%, var(--bg-2)); } .screen-pill[data-state="current"] .screen-pill-n { border-color: var(--ice); color: var(--ice); }
.screen-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.screen { border: 1px solid var(--line-2); border-radius: 0.9rem; background: #0d1220; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.screen-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; background: #141a2b; border-bottom: 1px solid var(--line); }
.screen-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-2); }
.screen-url { margin-left: 0.6rem; padding: 0.25rem 0.7rem; border-radius: 0.4rem; background: #0b0f1a; color: var(--ink-2); font: 400 0.8rem/1 var(--font-display); }
.screen-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.9rem; padding: 0.9rem 1.1rem 1.1rem; min-height: 30rem; }
.screen-notice, .screen-nav { grid-column: 1 / -1; }
.screen-notice { margin: 0; padding: 0.35rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font: 400 0.78rem/1.3 var(--font-display); }
.screen-nav { display: flex; gap: 1rem; margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.screen-nav-item { text-decoration: underline; text-underline-offset: 3px; } .screen-nav-item.is-current { color: var(--ink); }
.screen-page, .screen-panel { padding: 0.9rem 1rem; border: 1px solid var(--line-2); border-radius: 0.6rem; background: #0b0f1a; }
.screen-page[data-selected="true"] { border-color: var(--proof); }
.screen-eyebrow { margin: 0 0 0.3rem; color: var(--ink-2); font: 400 0.75rem/1.2 var(--font-display); }
.screen-name { margin: 0; font: 600 1.4rem/1.15 var(--font-display); } .screen-title { margin: 0.2rem 0 0.4rem; font: 500 0.95rem/1.2 var(--font-display); }
.screen-desc { margin: 0 0 0.6rem; font-size: 1rem; color: var(--ink); }
.screen-price { margin: 0 0 0.6rem; font: 600 1rem/1.3 var(--font-body); }
.screen-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.8rem; margin: 0 0 0.6rem; }
.screen-details dt { color: var(--ink-2); font-size: 0.78rem; } .screen-details dd { margin: 0; font-size: 0.95rem; }
.screen-small { margin: 0.3rem 0 0; color: var(--ink-2); font-size: 0.75rem; line-height: 1.35; }
.screen-redaction { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.4rem 0 0.6rem; padding: 0.6rem 0.75rem; border-left: 3px solid var(--threat); background: var(--threat-soft); }
.screen-redaction[hidden] { display: none; }
.screen-redaction-label { color: var(--threat); font: 500 0.85rem/1.2 var(--font-display); } .screen-redaction-note { color: var(--ink-2); font-size: 0.75rem; }
.screen-panel-title { margin: 0 0 0.3rem; font: 500 0.95rem/1.2 var(--font-display); }
.screen-action { display: block; width: 100%; margin: 0.5rem 0 0; padding: 0.6rem 0.8rem; border-radius: 0.4rem; text-align: left; font-size: 0.95rem; color: var(--ink-2); border-color: var(--line-2); }
.screen-action:disabled { opacity: 1; cursor: default; }
.screen-action.is-done { color: #070a12; background: var(--proof); border-color: var(--proof); font-weight: 600; }
.screen-action.is-done::after { content: '  \2713'; }
.screen-status { margin: 0.8rem 0 0; font-size: 0.95rem; }
.screen-receipt { margin-top: 0.5rem; padding: 0.5rem 0.7rem; border: 1px dashed var(--line-2); border-radius: 0.35rem; color: var(--ink-2); font: 400 0.75rem/1.3 var(--font-display); }
.screen-reply { grid-column: 1 / -1; padding: 0.9rem 1rem 1.1rem; }
.screen-bubble { max-width: 44rem; padding: 0.9rem 1.1rem; border-radius: 1rem 1rem 1rem 0.25rem; background: #141a2b; border: 1px solid var(--line-2); }
.screen-bubble-who { margin: 0 0 0.4rem; color: var(--ice); font: 500 0.78rem/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.screen-reply-text { margin: 0; white-space: pre-wrap; font: 400 0.9rem/1.45 var(--font-body); }
.screen-caption { margin: 0; font-size: 1.12rem; color: var(--ink); }
.screen-controls { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.screen-controls button { min-height: 2.4rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.screen-play { border-color: var(--ice); color: var(--ice); }
.screen-label { margin: 0; color: var(--ink-2); font: 400 0.75rem/1.3 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
[hidden] { display: none !important; }
