/* Case-study pages: shared layout on top of site.css */
.case{max-width:1320px;margin:0 auto;display:flex;flex-direction:column;gap:clamp(70px,14vh,160px);padding-block:16px clamp(60px,10vh,120px)}
.back{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:15px;font-weight:500}
@media (hover:hover){.back:hover{color:var(--ink)}}
.c-hero{display:flex;flex-direction:column;gap:26px;padding-top:clamp(40px,8vh,90px)}
.c-brand{display:flex;align-items:center;gap:16px}
.c-brand .lg{width:64px;height:64px;border-radius:18px;background:#fff;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.c-brand .lg img{width:84%;height:auto;display:block}
.c-brand .lg.dark{background:#0d0d0d;border:1px solid #333;color:#fff;font-family:'IBM Plex Mono',monospace;font-weight:700;font-size:18px}
.c-brand .lg.mh{background:#121326;border:1px solid #2e3160}
.c-brand span{font-size:15px;font-weight:600;color:var(--muted)}
.c-hero h1{margin:0;font-size:clamp(44px,7.4vw,104px);line-height:.95;letter-spacing:-.045em;font-weight:700;max-width:14ch;text-wrap:balance}
.c-hero h1 em{font-style:normal;font-weight:300;color:#9fe3ef}
.c-hero > p{margin:0;font-size:clamp(18px,2vw,23px);color:var(--muted);max-width:44ch}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;max-width:900px}
.fact{border-radius:20px;border:1px solid var(--line);background:var(--tile);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);padding:14px 18px;display:flex;flex-direction:column;gap:2px}
.fact small{font-size:12px;color:var(--dim);font-weight:600;letter-spacing:.02em}
.fact b{font-size:16px;font-weight:600}
.showcase .device{max-width:1100px;margin:0 auto;width:100%}
.showcase .cap{display:block;text-align:center;margin-top:14px}
.sec-h{display:flex;flex-direction:column;gap:12px;max-width:760px;margin-bottom:28px}
.sec-h h2{margin:0;font-size:clamp(32px,4.6vw,60px);line-height:1;letter-spacing:-.045em;font-weight:700;text-wrap:balance}
.sec-h p{margin:0;color:var(--muted);font-size:19px}
.story{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:clamp(16px,2vw,26px)}
.story .tile p{max-width:none}
.feat{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:clamp(16px,2vw,26px)}
.feat .tile h3{font-size:clamp(20px,1.9vw,25px)}
.stack{display:flex;flex-wrap:wrap;gap:10px}
.stack span{padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:var(--tile);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);font-weight:500;font-size:15px}
.shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:clamp(16px,2vw,26px)}
.shot-slot{aspect-ratio:16/10;max-width:100%;border-radius:28px;border:1.5px dashed rgba(255,255,255,.18);background:rgba(18,21,36,.35);display:grid;place-items:center;text-align:center;color:var(--dim);font-size:14px;padding:20px}
.next{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:clamp(16px,2vw,26px)}
.next a.tile h3{display:flex;align-items:center;gap:10px}
.cta-tile{align-items:flex-start}
.status{display:inline-flex;align-items:center;gap:8px}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c,#7ed321)}

/* small screens: case-study product screens get a little more height for the larger text */
@media (max-width:600px){.showcase .device,.shot .device{aspect-ratio:4/3.4}}

/* privacy notice */
.legal{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:clamp(16px,2vw,26px);align-items:start}
.legal .tile h2{font-size:clamp(24px,2.4vw,32px)}
.legal .tile p,.legal .tile li{color:var(--muted);max-width:none}
.legal ul{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:6px}
.legal b{color:var(--ink);font-weight:600}
.updated{font-size:14px;color:var(--muted)}

/* products page: one card per product, screen on top */
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(520px,100%),1fr));gap:clamp(16px,2vw,26px)}
.product{padding:clamp(16px,2vw,24px);gap:20px}
.product .device{width:100%}
.p-meta{display:flex;flex-direction:column;gap:12px;padding:4px 10px 8px}
.p-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.p-head h2{margin:0;font-size:30px;font-weight:700;letter-spacing:-.045em;line-height:1.05}
.p-head .status{font-size:14px;font-weight:600;color:var(--muted)}
.p-meta p{margin:0;color:var(--muted)}
@media (hover:hover){.product:hover .device .scr .ui{transform:scale(1.035)}}
@media (prefers-reduced-motion:reduce){.product:hover .device .scr .ui{transform:none}}
@media (max-width:600px){.product .device{aspect-ratio:4/3.4}}
.rail-head .all{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:3px;white-space:nowrap}
.shot{margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}.shot .cap{text-align:center}
.shot.wide{grid-column:1/-1;width:100%;max-width:1100px;margin-inline:auto}
.duo{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,340px) minmax(0,520px);justify-content:center;align-items:center;gap:clamp(24px,5vw,80px)}
.duo .tile p{color:var(--muted);margin:0}
@media (max-width:760px){.duo{grid-template-columns:minmax(0,340px);}}
.device.phone{aspect-ratio:9/19;border-radius:44px;padding:9px}
.device.phone::after{inset:9px;border-radius:36px}
.device.phone .scr{border-radius:36px}
@media (max-width:600px){.shot .device.phone{aspect-ratio:9/19}}

/* service pages: questions that open and close */
.faq{display:flex;flex-direction:column;gap:12px;max-width:920px}
.faq details.tile{padding:0;gap:0;border-radius:26px}
.faq summary{list-style:none;cursor:pointer;padding:22px clamp(20px,3vw,32px);display:flex;justify-content:space-between;align-items:center;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:0 0 auto;font-size:28px;font-weight:300;line-height:1;color:var(--teal);transition:transform .3s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq summary:focus-visible{outline:2px solid var(--teal);outline-offset:-4px;border-radius:26px}
.faq summary h3{font-size:clamp(18px,1.7vw,23px);letter-spacing:-.02em}
.faq details p{padding:0 clamp(20px,3vw,32px) 24px;max-width:70ch}
.feat .tile h3 a{color:inherit}
@media (hover:hover){.feat .tile h3 a:hover{color:var(--teal)}}
.cta-tile p{margin:0}

/* balanced grids: no orphan cards */
.case{gap:clamp(60px,10vh,120px)}
@media (min-width:1000px){.feat{grid-template-columns:repeat(3,minmax(0,1fr))}.feat.c4{grid-template-columns:repeat(4,minmax(0,1fr))}.next.n4{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:640px) and (max-width:999px){.feat,.feat.c4,.next.n4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:639px){.feat,.feat.c4,.next.n4{grid-template-columns:1fr}}
.facts{max-width:1140px;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr))}
@media (min-width:1000px){.facts{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none}}
/* FAQs with a side card */
.faq-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:clamp(16px,2vw,26px);align-items:start}
.faq-wrap .faq{max-width:none}
.faq-side{position:sticky;top:110px}.faq-side a:not(.btn){color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.faq-side .btn{align-self:flex-start;margin-top:6px}
@media (max-width:900px){.faq-wrap{grid-template-columns:1fr}.faq-side{position:static}}
/* FAQs open and close smoothly where the browser supports it */
.faq{interpolate-size:allow-keywords}
.faq details::details-content{block-size:0;overflow:hidden;transition:block-size .4s cubic-bezier(.2,.8,.2,1),content-visibility .4s allow-discrete}
.faq details[open]::details-content{block-size:auto}
.faq summary::after{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){.faq details::details-content{transition:none}}
/* project logos sit straight on the page: no tile, no background */
.c-brand .lg,.c-brand .lg.dark,.c-brand .lg.mh{width:auto;height:56px;background:none;border:0;box-shadow:none;border-radius:0;overflow:visible;padding:0;display:flex;align-items:center}
.c-brand .lg img{width:auto;height:100%;display:block;object-fit:contain}
.c-brand .lg.dark{font-size:26px;letter-spacing:.02em;color:#fff}
.c-brand .lg.mh .mh-bars{height:40px!important;gap:4px}
.c-brand .lg.mh .mh-bars i{width:9px!important;border-radius:3px}
.c-brand > span:last-child{padding-left:16px;border-left:1px solid var(--line);line-height:1.2}
