/* NSL Keys Locksmith card FRONT. All selectors scoped under .nsl-front. Sizes use container units (cqw) so the
   layout scales with the card, and stays correct when the card is rotated for portrait phones. */
.nsl-front{--nsl-brass:#cda865;--nsl-ink:#f1e9d6;--nsl-muted:#a8a08f;--nsl-line:rgba(241,233,214,.14);--nsl-wa:#25d366;
  --nsl-display:"Zilla Slab",Rockwell,"Roboto Slab",Georgia,serif;
  --nsl-mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --w:min(760px,calc(100vw - 32px),calc((100svh - 32px) * 1.72));
  position:relative;box-sizing:border-box;width:var(--w);aspect-ratio:1.72;container-type:inline-size;overflow:hidden;
  display:flex;flex-direction:column;color:var(--nsl-ink);border-radius:clamp(18px,3.4cqw,30px);
  border:1px solid var(--nsl-line);
  background:
    linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,0) 38%),
    repeating-linear-gradient(112deg,rgba(255,255,255,.022) 0 1px,rgba(255,255,255,0) 1px 7px),
    radial-gradient(120% 90% at 100% 100%,#26241f,#151412 60%);
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 30px 60px -30px rgba(0,0,0,.8)}
.nsl-front *{box-sizing:border-box}
/* Brand pattern: brass diamond lattice (the NSL equivalent of the Spares Wise checkers) */
.nsl-front::before,.nsl-front::after{content:"";position:absolute;pointer-events:none;
  background:conic-gradient(var(--nsl-brass) 25%,transparent 0 50%,var(--nsl-brass) 0 75%,transparent 0) 0 0/3.4cqw 3.4cqw}
.nsl-front::after{right:-10cqw;top:-16cqw;width:68cqw;height:50cqw;opacity:.7;transform:rotate(45deg);-webkit-mask:radial-gradient(closest-side at 70% 38%,#000 30%,transparent);mask:radial-gradient(closest-side at 70% 38%,#000 30%,transparent)}
.nsl-front::before{left:-12cqw;bottom:-8cqw;width:46cqw;height:34cqw;opacity:.34;transform:rotate(45deg);-webkit-mask:radial-gradient(closest-side at 30% 68%,#000 22%,transparent);mask:radial-gradient(closest-side at 30% 68%,#000 22%,transparent)}
.nsl-front-body{position:relative;z-index:1;flex:1;min-height:0;display:grid;grid-template-columns:max(40%,calc(160px + 4.2cqw + 2px)) 1fr;gap:3cqw;padding:3.6cqw 4.6cqw 2.8cqw}
.nsl-front-left{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-width:0;min-height:0}
.nsl-front-logo{display:block;width:min(100%,33cqw);height:auto;aspect-ratio:1;border-radius:50%;
  box-shadow:0 0 0 .45cqw rgba(205,168,101,.55),0 1.4cqw 3cqw rgba(0,0,0,.6)}
.nsl-front-actions{display:flex;gap:max(1.4cqw,6px);margin-top:2cqw}
.nsl-act{display:grid;place-items:center;width:max(7.4cqw,40px);height:max(7.4cqw,40px);padding:0;border-radius:max(1.8cqw,10px);
  border:1.5px solid rgba(205,168,101,.55);background:rgba(205,168,101,.07);color:var(--nsl-brass);cursor:pointer;text-decoration:none}
.nsl-act svg{width:48%;height:48%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nsl-act:active{transform:scale(.95)}
.nsl-act:focus-visible,.nsl-front a:focus-visible{outline:2px solid var(--nsl-brass);outline-offset:3px}
.nsl-front-right{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;padding-bottom:.6cqw}
.nsl-front-name{margin:0;font:700 max(8.6cqw,34px)/.95 var(--nsl-display);letter-spacing:.005em}
.nsl-front-sub{margin:1.4cqw 0 0;font:500 max(1.8cqw,10.5px)/1.3 var(--nsl-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--nsl-muted)}
.nsl-front-phone{display:flex;align-items:center;gap:1.6cqw;margin:3cqw 0 0;font:600 max(4.4cqw,19px)/1 var(--nsl-display);letter-spacing:.01em;white-space:nowrap}
.nsl-front-phone a{color:inherit;text-decoration:none}
.nsl-front-phone-ico{display:inline-grid;color:var(--nsl-brass)}
.nsl-front-phone-ico svg{width:max(3.6cqw,17px);height:max(3.6cqw,17px);fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nsl-front .nsl-front-wa{display:grid;place-items:center;width:max(6.2cqw,40px);height:max(6.2cqw,40px);border-radius:50%;margin-left:.6cqw;
  background:radial-gradient(circle at 35% 30%,#5cf08f,var(--nsl-wa) 60%,#139a48);color:#062b14;box-shadow:0 0 2.4cqw rgba(37,211,102,.45)}
.nsl-front-wa svg{width:56%;height:56%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nsl-front-rating{display:flex;align-items:center;gap:1cqw;margin:2.4cqw 0 0;font:500 max(1.9cqw,11px)/1 var(--nsl-mono);letter-spacing:.06em;color:var(--nsl-ink)}
.nsl-front-star{display:inline-grid;color:var(--nsl-brass)}
.nsl-front-star svg{width:max(2.4cqw,13px);height:max(2.4cqw,13px);fill:currentColor;stroke:none}
.nsl-front-tag{margin:2cqw 0 0;font:italic 700 max(2.4cqw,12px)/1.1 var(--nsl-display);letter-spacing:.05em;text-transform:uppercase;color:var(--nsl-brass)}
.nsl-front-ticker{position:relative;z-index:1;display:flex;overflow:hidden;border-top:1px solid var(--nsl-line);background:rgba(12,11,9,.66);backdrop-filter:blur(2px);
  font:500 max(1.85cqw,10.5px)/1 var(--nsl-mono);color:var(--nsl-muted);letter-spacing:.04em;white-space:nowrap}
.nsl-front-ticker ul{display:flex;flex-shrink:0;margin:0;padding:max(1.5cqw,8px) 0;list-style:none;animation:nsl-ticker 38s linear infinite}
.nsl-front-ticker li{padding:0 1.8cqw}
.nsl-front-ticker li::after{content:"";display:inline-block;width:.8cqw;height:.8cqw;margin-left:3.6cqw;background:var(--nsl-brass);transform:rotate(45deg) translateY(-.2cqw);opacity:.85}
@keyframes nsl-ticker{to{transform:translateX(-100%)}}
.nsl-front-toast{position:absolute;z-index:2;left:50%;bottom:9cqw;margin:0;padding:1.2cqw 2.4cqw;border-radius:99px;background:#f1e9d6;color:#151412;
  font:600 max(1.9cqw,12px)/1 var(--nsl-mono);transform:translateX(-50%);opacity:0;transition:opacity .25s;pointer-events:none}
.nsl-front-toast.is-on{opacity:1}
@media (prefers-reduced-motion:reduce){.nsl-front-ticker ul{animation:none}}
/* Portrait phones: turn the landscape card sideways. Put .nsl-front inside .nsl-front-host. */
.nsl-front-host{position:fixed;inset:0;display:grid;place-items:center;overflow:hidden}
@media (orientation:portrait) and (max-width:760px){
  .nsl-front-host .nsl-front{--w:min(760px,calc(100svh - 36px),calc((100vw - 24px) * 1.72));position:absolute;left:50%;top:50%;
    transform:translate(-50%,-50%) rotate(90deg)}
}
