/* arch_NC glass layer (2026-11-17)
   Adds glassmorphism on top of style.css + blog.css without touching their layout or animations.
   Loaded LAST on every page. Remove the <link> to glass.css to get the old look back.
   Rules (from the glassmorphism skill): glass fill is white-neutral only, the colour comes from what is
   behind (ambient light + code rain + grid), 1px specular top edge, solid primary CTA, glass secondary.
   Shapes: change --g-r / --g-pill to 0 for the old sharp corners. */

:root{
  --g-fill:rgba(255,255,255,.045);
  --g-fill-h:rgba(255,255,255,.075);
  --g-brd:rgba(255,255,255,.10);
  --g-brd-h:rgba(255,255,255,.22);
  --g-blur:blur(18px) saturate(170%);
  --g-spec:inset 0 1px 0 rgba(255,255,255,.13);
  --g-shadow:0 12px 40px rgba(0,0,0,.35);
  --g-shadow-h:0 20px 60px rgba(0,0,0,.5);
  --g-ray:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.075) 50%,transparent 62%);
  --g-r:18px; --g-r-sm:12px; --g-pill:999px;
  --g-spring:cubic-bezier(.34,1.56,.64,1);
}

/* ---------- ambient light behind the glass (site colours, very low alpha) ---------- */
body::after{content:"";position:fixed;inset:-12%;z-index:-1;pointer-events:none;
  background:
    radial-gradient(36% 30% at 84% 16%,rgba(52,211,153,.14),transparent 70%),
    radial-gradient(32% 28% at 10% 58%,rgba(34,211,238,.10),transparent 70%),
    radial-gradient(28% 24% at 62% 98%,rgba(99,102,241,.07),transparent 70%);
  animation:gAmb 46s ease-in-out infinite alternate;will-change:transform}
@keyframes gAmb{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-3%,2%,0) scale(1.05)}
  100%{transform:translate3d(2%,-2%,0) scale(.98)}}
/* alternate sections let the light through instead of a flat fill */
.sec--alt{background:rgba(11,13,17,.72)}
@media (min-width:961px){
  #pillars{background:linear-gradient(180deg,rgba(52,211,153,.06),rgba(11,13,17,.72) 60%)}
  #contact{background:linear-gradient(0deg,rgba(52,211,153,.07),rgba(11,13,17,.72) 55%)}
}

/* ---------- glass panels ---------- */
:is(.card,.wy__c,.uc,.tc,.bld,.flow,.flowbox,.chat,.saving,.form,.loop,.svcx__card,.svcx__hero,
    .toc,.post__svc,.tw,.tplr,.calc__q,.post__cta,.calc__res){
  background-color:var(--g-fill);
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);
  border-color:var(--g-brd);border-radius:var(--g-r);
  box-shadow:var(--g-spec),var(--g-shadow)}
.svcx__hero,.post__cta,.calc__res{border-radius:calc(var(--g-r) + 6px)}
.post__svc,.tw,.calc__q{border-radius:var(--g-r-sm)}
.pts,.build{border-radius:var(--g-r);overflow:hidden;background:var(--g-fill);border-color:var(--g-brd)}

/* light ray that sweeps across a card on hover */
:is(.card,.wy__c,.uc,.tc,.svcx__card,.tplr){
  background-image:var(--g-ray);background-size:260% 100%;background-position:100% 0;background-repeat:no-repeat}
.card{transition:border-color .3s,background-color .3s,box-shadow .3s,background-position .9s var(--ease)}
:is(.wy__c,.uc,.tc){transition:border-color .3s,transform .3s var(--ease),background-color .3s,box-shadow .3s,background-position .9s var(--ease)}
.svcx__card{transition:border-color .25s,background-color .25s,box-shadow .25s,transform .25s var(--ease),background-position .9s var(--ease)}
.tplr{transition:border-color .3s,background-color .3s,box-shadow .3s,background-position .9s var(--ease)}
:is(.card,.wy__c,.uc,.tc,.svcx__card,.tplr):hover{
  background-color:var(--g-fill-h);background-position:0 0;border-color:var(--g-brd-h);box-shadow:var(--g-spec),var(--g-shadow-h)}
.svcx__card:hover,.uc:hover,.tc:hover{border-color:rgba(52,211,153,.45)}
.svcx__card:hover{background-image:var(--g-ray),linear-gradient(180deg,rgba(52,211,153,.06),transparent 62%);background-size:260% 100%,100% 100%}

/* featured cards keep their green wash, now over glass */
.price--top{background-image:linear-gradient(180deg,rgba(52,211,153,.08),transparent 55%);border-color:rgba(52,211,153,.45)}
@media (min-width:961px){
  #services .card:first-child{background-color:var(--g-fill);background-image:linear-gradient(160deg,rgba(52,211,153,.12),transparent 58%)}
  .wy__c:nth-child(2){background-color:var(--g-fill);background-image:linear-gradient(170deg,rgba(52,211,153,.10),transparent 55%)}
}

/* premium edge: light catches the top-left corner and fades out */
:is(.toc,.post__cta,.calc__res,.svcx__hero,.form){position:relative}
:is(.toc,.post__cta,.calc__res,.svcx__hero,.form)::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:2;
  background:linear-gradient(135deg,rgba(255,255,255,.30),rgba(255,255,255,.06) 40%,transparent 70%,rgba(52,211,153,.28));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}
.svcx__hero{overflow:hidden}
.svcx__media::after{background:linear-gradient(270deg,rgba(12,14,18,.92),transparent 36%)}
.post__cta{border-color:rgba(255,255,255,.08);overflow:hidden;
  background-image:radial-gradient(120% 150% at 100% 0,rgba(52,211,153,.13),transparent 55%),radial-gradient(90% 120% at 0 100%,rgba(34,211,238,.07),transparent 60%)}
.calc__res{background-image:linear-gradient(180deg,rgba(52,211,153,.08),transparent 60%);border-color:rgba(255,255,255,.08)}

/* ---------- buttons: solid primary, glass secondary, pill shape, press feedback ---------- */
.btn{border-radius:var(--g-pill);transition:color .3s,transform .25s var(--ease),box-shadow .3s,background-color .3s,border-color .3s}
.btn--solid{box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 6px 22px rgba(0,0,0,.32)}
.btn--solid:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 30px rgba(0,0,0,.42)}
.btn--ghost{background:var(--g-fill);-webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%);
  border-color:rgba(255,255,255,.16);box-shadow:var(--g-spec)}
.btn--ghost:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.34);box-shadow:var(--g-spec),0 8px 26px rgba(0,0,0,.3)}
.btn:active{transform:translateY(1px) scale(.97);transition-duration:.08s}

/* small pills: nav CTA, tags, chips, tabs, socials
   (no #id inside :is() - it would lift the whole list to id specificity and beat the original hover states) */
:is(.menu__cta,.tg,.soc a,.chips span,.sc-tabs button,.tx__chips button,.more,.tplmore a,.tag,.chat__demo,.tool,.pc__tag,.txfab__t){border-radius:var(--g-pill)}
:is(.menu__cta,.tg,.soc a,.chips span,.sc-tabs button,.more,.tplmore a,.tag){
  background-color:var(--g-fill);-webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%);box-shadow:var(--g-spec)}
#introSkip{border-radius:var(--g-pill);box-shadow:var(--g-spec)}
.menu__cta{white-space:nowrap} /* a two-line pill turns into an oval on narrow phones */
@media (max-width:400px){.bmenu{gap:9px}.bmenu .menu__cta{padding:5px 10px;font-size:12.5px}}
.pc__tag{background:rgba(52,211,153,.08)}
.flowbox .flow{-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border-radius:0}

/* ---------- top bars and the services dropdown ---------- */
.bhead{background:rgba(9,11,14,.55);-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);box-shadow:inset 0 -1px 0 rgba(255,255,255,.04)}
@media (min-width:641px){
  .nav.solid{background:rgba(9,11,14,.55);-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);box-shadow:inset 0 -1px 0 rgba(255,255,255,.04)}
}
/* the bar is already a blur layer, so the menu inside it stays mostly opaque (a blur inside a blur cannot see the page) */
.dd__l{background:rgba(12,14,18,.94);border-color:rgba(255,255,255,.14);border-radius:16px;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 20px 60px rgba(0,0,0,.5)}
.dd__l a:hover{background:rgba(255,255,255,.06)}

/* ---------- article pages ---------- */
.toc{border-radius:var(--g-r)}
.post__body pre{border-radius:14px;background:rgba(255,255,255,.04);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);border-color:var(--g-brd);box-shadow:var(--g-spec)}
.post__body code{border-radius:6px}
.post__body th{background:rgba(255,255,255,.05)}
.post__body details{border-radius:14px;background:var(--g-fill);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);border-color:var(--g-brd);box-shadow:var(--g-spec);transition:border-color .3s,background-color .3s}
.post__body details:hover{background:var(--g-fill-h)}
.post__body details[open]{border-color:rgba(52,211,153,.35)}

/* ---------- media, templates, calculator, forms ---------- */
:is(.tc__img,.tplr__media .sc,.tplpage__media .sc,.tplpage__shot img){border-radius:var(--g-r-sm)}
.term{border-radius:14px}
.vmodal__box{border-radius:22px;overflow:hidden}
.svcx__ic{border-radius:var(--g-r-sm)}
.calc__n{border-radius:8px}
.calc__opt>span,.calc__chk>span{border-radius:var(--g-r-sm);background-color:rgba(255,255,255,.025)}
.calc__sel select{border-radius:var(--g-r-sm);background:rgba(255,255,255,.04)}
.field input,.field select,.field textarea{border-radius:var(--g-r-sm);background:rgba(255,255,255,.035)}
.field input:focus,.field select:focus,.field textarea:focus{background:rgba(255,255,255,.06)}
.form__ok{border-radius:var(--g-r-sm)}
.msg{border-radius:14px}
.tx__chat{border-radius:24px;overflow:hidden;background:rgba(14,17,23,.62);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);
  border-color:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 60px rgba(52,211,153,.12)}
.tx__h button{border-radius:50%}
.tx__in input{border-radius:var(--g-pill);padding-inline:16px;background:rgba(255,255,255,.04)}
.tx__in button{border-radius:var(--g-pill)}

/* ---------- phones / touch screens: no live blur on panels ----------
   A blurred panel over a fixed or animated background has to be re-blurred on every scroll frame,
   which is what makes mid-range phones stutter. Here panels keep the glass look (white fill, specular
   edge, light border, rounded corners) without backdrop-filter; only the sticky blog header keeps a light blur. */
@media (max-width:760px),(hover:none){
  :root{--g-r:16px;--g-fill:rgba(255,255,255,.06);--g-fill-h:rgba(255,255,255,.08)}
  body::after{animation:none;will-change:auto}
  :is(.card,.wy__c,.uc,.tc,.bld,.flow,.flowbox,.chat,.saving,.form,.loop,.svcx__card,.svcx__hero,
      .toc,.post__svc,.tw,.tplr,.calc__q,.post__cta,.calc__res,.post__body details,.post__body pre,
      .btn--ghost,.menu__cta,.tg,.soc a,.chips span,.sc-tabs button,.more,.tplmore a,.tag,.tx__chat){
    -webkit-backdrop-filter:none;backdrop-filter:none}
  :is(.card,.wy__c,.uc,.tc,.svcx__card,.tplr,.toc,.tw,.calc__q,.post__svc){box-shadow:var(--g-spec),0 8px 24px rgba(0,0,0,.28)}
  .tx__chat{background:rgba(14,17,23,.94)}
  .bhead{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(9,11,14,.78)}
}
/* touch screens have no hover: no light ray */
@media (hover:none){:is(.card,.wy__c,.uc,.tc,.svcx__card,.tplr){background-image:none}}

/* ---------- accessibility fallbacks ---------- */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :is(.card,.wy__c,.uc,.tc,.bld,.flow,.flowbox,.chat,.saving,.form,.loop,.svcx__card,.svcx__hero,.toc,.post__svc,.tw,.tplr,.calc__q,.post__cta,.calc__res,.post__body details,.post__body pre){background-color:rgba(15,18,24,.94)}
  .bhead,.nav.solid{background:rgba(7,8,10,.94)}
}
@media (prefers-reduced-transparency:reduce){
  :is(.card,.wy__c,.uc,.tc,.bld,.flow,.flowbox,.chat,.saving,.form,.loop,.svcx__card,.svcx__hero,.toc,.post__svc,.tw,.tplr,.calc__q,.post__cta,.calc__res,.post__body details,.post__body pre,.btn--ghost,.tx__chat){
    background-color:var(--card);-webkit-backdrop-filter:none;backdrop-filter:none}
  .bhead,.nav.solid{background:rgba(7,8,10,.96);-webkit-backdrop-filter:none;backdrop-filter:none}
  body::after{display:none}
}
