/* Bot case studies: a phone that plays a scripted chat as you scroll. Uses inner.css tokens and the .ozcs-card from case-study.css. */
.ozch{position:relative;border-top:1px solid var(--line)}
.ozch-stage{position:absolute;left:0;top:0;width:100%;height:100vh;height:100svh;overflow:hidden;overflow:clip;
  background:radial-gradient(50% 60% at var(--px,62%) 55%,rgba(125,57,235,.14),transparent 70%),var(--black)}
.ozch-stage[data-pin="pinned"]{position:fixed;top:0}
.ozch-stage[data-pin="after"]{top:auto;bottom:0}
.ozch-hint{position:absolute;right:var(--pad);top:max(13vh,calc(var(--hh) + 28px));text-align:right;font:400 12px/1.7 'Geist Mono',ui-monospace,monospace;color:var(--soft);z-index:3;pointer-events:none}
.ozch-clock{position:absolute;right:var(--pad);bottom:28px;z-index:3;text-align:right}
.ozch-clock b{display:block;font-family:GeistOutline,Geist,sans-serif;font-weight:300;font-size:clamp(56px,6vw,96px);line-height:.85;letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1.2px rgba(244,244,240,.55);font-variant-numeric:lining-nums tabular-nums}
.ozch-clock span{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:var(--lime)}

/* the phone */
.ozch-phone{position:absolute;top:var(--py,50%);left:var(--px,62%);width:var(--pw,340px);height:var(--ph,700px);transform:translate(-50%,-50%);border-radius:46px;background:#050505;padding:10px;
  box-shadow:0 0 0 1.5px rgba(244,244,240,.16),0 50px 120px -40px rgba(0,0,0,.95),0 0 80px -20px rgba(125,57,235,.35)}
.ozch-phone::before{content:"";position:absolute;top:18px;left:50%;width:84px;height:24px;margin-left:-42px;border-radius:14px;background:#050505;z-index:4}
.ozch-screen{position:relative;height:100%;border-radius:37px;overflow:hidden;background:#0f0f0e;display:flex;flex-direction:column}
.ozch-head{display:flex;align-items:center;gap:11px;padding:48px 16px 12px;background:#161615;border-bottom:1px solid rgba(244,244,240,.07);direction:rtl}
.ozch-av{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font:600 14px/1 Inter,Geist,sans-serif;color:var(--black);background:var(--lime)}
.ozch-av.is-bot{background:var(--violet);color:var(--white)}
.ozch-head b{display:block;font:600 14px/1.2 Geist,system-ui,sans-serif;color:var(--white)}
.ozch-head small{display:block;font:400 11px/1.3 Geist,system-ui,sans-serif;color:var(--soft);margin-top:2px}
.ozch-threads{position:relative;flex:1;min-height:0}
.ozch-thread{position:absolute;inset:0;overflow:hidden;padding:14px 12px 18px;display:flex;flex-direction:column;gap:8px;direction:rtl;
  background-image:radial-gradient(rgba(244,244,240,.035) 1px,transparent 1px);background-size:18px 18px;transition:opacity .35s ease,transform .45s var(--ease)}
.ozch-thread:not(.is-on){opacity:0;transform:translateX(-14px);pointer-events:none}
.ozch-scroll{display:flex;flex-direction:column;gap:8px;margin-top:auto;will-change:transform}

/* messages */
.ozch-day{transition:opacity .35s ease,transform .45s var(--ease);align-self:center;font:500 10.5px/1 Geist,system-ui,sans-serif;color:var(--soft);background:rgba(244,244,240,.06);padding:6px 10px;border-radius:99px;margin:4px 0}
.ozch-m{max-width:82%;align-self:flex-start;padding:8px 10px 6px;border-radius:14px;border-top-right-radius:4px;background:#1f1f1d;color:var(--white);font:400 13.5px/1.4 Geist,system-ui,sans-serif;
  transition:opacity .35s ease,transform .45s var(--ease)}
/* RTL chat: everyone else (players and the bot) on the right, my own messages (private chat) on the left */
.ozch-m.is-bot{background:var(--violet)}
.ozch-m.is-me{align-self:flex-end;border-top-right-radius:14px;border-top-left-radius:4px;background:#2a2a27}
.ozch-m.is-hidden,.ozch-day.is-hidden{opacity:0;transform:translateY(10px) scale(.98)}
.ozch-m.is-gone,.ozch-day.is-gone{display:none}
.ozch-n{display:block;font:600 11.5px/1.2 Geist,system-ui,sans-serif;margin-bottom:3px}
.ozch-m.is-bot .ozch-n{color:#e2d4ff}
.ozch-he{display:block;white-space:pre-line}
.ozch-en{display:block;direction:ltr;text-align:left;margin-top:5px;padding-top:5px;border-top:1px solid rgba(244,244,240,.1);font:400 10.5px/1.35 'Geist Mono',ui-monospace,monospace;color:rgba(244,244,240,.55)}
.ozch-m.is-bot .ozch-en{color:rgba(244,244,240,.72);border-top-color:rgba(244,244,240,.2)}
.ozch-t{display:block;text-align:left;font:400 9.5px/1 Geist,system-ui,sans-serif;color:rgba(244,244,240,.4);margin-top:4px}
.ozch-m.is-bot .ozch-t{color:rgba(244,244,240,.6)}
/* voice note */
.ozch-voice{display:flex;align-items:center;gap:8px;direction:ltr;min-width:170px}
.ozch-voice i{flex:none;width:26px;height:26px;border-radius:50%;background:var(--lime);position:relative}
.ozch-voice i::after{content:"";position:absolute;left:10px;top:8px;border-left:8px solid var(--black);border-top:5px solid transparent;border-bottom:5px solid transparent}
.ozch-wave{flex:1;display:flex;align-items:center;gap:2px;height:22px}
.ozch-wave u{flex:1;background:rgba(244,244,240,.55);border-radius:2px;text-decoration:none}
.ozch-voice small{font:400 10px/1 'Geist Mono',monospace;color:var(--soft)}
/* teams image */
.ozch-teams{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:2px;direction:rtl}
.ozch-teams div{background:rgba(13,13,12,.55);border-radius:10px;padding:8px 9px}
.ozch-teams div:first-child{box-shadow:inset 0 2px 0 var(--lime)}
.ozch-teams div:last-child{box-shadow:inset 0 2px 0 var(--white)}
.ozch-teams b{display:block;font:600 11px/1.2 Geist,sans-serif;margin-bottom:5px}
.ozch-teams span{display:block;font:400 11.5px/1.5 Geist,sans-serif;color:rgba(244,244,240,.85)}
/* "the bot stays quiet" note */
.ozch-quiet{align-self:center;max-width:90%;direction:ltr;text-align:center;font:400 10.5px/1.4 'Geist Mono',ui-monospace,monospace;color:var(--lime);border:1px dashed rgba(192,255,2,.45);border-radius:99px;padding:6px 12px;transition:opacity .35s ease}
.ozch-quiet.is-hidden{opacity:0}
.ozch-quiet.is-gone{display:none}
/* typing */
.ozch-typing{align-self:flex-start;display:none;gap:4px;padding:11px 12px;border-radius:14px;border-top-right-radius:4px;background:var(--violet)}
.ozch-typing.is-on{display:flex}
.ozch-typing i{width:6px;height:6px;border-radius:50%;background:rgba(244,244,240,.8);animation:ozchDot 1s infinite}
.ozch-typing i:nth-child(2){animation-delay:.15s}.ozch-typing i:nth-child(3){animation-delay:.3s}
@keyframes ozchDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.ozch-foot{display:flex;align-items:center;gap:8px;padding:10px 12px 16px;background:#161615;direction:rtl}
.ozch-foot span{flex:1;height:34px;border-radius:99px;background:#232321;font:400 12px/34px Geist,sans-serif;color:var(--soft);padding-inline:14px}
.ozch-foot i{width:34px;height:34px;border-radius:50%;background:var(--lime)}

/* reduced motion: every scene as a static list */
.ozch-flat{display:none;padding:8px var(--pad) 40px;border-top:1px solid var(--line)}
@media (prefers-reduced-motion:reduce){.ozch{display:none}.ozch-flat{display:block}}
.ozch-flat li{padding:32px 0;border-bottom:1px solid var(--line)}
.ozch-flat h3{font-size:26px;letter-spacing:-.04em;line-height:1.05;margin:8px 0 10px}
.ozch-flat p{font-size:15px;line-height:1.55;color:var(--mute)}

/* phones: the phone sits in the upper part, the card docks at the bottom (card rules come from case-study.css) */
@media (max-width:759px){
  .ozch-hint,.ozch-clock{display:none}
  .ozch-phone{top:calc(var(--hh) + 10px);transform:translateX(-50%);border-radius:34px;padding:7px}
  .ozch-phone::before{top:12px;width:62px;height:18px;margin-left:-31px}
  .ozch-screen{border-radius:28px}
  .ozch-head{padding:34px 12px 9px}
  .ozch-m{font-size:12.5px}
}

/* back office screenshots, side by side */
.ozch-office{padding-block:clamp(90px,13vh,150px);border-top:1px solid var(--line)}
.ozch-office h2{font-size:clamp(34px,4vw,64px);letter-spacing:-.05em;line-height:.98;margin:18px 0 18px;max-width:900px}
.ozch-shots{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(20px,2.6vw,40px);margin-top:clamp(36px,5vh,56px);align-items:start}
.ozch-shots figure{margin:0}
.ozch-shots picture,.ozch-shots img{display:block;width:100%}
.ozch-shots img{border-radius:0 0 12px 12px;outline:1px solid rgba(244,244,240,.14)}
.ozch-chrome{display:flex;gap:6px;align-items:center;height:26px;padding:0 11px;background:#161615;border-radius:12px 12px 0 0;outline:1px solid rgba(244,244,240,.14)}
.ozch-chrome i{width:7px;height:7px;border-radius:50%;background:#3c3c3a}
.ozch-chrome i:first-child{background:var(--lime)}
.ozch-shots figcaption{margin-top:16px;font-size:15px;line-height:1.55;color:var(--mute)}
.ozch-shots figcaption .oz-slash{margin-bottom:6px}
@media (max-width:759px){.ozch-shots{grid-template-columns:1fr}}

/* Hebrew page: the chat is already in Hebrew, so the English translation lines go */
html[lang="he"] .ozch-en{display:none}
