/* zawarali.com — project pages (shared) */
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url(../../fonts/inter-tight-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url(../../fonts/inter-tight-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:600;font-display:swap;src:url(../../fonts/inter-tight-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:700;font-display:swap;src:url(../../fonts/inter-tight-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300;font-display:swap;src:url(../../fonts/fraunces-latin-300-italic.woff2) format('woff2')}
:root{--bg:#FAFAF8;--ink:#111111;--mute:#6A6A6E;--line:rgba(0,0,0,.08);--line2:rgba(0,0,0,.16);--soft:#EFEFEC;--card:#F1F1EE;--acc:#FF4D2E;--acc-t:#C9361A;--f:"Inter Tight",ui-sans-serif,system-ui,sans-serif;--s:"Fraunces",Georgia,serif;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0D0D0E;--ink:#F2F2EF;--mute:#9A9AA1;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.18);--soft:#19191B;--card:#18181A;--acc-t:#FF6A4D;color-scheme:dark}}
:root[data-theme="dark"],body[data-mode="dark"]{--bg:#0D0D0E;--ink:#F2F2EF;--mute:#9A9AA1;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.18);--soft:#19191B;--card:#18181A;--acc-t:#FF6A4D;color-scheme:dark}
body[data-mode="light"]{--bg:#FAFAF8;--ink:#111111;--mute:#6A6A6E;--line:rgba(0,0,0,.08);--line2:rgba(0,0,0,.16);--soft:#EFEFEC;--card:#F1F1EE;--acc-t:#C9361A;color-scheme:light}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 var(--f);-webkit-font-smoothing:antialiased;transition:background-color .4s,color .4s}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.wrap{width:min(1280px,100% - 48px);margin-inline:auto}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lab{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.lab i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--acc);margin-right:8px;vertical-align:1px}

/* top bar */
.pbar{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.pbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;height:64px}
.back{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 18px 0 14px;border-radius:99px;background:var(--ink);color:var(--bg);font-weight:600;font-size:15px;transition:transform .2s;white-space:nowrap}
.back:hover{transform:translateX(-3px)}
.back svg{width:18px;height:18px}
.pt{flex:1;min-width:0;text-align:center;font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt span{color:var(--mute);font-weight:500}
.ctl{display:flex;gap:8px}
.ib{width:42px;height:42px;border-radius:50%;border:1px solid var(--line2);background:var(--bg);display:grid;place-items:center;padding:0;transition:border-color .2s,background-color .2s}
.ib:hover{border-color:var(--ink)}
.ib svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ib .m{display:none} body.is-dark .ib .s{display:none} body.is-dark .ib .m{display:inline}
.prog{position:fixed;left:0;top:0;height:3px;width:100%;background:var(--acc);transform-origin:0 50%;transform:scaleX(0);z-index:31}

/* head */
.phead{padding:64px 0 40px;display:grid;grid-template-columns:1.3fr .7fr;gap:40px;align-items:end}
.phead h1{margin:14px 0 0;font-size:clamp(44px,7vw,104px);line-height:.95;letter-spacing:-.05em;font-weight:600}
.phead h1 .dot{color:var(--acc)}
.phead p{margin:0;color:var(--mute);font-size:18px;max-width:460px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.chip{font-size:13px;font-weight:600;padding:6px 12px;border-radius:99px;border:1px solid var(--line2)}
.chip.rd{border-color:var(--acc-t);color:var(--acc-t)}
.rise{animation:rise .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{opacity:.01;transform:translateY(30px)}}
.rv{opacity:0;transform:translateY(40px);transition:opacity .8s,transform .8s cubic-bezier(.2,.8,.2,1)}
.rv.in{opacity:1;transform:none}

/* browser prototype */
.browser{margin:0 auto 40px;max-width:1240px;border-radius:16px;overflow:hidden;overflow:clip;border:1px solid var(--line2);background:#fff;box-shadow:0 40px 80px -40px rgba(0,0,0,.45)}
.bbar{position:sticky;top:64px;z-index:5;display:flex;align-items:center;gap:8px;height:44px;padding:0 16px;background:#F3F3F1;border-bottom:1px solid rgba(0,0,0,.08)}
.bbar i{width:11px;height:11px;border-radius:50%}
.bbar i:nth-child(1){background:#FF5F56}.bbar i:nth-child(2){background:#FFBD2E}.bbar i:nth-child(3){background:#27C93F}
.bbar .url{margin:0 auto;display:flex;align-items:center;gap:8px;font-size:13px;color:#555;background:#fff;border:1px solid rgba(0,0,0,.08);padding:5px 16px;border-radius:99px;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bbar .url svg{width:12px;height:12px;fill:none;stroke:#2a9d55;stroke-width:2.4}
.bbar .sp{width:51px}
.shot img{width:100%;height:auto;background:#f2f2f0}
.docpage{margin:0 auto 40px;max-width:1100px;border-radius:14px;overflow:hidden;border:1px solid var(--line);box-shadow:0 30px 70px -40px rgba(0,0,0,.4)}
.auto{position:fixed;right:22px;bottom:22px;z-index:20;display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px;border-radius:99px;border:0;background:var(--ink);color:var(--bg);font-weight:600;font-size:15px;box-shadow:0 14px 30px -12px rgba(0,0,0,.5);transition:transform .2s}
.auto:hover{transform:translateY(-2px)}
.auto i{width:8px;height:8px;border-radius:50%;background:var(--acc)}
.auto[aria-pressed="true"] i{animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.3}}

/* screen flow */
.flow{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start;margin-bottom:60px}
.flow>*{min-width:0}
.device{background:#151517;border-radius:20px;padding:12px;box-shadow:0 40px 80px -40px rgba(0,0,0,.55)}
.device .scr{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:16/9;background:#000;cursor:pointer}
.device .scr img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s}
.device .scr img.off{opacity:0}
.tap{position:absolute;right:14px;bottom:14px;font-size:12.5px;font-weight:600;color:#fff;background:rgba(0,0,0,.55);padding:6px 12px;border-radius:99px;backdrop-filter:blur(6px);pointer-events:none}
.fctl{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.fctl b{font-size:18px;letter-spacing:-.01em}
.fctl span{color:var(--mute);font-weight:500;font-size:15px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:4px;max-height:640px;overflow:auto;counter-reset:s}
.steps button{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:9px 12px;border-radius:10px;border:0;background:none;font-size:15px;font-weight:500;color:var(--mute)}
.steps button::before{counter-increment:s;content:counter(s,decimal-leading-zero);font-size:12px;font-weight:700;color:var(--mute);width:22px}
.steps button:hover{background:var(--soft);color:var(--ink)}
.steps button[aria-current="true"]{background:var(--ink);color:var(--bg)}
.steps button[aria-current="true"]::before{color:var(--acc)}
.fbar{height:3px;background:var(--line2);border-radius:2px;margin-top:14px;overflow:hidden}
.fbar i{display:block;height:100%;background:var(--acc);transform-origin:0 50%;transition:transform .4s}

/* live app */
.app{margin-bottom:60px}
.app .browser{margin-bottom:16px}
.app iframe{display:block;width:100%;height:min(820px,80vh);border:0;background:#fff}
.app-ft{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;color:var(--mute);font-size:15px}
.cta{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 20px;border-radius:99px;background:var(--ink);color:var(--bg);font-weight:600;font-size:15px;border:0;transition:transform .2s}
.cta:hover{transform:translateY(-2px)}
.cta i{width:7px;height:7px;border-radius:50%;background:var(--acc)}

/* game */
.stage{position:relative;padding:40px 0 30px}
.showcase{position:relative;display:grid;grid-template-columns:1fr auto;align-items:end;gap:0}
.laptop{background:#151517;border-radius:18px;padding:12px;box-shadow:0 40px 80px -40px rgba(0,0,0,.55)}
.laptop img{border-radius:8px;width:100%}
.phone{width:clamp(130px,17vw,240px);margin-left:-8%;margin-bottom:-20px;background:#151517;border-radius:30px;padding:9px;box-shadow:0 30px 60px -25px rgba(0,0,0,.6);position:relative;z-index:2}
.phone img{border-radius:22px;width:100%;aspect-ratio:9/19;object-fit:cover}
.float{animation:float 6s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-10px)}}
.sh2{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:80px 0 24px}
.sh2 h2{margin:8px 0 0;font-size:clamp(30px,3.6vw,52px);letter-spacing:-.04em;line-height:1;font-weight:600}
.sh2 p{margin:0;color:var(--mute)}
.g2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tile{display:block;padding:0;border:0;background:none;width:100%;border-radius:14px;overflow:hidden;cursor:zoom-in;background:var(--soft)}
.tile img{width:100%;height:auto;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.tile:hover img{transform:scale(1.03)}
.mobs{display:flex;gap:22px;overflow-x:auto;padding:10px 4px 20px;scroll-snap-type:x mandatory}
.mobs .phone{margin:0;flex:none;width:clamp(170px,22vw,250px);scroll-snap-align:start;cursor:zoom-in;border:0}
.mobs .phone img{aspect-ratio:auto;height:auto}

/* brand */
.reveal{position:relative;border-radius:18px;overflow:hidden;background:var(--soft);clip-path:circle(0% at 50% 50%);animation:iris 1.4s cubic-bezier(.7,0,.2,1) .2s forwards}
@keyframes iris{to{clip-path:circle(75% at 50% 50%)}}
.reveal img{width:100%;animation:settle 1.8s cubic-bezier(.2,.8,.2,1) .2s both}
@keyframes settle{from{transform:scale(1.18)}}
.pal{display:flex;flex-wrap:wrap;gap:12px;margin:34px 0 10px}
.sw{display:grid;gap:8px;width:120px;padding:0;border:0;background:none;text-align:left}
.sw i{display:block;height:84px;border-radius:14px;border:1px solid var(--line);transition:transform .25s}
.sw:hover i{transform:translateY(-4px)}
.sw b{font-size:13px;font-weight:600;font-family:ui-monospace,Menlo,monospace}
.sw span{font-size:12px;color:var(--mute);margin-top:-6px}
.pages{display:grid;gap:26px;margin-bottom:60px}
.pages .tile{border-radius:16px}
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);opacity:0;background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:99px;font-weight:600;font-size:14px;transition:opacity .3s,transform .3s;z-index:60;pointer-events:none}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* ebook 3D */
.book-stage{display:grid;place-items:center;padding:30px 0 60px;perspective:1600px}
.book{position:relative;width:fit-content;max-width:100%;transform-style:preserve-3d;transform:rotateX(var(--rx,6deg)) rotateY(var(--ry,-10deg));transition:transform .5s cubic-bezier(.2,.8,.2,1);animation:bookIn 1.4s cubic-bezier(.2,.8,.2,1) both}
@keyframes bookIn{from{transform:rotateX(18deg) rotateY(-40deg) translateY(60px);opacity:0}}
.book img{max-height:74vh;max-height:74svh;width:auto;border-radius:12px;box-shadow:30px 40px 60px -30px rgba(0,0,0,.55),0 2px 4px rgba(0,0,0,.2);cursor:zoom-in}
.book .gl{position:absolute;inset:0;border-radius:12px;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.22) 47%,transparent 58%);background-size:250% 100%;background-position:var(--gx,60%) 0;pointer-events:none;mix-blend-mode:screen}
.book-hint{margin-top:26px;color:var(--mute);font-size:14px}

/* email */
.mails{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-bottom:60px}
.mail{border-radius:16px;border:1px solid var(--line2);overflow:hidden;background:#fff;box-shadow:0 30px 60px -40px rgba(0,0,0,.45)}
.mail .mb{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.08);background:#F7F7F5;color:#222;font-size:13px;font-weight:600}
.mail .mb i{width:26px;height:26px;border-radius:50%;background:var(--acc);display:grid;place-items:center;color:#fff;font-style:normal;font-size:12px}
.mail .mv{height:560px;overflow:hidden;position:relative;cursor:zoom-in}
.mail .mv img{width:100%;transition:transform 6s linear}
.mail:hover .mv img{transform:translateY(calc(-100% + 560px))}

/* gallery */
.masonry{columns:3;column-gap:22px;margin-bottom:60px}
.masonry .tile{margin-bottom:22px;break-inside:avoid}
.single{margin-bottom:60px}
.single .tile{border-radius:18px}

/* next */
.pnext{border-top:1px solid var(--line);padding:60px 0 80px;margin-top:40px}
.pnext a.nx{display:flex;justify-content:space-between;align-items:center;gap:20px}
.pnext small{display:block;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.pnext b{display:block;font-size:clamp(36px,6vw,88px);letter-spacing:-.05em;line-height:1;font-weight:600;margin-top:10px;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.pnext a.nx:hover b{transform:translateX(12px)}
.pnext .ar{width:74px;height:74px;border-radius:50%;background:var(--acc);color:#111;display:grid;place-items:center;flex:none;transition:transform .3s}
.pnext a.nx:hover .ar{transform:rotate(-45deg)}
.pnext .ar svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2}
.pfoot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:50px;font-size:14px;color:var(--mute)}
.pfoot a:hover{color:var(--ink)}
.pfoot a{display:inline-block;padding:12px 4px;margin:-12px 0}

/* lightbox */
.lb{position:fixed;inset:0;z-index:50;background:color-mix(in srgb,var(--bg) 96%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:grid;place-items:center;padding:74px 20px 24px}
.lb-in{display:grid;justify-items:center;width:100%;max-width:1500px}
.lb-sc{max-height:calc(100vh - 170px);max-height:calc(100svh - 170px);overflow:auto;border-radius:10px;display:grid;place-items:center}
.lb img{max-width:100%;max-height:calc(100vh - 170px);max-height:calc(100svh - 170px);width:auto;height:auto;object-fit:contain;border-radius:10px;animation:zi .45s cubic-bezier(.2,.8,.2,1)}
.lb.tall .lb-sc{max-width:min(760px,100%)}
.lb.tall img{max-height:none;width:100%}
@keyframes zi{from{transform:scale(.96);opacity:0}}
.lb-b{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;max-width:1100px;margin-top:16px;font-weight:600}
.lb-b span{color:var(--mute);font-weight:500}
.lb .x{position:absolute;top:16px;right:16px}
.lb-nav{display:flex;gap:8px;align-items:center}

@media (max-width:980px){
  .phead{grid-template-columns:1fr;gap:18px;padding:44px 0 30px}
  .flow{grid-template-columns:1fr}
  .steps{grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;max-height:none;padding-bottom:6px}
  .mails{grid-template-columns:repeat(2,1fr)}
  .masonry{columns:2}
  .g3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .wrap{width:calc(100% - 32px)}
  .pt{display:none}
  .back span{display:none}
  .back{padding:0 14px}
  .bbar{top:64px;height:38px}
  .bbar .url{max-width:72%}
  .bbar i{width:9px;height:9px}
  .g2,.g3{grid-template-columns:1fr}
  .mails{grid-template-columns:1fr}
  .masonry{columns:1}
  .phone{margin-left:-14%}
  .showcase{display:block;padding-bottom:28px}
  .showcase .laptop{width:88%;padding:6px;border-radius:12px}
  .showcase .laptop img{border-radius:6px}
  .showcase .laptop:only-child{width:100%}
  .showcase .phone{position:absolute;right:0;bottom:0;width:29%;margin:0;padding:5px;border-radius:18px}
  .showcase .phone img{border-radius:13px}
  .auto{right:14px;bottom:14px;height:44px;padding:0 16px;font-size:14px}
  .pnext .ar{width:56px;height:56px}
  .browser,.docpage{margin-left:-16px;margin-right:-16px;border-radius:0;border-left:0;border-right:0}
  .sw{width:calc(33.3% - 8px)}
}
.hm{display:none}
@media (hover:none){.hd{display:none}.hm{display:inline}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.reveal{clip-path:none}.rv{opacity:1;transform:none}html{scroll-behavior:auto}}
