/* =====================================================================
   Showcase (showcase.js): the site advertises our work by doing it live.
   7b · build  — type a brand, watch its site assemble
   7c · journey — a message passes SSL, SPF, DKIM and DMARC on scroll
   10b · speed — real numbers measured from this page
   ===================================================================== */

/* ---------- 7b · build ---------- */
.build{padding:clamp(100px,12vw,150px) 0}
.bd-form{margin-top:0;max-width:460px;flex:1 1 340px}
.bd-form input{font-family:var(--la)}
.bd-tld{font:600 16px var(--la);color:var(--grey);padding-inline-end:4px}
.bd-stage{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:clamp(18px,2.4vw,32px);align-items:start}
.bd-browser{--h:210;--c:hsl(var(--h) 52% 40%);--c2:hsl(var(--h) 60% 94%);position:relative;justify-self:center;width:100%;max-width:980px;border-radius:18px;overflow:hidden;background:#fff;color:#0b0e10;
  box-shadow:0 0 0 1px var(--line-l),0 40px 90px -50px rgba(7,10,12,.45);transition:max-width .9s var(--ease),box-shadow .4s}
.bd-bar{display:flex;align-items:center;gap:6px;height:40px;padding:0 14px;background:#f2f2f2;border-bottom:1px solid rgba(7,10,12,.07)}
.bd-bar i{width:10px;height:10px;border-radius:50%;background:#d6d6d6}
.bd-url{flex:1;max-width:340px;margin:0 auto;height:26px;border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:center;gap:6px;font:500 13px var(--la);color:#454545;box-shadow:inset 0 0 0 1px rgba(7,10,12,.06);overflow:hidden;white-space:nowrap}
.bd-lock{font-size:10px;opacity:0;transition:opacity .4s}
.bd-browser.is-ssl .bd-lock{opacity:1}
.bd-host{direction:ltr}
.bd-host::after{content:"";display:inline-block;width:1px;height:13px;margin-inline-start:2px;vertical-align:-2px;background:currentColor;animation:caret .8s steps(1) infinite}
.bd-site{position:relative;padding:18px clamp(16px,3vw,34px) 26px;min-height:420px;font-family:var(--ar)}
.bd-nav{display:flex;align-items:center;gap:12px;padding-bottom:16px}
.bd-logo{position:relative;width:34px;height:34px;flex:none;display:grid;place-items:center}
.bd-logo svg{position:absolute;inset:0;width:100%;height:100%;fill:var(--c);transition:fill .8s}
.bd-ini{position:relative;font:800 13px var(--la);color:var(--c);transition:color .8s}
.bd-name{font:800 17px var(--la);direction:ltr}
.bd-links{display:flex;gap:16px;margin-inline-start:auto}
.bd-links i{display:block;width:46px;height:8px;border-radius:4px;background:#e3e3e3}
.bd-cta{display:block;width:96px;height:34px;border-radius:999px;background:var(--c);transition:background .8s}
.bd-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(16px,3vw,40px);align-items:center;padding:clamp(20px,4vw,46px) 0}
.bd-kick{margin:0;font:700 13px var(--ar);color:var(--c);transition:color .8s}
.bd-title{margin:6px 0 10px;font:800 clamp(30px,4.4vw,58px)/1.05 var(--la);letter-spacing:-.02em;direction:ltr;text-align:right;word-break:break-word}
.bd-title.ar{font-family:var(--ar)}
.bd-sub{margin:0;font-size:clamp(13px,1.2vw,16px);color:#6b6b6b;max-width:36ch}
.bd-btns{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.bd-btns i{font-style:normal;font:700 13px var(--ar);padding:10px 18px;border-radius:999px}
.bd-b1{background:var(--c);color:#fff;transition:background .8s}
.bd-b2{box-shadow:inset 0 0 0 1.5px #0b0e10}
.bd-art{position:relative;aspect-ratio:1;border-radius:22px;overflow:hidden;background:var(--c2);transition:background .8s}
.bd-art span{position:absolute;inset:-20%;opacity:.55;transition:opacity .8s;
  background:conic-gradient(from 210deg at 60% 40%,var(--c),transparent 30%,var(--c) 55%,transparent 75%);filter:blur(28px);animation:bd-drift 9s linear infinite}
.bd-art::after{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='44' height='44'%3E%3Cpath fill='none' stroke='white' stroke-opacity='.55' stroke-width='2' d='M32 3 57 17.5v29L32 61 7 46.5v-29Z'/%3E%3C/svg%3E")}
@keyframes bd-drift{to{transform:rotate(360deg)}}
.bd-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.bd-cards i{display:block;height:92px;border-radius:14px;background:#f4f4f4;box-shadow:inset 0 0 0 1px rgba(7,10,12,.05);position:relative;overflow:hidden}
.bd-cards i::before{content:"";position:absolute;right:14px;top:14px;width:26px;height:26px;border-radius:8px;background:var(--c);opacity:.9;transition:background .8s}
.bd-cards i::after{content:"";position:absolute;right:14px;left:30%;bottom:18px;height:8px;border-radius:4px;background:#dedede;box-shadow:0 -14px 0 #e8e8e8}

/* wireframe: every block shows its box and its tag, nothing is filled yet */
.bd-browser.is-wire .sk{color:transparent!important;background:transparent!important;box-shadow:none!important;outline:1.5px dashed rgba(7,10,12,.28);outline-offset:-1px;border-radius:6px}
.bd-browser.is-wire .sk::before,.bd-browser.is-wire .sk::after,.bd-browser.is-wire .bd-art span,.bd-browser.is-wire .bd-art::after{opacity:0!important}
.bd-browser.is-wire .bd-logo svg{fill:none;stroke:rgba(7,10,12,.35);stroke-dasharray:3 3}
.bd-browser.is-wire .bd-ini{color:transparent}
.bd-browser.is-mono{--c:#0b0e10;--c2:#ececec}
.sk{transition:color .5s,background .6s,outline-color .4s}
.bd-scan{position:absolute;left:0;right:0;top:40px;height:2px;background:var(--c);box-shadow:0 0 16px 2px var(--c);opacity:0;pointer-events:none}

/* phone: the same page reflows to 390 wide */
.bd-browser.is-phone{max-width:390px}
.bd-browser.is-phone .bd-links,.bd-browser.is-phone .bd-cta{display:none}
.bd-browser.is-phone .bd-nav{justify-content:space-between}
.bd-browser.is-phone .bd-hero{grid-template-columns:1fr}
.bd-browser.is-phone .bd-art{aspect-ratio:16/9;order:-1}
.bd-browser.is-phone .bd-cards{grid-template-columns:1fr}
.bd-browser.is-phone .bd-cards i:nth-child(n+2){display:none}

.bd-log{list-style:none;margin:0;padding:16px 18px;border-radius:16px;background:#070a0c;color:#c7c7c7;font:500 12.5px/1.75 var(--mono,monospace);min-height:260px;box-shadow:0 30px 60px -40px rgba(7,10,12,.6)}
.bd-log li{white-space:pre-wrap;word-break:break-word}
.bd-log li.rtl{direction:rtl;font-family:var(--ar)}
.bd-log li b{color:#f4f4f4;font-weight:700}
.bd-log li i{font-style:normal;color:#818181}
.bd-log li.ok{color:#f4f4f4}
.bd-note{margin:18px 0 0;font-size:14px;color:var(--grey);text-align:center}
@media (max-width:980px){
  .bd-stage{grid-template-columns:1fr}
  .bd-log{min-height:0;max-height:190px;overflow:hidden}
  .bd-site{min-height:0}
}
@media (max-width:640px){
  .bd-links{display:none}
  .bd-hero{grid-template-columns:1fr}
  .bd-art{aspect-ratio:16/9;order:-1}
  .bd-cards{grid-template-columns:1fr 1fr}
  .bd-cards i:nth-child(3){display:none}
  .bd-form{flex-basis:100%}
}
[data-light=night] .bd-browser{box-shadow:0 0 0 1px rgba(255,255,255,.12),0 40px 90px -40px rgba(0,0,0,.8)}
[data-light=night] .bd-log{box-shadow:0 0 0 1px rgba(255,255,255,.1)}
[data-light=night] .bd-tld{color:var(--n-soft)}

/* ---------- 7c · mail journey ---------- */
.journey{padding:clamp(100px,12vw,150px) 0}
.jr{position:relative;aspect-ratio:1200/420;max-width:1200px;margin:0 auto}
.jr-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.jr-base{fill:none;stroke:currentColor;stroke-opacity:.12;stroke-width:2}
.jr-draw{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.jr-spam{fill:none;stroke:currentColor;stroke-opacity:.22;stroke-width:1.5;stroke-dasharray:5 6}
.jr-env{position:absolute;left:0;top:0;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:14px;background:var(--ink);color:var(--paper);display:grid;place-items:center;z-index:3;box-shadow:0 14px 30px -12px rgba(7,10,12,.5)}
.jr-env svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.jr-node{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;width:max-content;max-width:190px;translate:-50% 0}
.jr-node b{font:800 15px var(--ar)}
.jr-node span{font-size:12.5px;line-height:1.5;color:var(--grey)}
.jr-node i{font:700 11px var(--mono,monospace);letter-spacing:.08em;font-style:normal;padding:4px 9px;border-radius:999px;border:1.5px solid currentColor;margin-bottom:4px;transition:background .4s,color .4s}
.jr-check::before{content:"";position:absolute;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--paper);box-shadow:0 0 0 2px currentColor;transition:background .3s,transform .4s var(--ease)}
.jr-check.up{translate:-50% calc(-100% - 22px)}
.jr-check.up::before{bottom:-29px}
.jr-check.down{translate:-50% 22px}
.jr-check.down::before{top:-29px}
.jr-check{opacity:.4;transition:opacity .4s}
.jr-check.ok{opacity:1}
.jr-check.ok i{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.jr-check.ok::before{background:currentColor;transform:scale(1.25)}
.jr-from{translate:-50% calc(-100% - 34px)}
.jr-from b{font:700 14px var(--la);direction:ltr}
.jr-to{translate:-50% calc(-100% - 34px);opacity:.35;transition:opacity .5s}
.jr-to.ok{opacity:1}
.jr-to b{font-size:18px}
.jr-junk{opacity:.4;translate:0 -50%}
.jr-junk b{text-decoration:line-through}
@media (max-width:820px){
  /* phones: the route becomes a vertical timeline */
  .jr{aspect-ratio:auto;display:flex;flex-direction:column;gap:22px;padding-inline-start:34px}
  .jr::before{content:"";position:absolute;inset-inline-start:11px;top:6px;bottom:6px;width:2px;background:currentColor;opacity:.12}
  .jr::after{content:"";position:absolute;inset-inline-start:11px;top:6px;width:2px;height:calc(var(--jp,0) * (100% - 12px));background:currentColor}
  .jr-svg,.jr-env{display:none}
  .jr-node,.jr-check.up,.jr-check.down,.jr-from,.jr-to,.jr-junk{position:relative;left:auto!important;top:auto!important;translate:none;align-items:flex-start;text-align:start;max-width:none}
  .jr-node::before{content:"";position:absolute;inset-inline-start:-29px;top:4px;width:14px;height:14px;border-radius:50%;background:var(--paper);box-shadow:0 0 0 2px currentColor;margin:0;bottom:auto}
  .jr-check.ok::before,.jr-to.ok::before{background:currentColor}
  .jr-junk{order:9}
}
[data-light=night] .jr-env{background:var(--n-text);color:#070a0c}
[data-light=night] .jr-check::before,[data-light=night] .jr-node::before{background:var(--n-bg)}
[data-light=night] .jr-check.ok i{background:var(--n-text);color:#070a0c;border-color:var(--n-text)}
[data-light=night] .jr-check.ok::before{background:var(--n-text)}
[data-light=night] .jr-node span{color:var(--n-muted)}

/* ---------- 10b · speed ---------- */
.speed{padding:clamp(100px,12vw,150px) 0}
.spd-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(30px,5vw,80px);align-items:center}
.spd{display:grid;gap:18px}
.spd-gauge{position:relative;padding:24px 24px 20px;border-radius:var(--r-lg,24px);background:var(--paper);box-shadow:inset 0 0 0 1px var(--line-l);text-align:center}
.spd-gauge svg{display:block;width:100%;max-width:340px;margin:0 auto;overflow:visible}
.spd-track,.spd-fill{fill:none;stroke-width:12;stroke-linecap:round}
.spd-track{stroke:currentColor;stroke-opacity:.1}
.spd-fill{stroke:currentColor}
.spd-ticks line{stroke:currentColor;stroke-opacity:.35;stroke-width:1.5}
.spd-ticks text{font:600 8px var(--mono,monospace);fill:currentColor;opacity:.5;text-anchor:middle}
.spd-needle{stroke:currentColor;stroke-width:3;stroke-linecap:round}
.spd-gauge circle{fill:currentColor}
.spd-gauge p{margin:-6px 0 0;display:flex;justify-content:center;align-items:baseline;gap:8px}
.spd-gauge p b{font:800 clamp(40px,5vw,64px)/1 var(--la);font-variant-numeric:tabular-nums;direction:ltr}
.spd-gauge p small,.spd-tiles small{font-size:14px;color:var(--grey);font-weight:600}
.spd-gauge>span{display:block;margin-top:4px;color:var(--grey);font-size:14px}
.spd-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.spd-tiles li{padding:18px 20px;border-radius:18px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line-l);display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:6px}
.spd-tiles b{font:800 clamp(26px,2.6vw,36px)/1 var(--la);font-variant-numeric:tabular-nums;direction:ltr}
.spd-tiles span{grid-column:1/-1;margin-top:6px;font-size:13.5px;color:var(--grey)}
@media (max-width:900px){.spd-grid{grid-template-columns:1fr}}
[data-light=night] .spd-gauge,[data-light=night] .spd-tiles li{background:var(--n-card);box-shadow:inset 0 0 0 1px var(--n-line)}
[data-light=night] .spd-gauge p small,[data-light=night] .spd-tiles small,[data-light=night] .spd-tiles span,[data-light=night] .spd-gauge>span{color:var(--n-muted)}
[data-light=night] .journey{background:var(--n-bg)}

@media (prefers-reduced-motion:reduce){.bd-art span{animation:none}.bd-host::after{animation:none}.bd-browser{transition:none}}

.bd-log a{color:#f4f4f4;text-decoration:underline;text-underline-offset:3px}
.bd-browser .sk{transform-origin:100% 50%}

/* the preview keeps one fixed height through every build step (wireframe, type, phone),
   so a build running above the reader never pushes the page (CLS) */
.bd-site{height:520px;min-height:0;overflow:hidden}
@media (max-width:980px){.bd-site{height:560px}}
@media (max-width:640px){.bd-site{height:600px}}
.bd-log{height:300px;min-height:0;max-height:none;overflow:hidden}
@media (max-width:980px){.bd-log{height:190px}}
.jr-env{left:0;top:0}
