/* Home screen: hero, showreel, stories row (real portfolio + 2 shortcuts), offer, tiles, portrait + stats. */
.stories{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none;margin-inline:-16px;padding-inline:16px}
.stories::-webkit-scrollbar{display:none}
.st{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;width:70px;padding:0}
.st .ring{position:relative;width:66px;height:66px;border-radius:50%;padding:3px;display:block}
.st .ring::before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(var(--orange),var(--yellow),#fff3c4,var(--orange));animation:spin 3s linear infinite}
.st .ring > span{position:relative;display:block;width:100%;height:100%;border-radius:50%;border:3px solid var(--bg);overflow:hidden;background:var(--panel2)}
.st .ring img{width:100%;height:100%;display:block;object-fit:cover}
.st .ring .ic{width:100%;height:100%;display:grid;place-items:center;background:var(--works-placeholder-bg)}
.st .ring .ic svg{width:20px;height:20px;fill:var(--yellow)}
.st small{font-size:11.5px;font-weight:600;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes spin{to{transform:rotate(1turn)}}

/* showreel: a real muted loop in the HUD / REC frame (Главная, above the fold); tap opens it in the player */
.stage{position:relative;border-radius:26px;overflow:hidden;border:1px solid var(--line);background:radial-gradient(120% 90% at 50% 110%,#2a1606 0%,var(--bg) 60%);margin-top:18px}
.reel{display:block;width:100%;padding:0;aspect-ratio:4/5;max-height:44svh;color:var(--fg);text-align:left;cursor:pointer}
.reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.reel::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(0,0,0,.6));pointer-events:none}
.hud{position:absolute;inset:0;z-index:1;pointer-events:none;font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;color:var(--fg)}
.hud .c{position:absolute;width:22px;height:22px;border:2px solid var(--yellow)}
.hud .tl{top:12px;left:12px;border-right:0;border-bottom:0}.hud .tr{top:12px;right:12px;border-left:0;border-bottom:0}
.hud .bl{bottom:12px;left:12px;border-right:0;border-top:0}.hud .br{bottom:12px;right:12px;border-left:0;border-top:0}
.hud .row{position:absolute;left:44px;right:44px;display:flex;justify-content:space-between;gap:8px;white-space:nowrap}
.hud .row.t{top:17px}
.recdot{display:inline-flex;align-items:center;gap:6px;text-shadow:0 1px 6px rgba(0,0,0,.7)}
.recdot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--orange);animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:.15}}
.chipY{color:var(--yellow);text-shadow:0 1px 6px rgba(0,0,0,.7)}
.reelplay{position:absolute;z-index:1;right:44px;bottom:14px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.55);pointer-events:none}
.reelplay svg{width:16px;height:16px;fill:var(--yellow);margin-left:2px}

.hello{margin-top:18px}
.hello h1{font-size:clamp(28px,8.6vw,40px);font-weight:900;letter-spacing:-.02em}
.hello p{color:var(--muted);margin-top:10px;font-size:16px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{position:relative;text-align:left;border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:16px;min-height:132px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;overflow:hidden;transition:transform .15s,border-color .2s}
.tile:active{transform:scale(.97)}
.tile:hover{border-color:var(--orange)}
.tile .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--panel2)}
.tile .ic svg{width:22px;height:22px;stroke:var(--yellow);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tile b{font-size:15px;line-height:1.25;display:block}
.tile small{color:var(--muted);font-size:12.5px;line-height:1.35;display:block;margin-top:3px}
.tile::after{content:"";position:absolute;right:-30px;bottom:-30px;width:90px;height:90px;border-radius:50%;background:var(--hot);opacity:.1;filter:blur(4px)}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stats div{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:12px}
.stats b{display:block;font-family:var(--f-display);font-size:clamp(17px,5vw,22px);font-weight:800}
.stats span{color:var(--muted);font-size:12px;line-height:1.3;display:block;margin-top:2px}

/* ---------- home v2: offer first ---------- */
.hello{margin-top:6px}
.hello h1{font-size:clamp(22px,6.6vw,32px);line-height:1.12}
.hello h1 .hot{white-space:nowrap}
.hello p{margin-top:8px;font-size:15px}
.cta2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.cta2 .btn{padding:14px 8px;font-size:14px}
.offer{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.offer-item{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:12px 8px;min-height:64px;display:flex;flex-direction:column;justify-content:center;gap:2px;text-align:center;transition:transform .15s,border-color .2s}
.offer-item:hover{border-color:var(--orange)}
.offer-item:active{transform:scale(.97)}
.offer-item b{font-family:var(--f-display);font-size:13px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.offer-item small{color:var(--yellow);font-family:var(--f-mono);font-size:11px}

/* portrait + name above the numbers */
.me{display:flex;align-items:center;gap:14px;margin-bottom:10px;padding:12px;border:1px solid var(--line);background:var(--panel);border-radius:20px}
.me img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid var(--orange);flex:none}
.me b{display:block;font-family:var(--f-display);font-size:20px;font-weight:900;line-height:1.2}
.me .mono{color:var(--yellow)}
