/* Compact case studies, galleries and touch navigation. */
html{scroll-behavior:auto}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--acc);outline-offset:4px}
[hidden]{display:none!important}
.tab-ind{display:none}
.tab{transition:background .18s ease,color .18s ease}
.tab.active{background:var(--ink);box-shadow:0 3px 10px #0002}
.play .i-chat .fill{animation-iteration-count:2}
.rv{transform:none;transition:opacity .35s ease}
.rv.in{transform:none}
.nav-arrive>.label,.nav-arrive>h2{animation:arrive .24s ease-out}
@keyframes arrive{from{opacity:.65}to{opacity:1}}
.p-info{display:flex;flex-direction:column;padding:18px 16px;gap:0;min-width:0}
.p-num{display:flex;align-items:center;gap:12px;padding:0;font:500 10px/1.5 "Martian Mono",monospace;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.p-num b{font:500 22px/1 Unbounded,sans-serif;color:var(--acc);letter-spacing:-.05em}
.p-title{margin:22px 0 16px;padding:0}
.p-summary{margin:0 0 20px;font-size:18px;line-height:1.6;letter-spacing:-.025em;text-wrap:pretty}
.project-details{margin:0 0 22px;border-top:1px solid #12121212;border-bottom:1px solid #12121212}
.project-details summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:15px 0;font-size:13px;font-weight:500}
.project-details summary::-webkit-details-marker{display:none}
.project-details summary::after{content:"+";font:400 23px/1 system-ui;color:var(--acc)}
.project-details[open] summary::after{content:"−"}
.project-details .p-desc{padding:0;margin:0 0 18px;font-size:14px;line-height:1.7;text-wrap:pretty}
.case-features{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px}
.case-features li{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}
.case-features li::before{content:"↗";color:var(--acc);flex:none}
.stack-tags{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.stack-tags span{padding:5px 9px;border-radius:7px;background:var(--soft);font:400 10px/1.4 "Martian Mono",monospace}
.p-actions{margin-top:auto;align-self:stretch;padding:0}
.p-actions .btn{min-height:46px;font-size:12px;padding-left:16px;gap:8px}
.p-actions .bi{width:32px;height:32px}
.stage{min-height:420px}
.stage .ctrl{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f8f7f4f5;box-shadow:0 4px 16px #0001}
.slide.shots>*{filter:none}
.mod{cursor:pointer}
.mod-hit{position:absolute;inset:0;z-index:3;border-radius:inherit;width:100%;height:100%}
.mod-hit:focus-visible{outline-offset:3px}
.mod-shot .circ{pointer-events:none}
.mod .mod-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;opacity:.85}
.mod-more{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:11px;font-weight:500;opacity:.8}
.mod-more .ico{width:13px;height:13px}
.detail-dialog,.zoom-dialog{border:0;padding:0;color:var(--ink);max-height:calc(100dvh - 48px);overscroll-behavior:contain}
.detail-dialog{width:min(680px,calc(100% - 32px));max-width:680px;border-radius:28px;background:var(--card)}
.detail-dialog::backdrop,.zoom-dialog::backdrop{background:#111c}
.dialog-top{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:var(--card);position:sticky;top:0;z-index:2;border-bottom:1px solid #1212120c}
.dialog-top>span{font:400 10px "Martian Mono",monospace;color:var(--muted);text-transform:uppercase}
.dialog-close{display:grid;place-items:center;width:40px;height:40px;background:var(--soft);border-radius:50%;font-size:25px;line-height:1}
.detail-body{padding:0 24px 28px}
.detail-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;margin:18px 0 24px;background:#e7e5e0}
.detail-body h2{font:700 28px/1.15 Unbounded,sans-serif;letter-spacing:-.04em;margin:0 0 16px}
.detail-body p{font-size:15px;line-height:1.75;color:var(--muted);margin:0 0 18px}
.detail-body .vers{margin-bottom:24px}
.detail-body .btn{font-size:13px}
.zoom-dialog{width:100%;height:100%;max-width:100%;max-height:100%;margin:0;background:#111f;border-radius:0}
.zoom-dialog .dialog-close{position:fixed;z-index:2;right:18px;top:max(18px,env(safe-area-inset-top));background:#f8f7f4}
.zoom-image{width:100%;height:100%;padding:68px 16px max(28px,env(safe-area-inset-bottom));object-fit:contain}
body.modal-open{position:fixed;width:100%;overflow:hidden}
@media(max-width:1020px){
  .p-info{display:contents}
  .p-num{order:1;padding:14px 12px 0;font-size:9px}
  .p-title{order:2;margin:16px 0 12px;padding:0 12px}
  .p-summary{order:3;padding:0 12px;margin:0 0 20px}
  .stage{order:4;min-height:320px}
  .project-details{order:5;margin:4px 12px 18px}
  .p-actions{order:6;margin:0;padding:0 8px 8px}
}
@media(max-width:640px){
  .wrap{width:calc(100% - 28px)}
  .sec{padding-top:76px}
  .sec h2{font-size:clamp(27px,7.8vw,42px);line-height:1.12;margin:20px 0}
  .sec-sub{font-size:14px;line-height:1.65;margin-bottom:28px;text-wrap:pretty}
  .label{font-size:9px;padding:7px 11px;gap:8px}
  .nav{top:max(10px,env(safe-area-inset-top));padding:6px 6px 6px 15px}
  .nav .logo{font-size:12px}
  .nav .circ{width:38px;height:38px}
  .tabbar{width:calc(100% - 24px);padding:5px;gap:2px;bottom:calc(10px + var(--safe-b));background:#f8f7f4;border:1px solid #d9d7d1;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 4px 18px #14120e14}
  .tab{font-size:9px;padding:9px 0 8px;gap:4px}
  .tab .ico{width:20px;height:20px}
  .hero{min-height:620px}
  .proj{padding:10px;border-radius:25px;margin-bottom:18px}
  .p-num{padding:10px 9px 0;gap:9px;font-size:8px;letter-spacing:0}
  .p-num b{font-size:19px}
  .p-title{font-size:clamp(25px,7.6vw,33px);padding:0 9px;margin:16px 0 12px;line-height:1.12}
  .p-summary{font-size:14px;line-height:1.65;padding:0 9px;margin-bottom:18px}
  .stage{height:clamp(200px,59vw,260px);min-height:0;border-radius:18px;flex:none}
  .slide{padding:16px 16px 50px;gap:10px}
  .slide.cover img{object-fit:cover;mask-image:none;-webkit-mask-image:none}
  .slide.shots img,.slide.shots video{height:100%;width:auto;max-width:100%;object-fit:contain;border-radius:8px}
  .slide.shots.n2 img{max-width:46%}
  .ctrl{padding:4px;gap:6px;right:8px;bottom:8px}
  .ctrl .circ{width:30px;height:30px}
  .ctrl .count{font-size:9px;min-width:45px;text-align:center}
  .project-details{margin:2px 9px 14px}
  .project-details summary{font-size:12px;padding:14px 0}
  .project-details .p-desc{font-size:13px;line-height:1.75}
  .case-features li{font-size:12px}
  .p-actions{padding:0 4px 4px;gap:6px}
  .p-actions .btn{font-size:11px;min-height:43px;padding-left:12px;gap:6px}
  .p-actions .bi{width:29px;height:29px}
  .mods{gap:10px}
  .mod{padding:6px 6px 12px;border-radius:20px;gap:8px;min-width:0}
  .mod-shot{border-radius:14px}
  .mod-shot .circ{width:28px;height:28px;top:7px;right:7px}
  .mod-shot .circ .ico{width:15px;height:15px}
  .mod h3{font-size:clamp(12px,3.7vw,16px);overflow-wrap:anywhere}
  .mod .mod-body{padding:0 5px;gap:7px}
  .mod .mod-body p{display:-webkit-box;font-size:11px;line-height:1.5;-webkit-line-clamp:3;opacity:.85}
  .mod-more{font-size:10px;margin-top:2px}
  .vers{gap:4px}
  .vers span{font-size:8px;padding:3px 5px;border-radius:5px}
  .badge{font-size:8px;left:6px;bottom:6px;padding:3px 6px}
  .mod.wide{flex-direction:row;align-items:center;padding:6px;gap:12px}
  .mod.wide .mod-shot{width:42%;aspect-ratio:1}
  .mod.wide .mod-body{padding:8px 6px 8px 0;gap:7px}
  .mod.wide .k{display:none}
  .mod.wide h3{font-size:17px}
  .mod.wide .mod-body p{font-size:11px;-webkit-line-clamp:3}
  .mod.wide .vers{margin:0}
  footer{padding-top:28px;font-size:10px;gap:12px}
  footer .logo{font-size:10px;gap:6px}
  .detail-dialog{width:100%;max-width:100%;margin:auto 0 0;border-radius:25px 25px 0 0;max-height:calc(100dvh - 28px);padding-bottom:env(safe-area-inset-bottom)}
  .detail-body{padding:0 20px 28px}
  .detail-body h2{font-size:25px}
  .detail-body p{font-size:14px}
  .dialog-top{padding:10px 14px}
  .dialog-close{width:38px;height:38px}
}
@media(hover:none) and (pointer:coarse){
  .hero{height:var(--hero-height,100svh)}
  .glass,.nav.solid{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f8f7f4;box-shadow:0 4px 18px #14120e14}
  .rv,.rv.in{opacity:1;transform:none;transition:none}
  .hl svg{clip-path:none;transition:none}
  .float,.pop,.ch,.h-brand .g,.marquee-t,.tagline .dot,.i-spark .s1,.i-spark .s2{animation:none}
  .tab.play .ico,.tab.play .ico *{animation:none}
  .el{will-change:auto}
  .stage,.bot-stage{transform:none}
  .mod:active{transform:none}
  .mod,.mod-shot img{transition:none}
}
@media(prefers-reduced-motion:reduce){.nav-arrive>.label,.nav-arrive>h2{animation:none}}
/* The portfolio keeps its playful shapes and pill controls in these sections. */
.bots-shell{margin-top:34px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.bot-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid #1212120d;border-radius:32px;background:var(--card)}
.bot-card:nth-child(even){background:var(--card);color:var(--ink)}
.bot-card:nth-child(odd){background:#1b1b1b;color:#fff}
.bot-card-hit{position:absolute;inset:0;z-index:2;width:100%;height:100%;border-radius:inherit}
.bot-scene{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:24px;background:#e8e6e1}
.bot-scene>img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.bot-stamp{position:absolute;left:13px;top:13px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--card);color:var(--ink);font:400 10px/1 "Martian Mono",monospace}
.bot-card-copy{display:flex;flex-direction:column;flex:1;padding:20px 12px 12px;min-width:0}
.bot-card-kind{font:400 9px/1.6 "Martian Mono",monospace;text-transform:uppercase;letter-spacing:.05em;opacity:.6}
.bot-card h3{font:700 clamp(19px,1.7vw,25px)/1.2 Unbounded,sans-serif;letter-spacing:-.035em;margin:12px 0;overflow-wrap:anywhere}
.bot-card p{font-size:13px;line-height:1.65;margin:0 0 22px;opacity:.75}
.bot-card-action{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid #1212121c;font-size:12px;font-weight:500}
.bot-card:nth-child(odd) .bot-card-action{border-color:#ffffff28}
.bot-card-action .circ{width:37px;height:37px;background:var(--ink);color:#fff}
.bot-card:nth-child(odd) .circ{background:#fff;color:var(--ink)}
.bot-card-action .ico{width:18px;height:18px}
.bot-dialog{width:min(1040px,calc(100% - 40px));max-width:1040px;max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:30px;background:var(--card);color:var(--ink);overscroll-behavior:contain}
.bot-dialog::backdrop{background:#111c}
.bot-detail-layout{display:grid;grid-template-columns:1.12fr 1fr;min-width:0}
.bot-detail-gallery{position:relative;min-height:500px;min-width:0;background:#e5e3dd;overflow:hidden}
.bot-detail-track{position:absolute;inset:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.bot-detail-track::-webkit-scrollbar{display:none}
.bot-detail-shot{flex:0 0 100%;min-width:0;scroll-snap-align:start;display:grid;place-items:center;padding:26px 24px 84px}
.bot-detail-shot img{width:auto;height:auto;max-width:100%;max-height:390px;object-fit:contain;border-radius:12px;box-shadow:0 10px 24px #12121212}
.bot-detail-gallery .ctrl{right:50%;bottom:18px;transform:translateX(50%);background:var(--card);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 4px 16px #0001}
.bot-detail-gallery .ctrl .circ{width:38px;height:38px}
.bot-detail-gallery .count{font-size:10px;min-width:46px;text-align:center}
.bot-detail-gallery.single .ctrl{display:none}
.bot-detail-gallery.single .bot-detail-shot{padding-bottom:26px}
.bot-detail-copy{padding:36px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.bot-detail-copy h2{font:700 clamp(23px,2.6vw,34px)/1.16 Unbounded,sans-serif;letter-spacing:-.035em;margin:0 0 20px;overflow-wrap:anywhere}
.bot-detail-copy p{font-size:14px;line-height:1.8;margin:0;color:var(--muted)}
.bot-detail-copy .stack-tags{margin:24px 0 0}
.contact{display:block;margin-top:100px;padding:60px 18px 44px;text-align:center;background:none;border-radius:0;color:var(--ink);overflow:visible;isolation:isolate}
.invite-copy{max-width:800px;margin:0 auto}
.contact .label{color:var(--ink);background:var(--card);border-color:#12121212}
.contact h2{font:800 clamp(40px,5.2vw,70px)/1.05 Unbounded,sans-serif;letter-spacing:-.04em;margin:30px 0 28px;position:relative;z-index:1}
.contact h2 .x{white-space:nowrap}
.contact .hl{color:var(--acc)}
.contact .hl svg{fill:var(--acc);clip-path:none}
.contact p{font-size:15px;line-height:1.8;color:var(--muted);margin:0 auto 26px;max-width:440px;text-wrap:pretty}
.invite-links{display:flex;flex-direction:column;align-items:center;gap:22px}
.invite-primary{min-height:60px;padding:7px 8px 7px 24px;gap:30px;font-size:15px}
.invite-primary .bi{background:var(--acc)!important;color:#fff!important;width:44px;height:44px}
.invite-secondary{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 25px}
.invite-secondary a{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);text-decoration:underline;text-decoration-color:#12121230;text-underline-offset:5px}
.invite-secondary .ico{width:13px;height:13px}
@media(hover:hover) and (pointer:fine){
  .bot-card:hover .bot-scene>img{transform:scale(1.035)}
  .bot-card:hover .bot-card-action .circ{background:var(--acc);color:#fff}
  .invite-secondary a:hover{color:var(--acc)}
}
@media(max-width:1020px){
  .bots-shell{gap:12px}
  .bot-card{padding:7px;border-radius:25px}
  .bot-scene{border-radius:19px}
  .bot-card-copy{padding:16px 8px 8px}
  .bot-card h3{font-size:19px}
  .bot-card p{font-size:12px}
  .bot-card-kind{font-size:8px}
  .bot-card-action{font-size:10px}
  .contact{padding:45px 4px 30px}
  .contact h2{font-size:clamp(38px,5.8vw,58px)}
  .bot-detail-copy{padding:26px}
}
@media(max-width:640px){
  .hero h1{font-size:clamp(32px,10.9vw,70px)}
  .bots-shell{display:flex;flex-direction:column;gap:12px;margin-top:26px}
  .bot-card{display:grid;grid-template-columns:38% minmax(0,1fr);align-items:stretch;gap:0;padding:8px;border-radius:24px;min-height:190px}
  .bot-scene{aspect-ratio:1;align-self:center;min-height:0;border-radius:17px}
  .bot-scene>img{object-fit:cover}
  .bot-stamp{width:25px;height:25px;left:8px;top:8px;font-size:8px}
  .bot-card-copy{padding:10px 9px 6px 14px}
  .bot-card-kind{font-size:7px;letter-spacing:.025em}
  .bot-card h3{font-size:clamp(15px,4.5vw,20px);margin:10px 0 8px;line-height:1.2}
  .bot-card p{font-size:11px;line-height:1.6;margin-bottom:12px}
  .bot-card-action{padding-top:9px;font-size:10px}
  .bot-card-action .circ{width:29px;height:29px}
  .bot-card-action .ico{width:15px;height:15px}
  .bot-dialog{width:100%;max-width:100%;margin:auto 0 0;border-radius:26px 26px 0 0;max-height:calc(100dvh - 24px);padding-bottom:env(safe-area-inset-bottom)}
  .bot-detail-layout{display:flex;flex-direction:column}
  .bot-detail-gallery{min-height:0;height:min(480px,58svh);margin:0 12px;border-radius:18px}
  .bot-detail-shot{padding:18px 18px 68px}
  .bot-detail-shot img{max-height:100%;min-height:0;border-radius:8px}
  .bot-detail-gallery .ctrl{bottom:12px}
  .bot-detail-gallery .ctrl .circ{width:34px;height:34px}
  .bot-detail-copy{padding:24px 24px 30px}
  .bot-detail-copy h2{font-size:26px;margin-bottom:15px}
  .bot-detail-copy p{font-size:13px}
  .bot-detail-copy .stack-tags{margin-top:18px}
  .contact{margin-top:70px;padding:24px 0 16px}
  .invite-copy{width:100%}
  .contact h2{font-size:clamp(35px,10.5vw,45px);margin:22px 0 24px;line-height:1.08}
  .contact p{font-size:13px;line-height:1.75;max-width:300px;margin:0 auto 26px}
  .invite-links{align-items:center;gap:23px}
  .invite-primary{width:min(300px,100% - 28px);justify-content:space-between;min-height:56px;font-size:13px;padding-left:22px}
  .invite-primary .bi{width:39px;height:39px}
  .invite-secondary{justify-content:center;gap:22px;padding:0}
  .invite-secondary a{font-size:11px}
}
@media(max-width:350px){
  .bot-card{grid-template-columns:34% minmax(0,1fr)}
  .bot-card-copy{padding-left:11px}
  .bot-card h3{font-size:15px}
  .bot-card p{font-size:10px}
}
@keyframes hero-copy-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(hover:none) and (pointer:coarse){
  .bot-scene>img{transition:none}
  .hero .pop{animation:enter .9s var(--spring) both;animation-delay:var(--delay,0s)}
  .hero .ch{animation:rise .85s var(--spring) both;animation-delay:calc(var(--i) * 45ms + var(--d,0ms))}
  .hero .tagline{animation:hero-copy-in .6s ease-out .2s both}
  .hero .lead{animation:hero-copy-in .65s ease-out .5s both}
  .hero .hero-btns{animation:hero-copy-in .65s ease-out .7s both}
}
@media(prefers-reduced-motion:reduce){
  .bot-scene>img{transition:none}
  .hero .pop,.hero .ch,.hero .tagline,.hero .lead,.hero .hero-btns{animation:none}
}
/* Scroll choreography: fast labels, drawn accents, then the card and its details. */
.reveal-enabled .reveal-on-scroll{--reveal-y:18px;--reveal-scale:1;--reveal-duration:.7s;--reveal-fade:.45s;opacity:0;translate:0 var(--reveal-y);scale:var(--reveal-scale);transition:none}
.reveal-enabled [data-reveal=label]{--reveal-y:8px;--reveal-scale:.94;--reveal-duration:.5s}
.reveal-enabled [data-reveal=heading]{--reveal-y:27px;--reveal-duration:.85s;--reveal-delay:80ms}
.reveal-enabled [data-reveal=copy]{--reveal-y:14px;--reveal-duration:.65s;--reveal-delay:150ms}
.reveal-enabled [data-reveal=stat]{--reveal-y:22px;--reveal-scale:.975;--reveal-duration:.72s}
.reveal-enabled [data-reveal=case]{--reveal-y:30px;--reveal-duration:.88s}
.reveal-enabled [data-reveal=card]{--reveal-y:26px;--reveal-scale:.975;--reveal-duration:.76s}
.reveal-enabled [data-reveal=bot]{--reveal-y:25px;--reveal-scale:.985;--reveal-duration:.8s}
.reveal-enabled [data-reveal=cta]{--reveal-y:16px;--reveal-scale:.975;--reveal-duration:.65s;--reveal-delay:220ms}
.reveal-enabled .reveal-on-scroll.revealed{opacity:1;translate:0 0;scale:1;transition:opacity var(--reveal-fade) ease,translate var(--reveal-duration) cubic-bezier(.16,1,.3,1),scale var(--reveal-duration) cubic-bezier(.16,1,.3,1),transform .25s ease;transition-delay:var(--reveal-delay,0ms)}
.reveal-enabled .reveal-fast{--reveal-y:12px;--reveal-scale:.995;--reveal-duration:.42s;--reveal-fade:.3s}
.reveal-enabled [data-reveal=heading] .hl svg{clip-path:none;transform:scaleX(0);transform-origin:left center;transition:none}
.reveal-enabled [data-reveal=heading].revealed .hl svg{transform:scaleX(1);transition:transform .65s cubic-bezier(.22,1,.36,1) .28s}
.reveal-enabled [data-reveal=stat]>b,.reveal-enabled [data-reveal=stat]>span:last-child{opacity:0;translate:0 9px;transition:none}
.reveal-enabled [data-reveal=stat].revealed>b{opacity:1;translate:0 0;transition:opacity .4s ease .12s,translate .6s cubic-bezier(.16,1,.3,1) .12s}
.reveal-enabled [data-reveal=stat].revealed>span:last-child{opacity:1;translate:0 0;transition:opacity .4s ease .22s,translate .6s cubic-bezier(.16,1,.3,1) .22s}
.reveal-enabled [data-reveal=case] .p-info>*{opacity:0;translate:0 10px;transition:none}
.reveal-enabled [data-reveal=case].revealed .p-info>*{opacity:1;translate:0 0;transition:opacity .45s ease,translate .65s cubic-bezier(.16,1,.3,1);transition-delay:var(--case-delay,90ms)}
.reveal-enabled [data-reveal=case] .p-title{--case-delay:150ms}
.reveal-enabled [data-reveal=case] .p-summary{--case-delay:220ms}
.reveal-enabled [data-reveal=case] .project-details{--case-delay:280ms}
.reveal-enabled [data-reveal=case] .p-actions{--case-delay:330ms}
.reveal-enabled [data-reveal=case] .slide.cover img,.reveal-enabled [data-reveal=card] .mod-shot img,.reveal-enabled [data-reveal=bot] .bot-scene>img{scale:1.055;transition:none}
.slide.cover{overflow:hidden}
.reveal-enabled [data-reveal=case].revealed .slide.cover img,.reveal-enabled [data-reveal=card].revealed .mod-shot img,.reveal-enabled [data-reveal=bot].revealed .bot-scene>img{scale:1;transition:scale 1s cubic-bezier(.16,1,.3,1),transform .5s ease}
.reveal-enabled [data-reveal=bot] .bot-card-copy{opacity:0;translate:0 9px;transition:none}
.reveal-enabled [data-reveal=bot].revealed .bot-card-copy{opacity:1;translate:0 0;transition:opacity .45s ease .14s,translate .65s cubic-bezier(.16,1,.3,1) .14s}
.reveal-enabled .reveal-fast.revealed .p-info>*,.reveal-enabled .reveal-fast.revealed .bot-card-copy{transition-delay:40ms}
@media(prefers-reduced-motion:reduce){
  .reveal-enabled .reveal-on-scroll,.reveal-enabled .reveal-on-scroll.revealed{opacity:1;translate:none;scale:1;transition:none}
}

.signature-mark{display:inline-block;flex:none;line-height:0}
.signature-mark>svg{width:100%;height:100%;overflow:visible}
.signature-header{width:30px;height:30px}
.signature-hero{width:100%;aspect-ratio:1}
.k-fragment{transform-box:fill-box;transform-origin:center;animation:k-assemble .75s cubic-bezier(.16,1,.3,1) both;animation-delay:var(--k-delay)}
.k-finish{opacity:0;animation:k-finish .3s ease 1.05s forwards}
@keyframes k-assemble{from{opacity:0;transform:translate(var(--k-x),var(--k-y)) rotate(var(--k-r)) scale(.68)}to{opacity:1;transform:none}}
@keyframes k-finish{to{opacity:1}}
.hero .h-brand{width:100px;top:12%}
.signature-action .bi{transition:transform .25s cubic-bezier(.16,1,.3,1)}
.signature-action:active .bi{transform:scale(.85) rotate(-8deg)}
.case-small{font-size:9px;letter-spacing:.04em;line-height:1.6}
.case-screen{position:relative;padding:44px 18px 66px!important;background:#e2e0db}
.case-screen-label{position:absolute;top:16px;left:18px;color:var(--muted);font-size:9px;letter-spacing:.03em;background:transparent!important;border-radius:0!important}
.case-screen>img{width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:10px}
.case-room{background:#e5e8ec}
.case-monitor{background:#e7e5e0}
.case-stars{padding:30px!important;gap:24px!important;justify-content:space-between!important;background:#e8e3db}
.stars-proof{display:flex;flex-direction:column;gap:24px;min-width:0}
.stars-proof>.case-small{color:#80634b;max-width:230px}
.stars-proof>div{display:grid;gap:7px}
.stars-proof b{font:700 clamp(30px,3.3vw,46px)/1.1 Unbounded,sans-serif;letter-spacing:-.045em;white-space:nowrap;font-variant-numeric:tabular-nums}
.stars-proof>div>span{font-size:11px;color:var(--muted);max-width:170px;line-height:1.5}
.stars-products{font-size:10px;color:#8b694b}
.stars-device{height:100%;width:auto;max-width:43%!important;object-fit:contain;border-radius:16px;box-shadow:0 12px 24px #14120e16}
.reveal-enabled [data-project=minesync] .case-room img,.reveal-enabled [data-project=spawner] .case-monitor img{opacity:0;translate:0 12px}
.reveal-enabled [data-project=minesync].revealed .case-room img,.reveal-enabled [data-project=spawner].revealed .case-monitor img{opacity:1;translate:0 0;transition:opacity .4s ease .16s,translate .6s cubic-bezier(.16,1,.3,1) .16s}
.reveal-enabled [data-project=minesync].revealed .case-room img:last-child,.reveal-enabled [data-project=spawner].revealed .case-monitor img:last-child{transition-delay:.27s}
.reveal-enabled [data-project=stars] .stars-device{opacity:0;translate:0 12px;scale:.96}
.reveal-enabled [data-project=stars].revealed .stars-device{opacity:1;translate:0 0;scale:1;transition:opacity .5s ease .15s,translate .8s cubic-bezier(.16,1,.3,1) .15s,scale .8s cubic-bezier(.16,1,.3,1) .15s}
.reveal-enabled .reveal-fast.revealed .case-room img,.reveal-enabled .reveal-fast.revealed .case-monitor img,.reveal-enabled .reveal-fast.revealed .stars-device{transition-duration:.2s;transition-delay:0s}
@media(max-width:640px){
  .hero .h-brand{display:block;left:calc(50% - 24px);right:auto;top:12%;width:48px}
  .case-screen{padding:30px 10px 47px!important}
  .case-screen-label{top:10px;left:12px;font-size:7px}
  .case-stars{padding:14px!important;gap:12px!important}
  .stars-proof{gap:14px}
  .stars-proof>.case-small{font-size:7px;max-width:150px}
  .stars-proof b{font-size:clamp(20px,6.2vw,29px)}
  .stars-proof>div{gap:4px}
  .stars-proof>div>span{font-size:9px;max-width:140px}
  .stars-products{font-size:8px}
  .stars-device{border-radius:7px;max-width:36%!important;box-shadow:none}
}
@media(prefers-reduced-motion:reduce){
  .k-fragment{animation:none;opacity:0}
  .k-finish{animation:none;opacity:1}
}

footer{display:grid;grid-template-columns:1fr auto 1fr}
@media(hover:none) and (pointer:coarse) and (prefers-reduced-motion:no-preference){
  .marquee-t{animation:run 30s linear infinite;will-change:transform}
  .marquee.paused .marquee-t{animation-play-state:paused}
}
footer>a{justify-self:end}
.visit-counter{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;white-space:nowrap}
.visit-counter svg{width:28px;height:28px;padding:5px;flex:none;color:var(--acc);background:#ec5b000c;border:1px solid #ec5b0015;border-radius:9px}
.visit-counter b{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:640px){
  footer{grid-template-columns:1fr auto;row-gap:16px}
  footer>.logo{grid-column:1;grid-row:1}
  footer>a{grid-column:2;grid-row:1}
  .visit-counter{grid-column:1 / -1;grid-row:2;font-size:10px;justify-self:start}
  .visit-counter svg{width:25px;height:25px;padding:4px;border-radius:8px}
}

/* Счётчик посещений: светлая плашка с медной иконкой и крупным числом */
.visit-counter{gap:10px;padding:5px 16px 5px 5px;border-radius:999px;background:var(--card);border:1px solid rgba(0,0,0,.07);box-shadow:0 6px 18px -10px rgba(0,0,0,.25);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.visit-counter svg{width:32px;height:32px;padding:7px;border-radius:50%;border:0;color:#fff;background:linear-gradient(150deg,var(--acc-2),var(--acc))}
.visit-counter svg circle[fill="#fff"]{fill:var(--acc)}
.visit-counter span{display:inline-flex;align-items:baseline;gap:8px}
.visit-counter b{font:700 15px/1 Unbounded,sans-serif;letter-spacing:-.02em;text-transform:none;color:var(--ink)}
@media (max-width:640px){
  .visit-counter{padding:4px 14px 4px 4px;font-size:10px}
  .visit-counter svg{width:28px;height:28px;padding:6px;border-radius:50%}
  .visit-counter b{font-size:14px}
}

/* Иконка счётчика: медный робот в круглой плашке */
.visit-counter img{width:36px;height:36px;flex:none;border-radius:50%;background:#edece8;border:1px solid rgba(0,0,0,.06);object-fit:cover}
@media (max-width:640px){.visit-counter img{width:30px;height:30px}}

/* Подвал на телефоне: счётчик по центру сверху, ниже логотип и «наверх» в одну строку */
@media (max-width:640px){
  footer{display:grid!important;grid-template-columns:1fr auto;align-items:center;row-gap:18px;column-gap:12px}
  footer .visit-counter{grid-column:1 / -1;grid-row:1;justify-self:center}
  footer .logo{grid-column:1;grid-row:2}
  footer > a[href="#top"]{grid-column:2;grid-row:2;justify-self:end}
}

/* ---------- Анимации при прокрутке (motion.js) ---------- */
.motion .m{opacity:0;transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1);transition-delay:var(--m-delay,0ms);will-change:transform,opacity}
.motion .m-up{transform:translateY(34px)}
.motion .m-pop{transform:translateY(14px) scale(.9)}
.motion .m-side{transform:translateX(48px)}
.motion .m-title{transform:translateY(28px)}
.motion .m-card{transform:translateY(48px) scale(.97)}
.motion .m-card .stage img,.motion .m-card .stage video{transform:scale(1.08);transition:transform 1.2s cubic-bezier(.2,.8,.2,1) .15s}
.motion .m.m-in{opacity:1;transform:none}
.motion .m-card.m-in .stage img,.motion .m-card.m-in .stage video{transform:none}
.motion .m.m-in{will-change:auto}
@media (max-width:640px){
  .motion .m{transition-duration:.55s,.65s}
  .motion .m-up{transform:translateY(24px)}
  .motion .m-side{transform:translateX(32px)}
  .motion .m-card{transform:translateY(32px) scale(.98)}
}

/* ---------- Зацикленная сцена в блоке «Связь» ---------- */
#contact{position:relative;isolation:isolate}
#contact .invite-copy{position:relative;z-index:1}
.invite-deco{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.invite-deco img{position:absolute;height:auto;animation-play-state:paused}
.invite-deco .d-k{left:8%;top:22%;width:clamp(70px,9vw,130px);animation:d-float 6s ease-in-out infinite}
.invite-deco .d-island{right:9%;top:30%;width:clamp(70px,8vw,120px);animation:d-float 7.5s ease-in-out -2s infinite}
.invite-deco .d-plane{left:0;top:12%;width:clamp(56px,6vw,90px);animation:d-fly 14s linear infinite}
.d-spark{position:absolute;width:12px;height:12px;animation:d-twinkle 2.8s ease-in-out infinite;animation-play-state:paused}
.d-spark::before,.d-spark::after{content:"";position:absolute;background:var(--acc);border-radius:2px}
.d-spark::before{left:5px;top:0;width:2px;height:12px}
.d-spark::after{top:5px;left:0;height:2px;width:12px}
.d-spark.s1{left:22%;top:62%}.d-spark.s2{right:24%;top:18%;animation-delay:-.9s}
.d-spark.s3{left:30%;top:16%;animation-delay:-1.6s}.d-spark.s4{right:16%;top:70%;animation-delay:-2.2s}
.deco-on .invite-deco img,.deco-on .d-spark{animation-play-state:running}
@keyframes d-float{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-16px) rotate(4deg)}}
@keyframes d-fly{0%{transform:translate(-15vw,30px) rotate(-8deg)}50%{transform:translate(50vw,-10px) rotate(4deg)}100%{transform:translate(110vw,20px) rotate(-6deg)}}
@keyframes d-twinkle{0%,100%{opacity:.2;transform:scale(.5) rotate(0)}50%{opacity:1;transform:scale(1) rotate(45deg)}}
@media (max-width:640px){
  .invite-deco .d-k{left:4%;top:7%;width:58px}
  .invite-deco .d-island{right:4%;top:9%;width:56px}
  .invite-deco .d-plane{top:3%;width:52px}
  .d-spark.s1{left:8%;top:56%}.d-spark.s4{right:7%;top:60%}
}
@media (prefers-reduced-motion:reduce){.invite-deco img,.d-spark{animation:none}}

/* Искры в «Связи»: больше и по всей ширине (картинки убраны) */
.d-spark.s1{left:14%;top:30%}.d-spark.s2{right:15%;top:24%}
.d-spark.s5{left:26%;top:74%;animation-delay:-.4s;transform:scale(.7)}.d-spark.s6{right:28%;top:78%;animation-delay:-1.3s}
.d-spark.s7{left:8%;top:52%;animation-delay:-2s}.d-spark.s8{right:8%;top:46%;animation-delay:-.7s}
@media (max-width:640px){.d-spark.s3,.d-spark.s6{display:none}.d-spark.s7{left:4%;top:40%}.d-spark.s8{right:4%;top:36%}}

/* Плашка над заголовком: медная K и сменяющиеся фразы */
.tagline.ticker{gap:10px;padding:6px 16px 6px 6px;font-size:11px}
.tk-mark{width:26px;height:26px;padding:5px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08);flex:none}
.tk-window{display:block;height:16px;overflow:hidden;line-height:16px}
.tk-list{display:flex;flex-direction:column;animation:tk-roll 10s cubic-bezier(.7,0,.2,1) infinite}
.tk-list span{display:flex;align-items:center;gap:8px;height:16px;white-space:nowrap}
.tk-list .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2fc76b;flex:none}
@keyframes tk-roll{0%,20%{transform:translateY(0)}25%,45%{transform:translateY(-16px)}50%,70%{transform:translateY(-32px)}75%,95%{transform:translateY(-48px)}100%{transform:translateY(-64px)}}
@media (prefers-reduced-motion:reduce){.tk-list{animation:none}}
@media (max-width:640px){.tagline.ticker{font-size:10px;padding:5px 14px 5px 5px}.tk-mark{width:24px;height:24px}}

/* Плашка над заголовком: статичная, без иконки */
.tagline .tg-sep{opacity:.35}
.tagline .tg-more{color:var(--muted)}
@media (max-width:380px){.tagline .tg-sep,.tagline .tg-more{display:none}}

/* Подчёркивание «твоей игры» рисуется маркером по кругу: провёл — подержал — стёр */
.hero .lead .hl svg{transition:none;animation:hl-draw 5.5s cubic-bezier(.65,0,.25,1) 1s infinite both}
@keyframes hl-draw{
  0%{clip-path:inset(0 100% 0 0)}
  22%{clip-path:inset(0 0 0 0)}
  70%{clip-path:inset(0 0 0 0)}
  88%,100%{clip-path:inset(0 0 0 100%)}
}
@media (prefers-reduced-motion:reduce){.hero .lead .hl svg{animation:none;clip-path:none}}

/* Рисунок от руки вокруг «твоей игры»: три жеста по очереди, цикл 12 с */
.motion .hero .lead .hl > svg:not(.scribble){display:none}
.hl .scribble{position:absolute;left:-8%;top:-34%;width:116%;height:168%;overflow:visible;clip-path:none!important;animation:none!important;pointer-events:none}
.hl .scribble .sc{fill:none;stroke:var(--acc);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;
  stroke-dasharray:100 100;stroke-dashoffset:100;animation:sc-draw 12s cubic-bezier(.6,0,.3,1) infinite}
.hl .scribble .sc2{animation-delay:4s}
.hl .scribble .sc3{animation-delay:8s}
@keyframes sc-draw{0%{stroke-dashoffset:100}9%{stroke-dashoffset:0}25%{stroke-dashoffset:0}33%,100%{stroke-dashoffset:-100}}
@media (max-width:640px){.hl .scribble .sc{stroke-width:2.2}}

/* Первый экран на телефоне: K под шапкой по центру, текст и кнопки ниже середины */
@media (max-width:640px){
  .hero .h-brand{display:none!important}
  .hero-c{justify-content:flex-end!important;padding-top:80px!important;padding-bottom:calc(190px + env(safe-area-inset-bottom,0px))!important}
  .hero .hero-btns{margin-top:10px}
}
@media (max-width:640px) and (max-height:700px){
  .hero .h-brand{display:none!important}
  .hero-c{padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))!important}
}

/* K на телефоне — в потоке текста, всегда над заголовком */
.hero-k-m{display:none}
@media (max-width:640px){
  .hero-k-m{display:block;width:58px;height:auto;margin:0 auto 4px;animation:k-bob 5s ease-in-out infinite}
  .hero h1{margin-top:6px!important}
}
@media (max-width:640px) and (max-height:700px){.hero-k-m{width:44px}}
@keyframes k-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-6px) rotate(3deg)}}
@media (prefers-reduced-motion:reduce){.hero-k-m{animation:none}}

/* Телефон и планшет: иллюстрации первого экрана не сдвигаются от свайпов и курсора, только своё покачивание */
@media (max-width:1020px){.hero .el{transform:none!important}}

/* Самолётик Telegram: сгиб крыла цвета фона кружка */
.btn.dark .bi .i-plane,.circ.light .i-plane{--plane-fold:#fff}
.circ:not(.light) .i-plane,.btn:not(.dark) .bi .i-plane,.c-btns .btn:first-child .bi .i-plane,.tab .i-plane{--plane-fold:var(--ink)}
.tab.active .i-plane{--plane-fold:var(--ink)}
.tab:not(.active) .i-plane{--plane-fold:#f8f7f4}


/* На телефоне космонавт сверху слева, сундук снизу справа. */
@media(max-width:640px){
  .hero .h-astro{left:4%;top:10%;right:auto;bottom:auto;width:112px}
  .hero .h-chest{left:auto;top:auto;right:2%;bottom:calc(70px + var(--safe-b));width:120px}
}
@media(max-width:640px) and (max-height:700px){.hero .h-astro{width:96px}}

/* Освобождаем светлое поле под обычный текст первого экрана. */
@media(max-width:640px){
  .hero .b1{left:-38%;top:3%}
}
