/* ==========================================================================
   Lazzuli Tech — layout.css
   Site header (with mobile drawer) and site footer.
   ========================================================================== */

/* ==========================================================================
   Header
   The bar carries backdrop-filter; the drawer is a SIBLING of the bar, never
   a child — backdrop-filter creates a containing block and would trap a
   position:fixed drawer inside the 92px header box.
   ========================================================================== */
.site-header{position:sticky;top:0;z-index:900;width:100%;}

.site-header__bar{
  position:relative;z-index:3;
  background:rgba(5,9,18,.55);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid transparent;
  transition:background .6s var(--ease),border-color .6s var(--ease);
}
.site-header.is-stuck .site-header__bar{
  background:rgba(5,9,18,.9);border-bottom-color:var(--hair);
}
.site-header.is-open .site-header__bar{
  background:transparent;border-bottom-color:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}

.site-header__in{
  max-width:var(--wrap);margin:0 auto;padding:0 var(--pad);height:92px;
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  transition:height .6s var(--ease);
}
.site-header.is-stuck .site-header__in{height:74px;}

/* ---- brand ---- */
.brand{display:flex;align-items:center;gap:15px;color:var(--gold);flex:none;position:relative;z-index:4;
  transition:transform .8s var(--ease);}
/* when the drawer opens, the trace comes down the left edge — the mark
   steps aside to clear it, which doubles as a small piece of choreography */
.site-header.is-open .brand{transform:translateX(26px);}
.brand svg{height:52px;width:auto;overflow:visible;transition:height .6s var(--ease);}
.site-header.is-stuck .brand svg{height:42px;}
.brand__txt{display:flex;flex-direction:column;gap:5px;}
.brand__name{
  font-family:var(--f-display);font-weight:300;font-size:26px;line-height:.9;
  letter-spacing:-.015em;color:var(--ivory);transition:font-size .6s var(--ease);
}
.site-header.is-stuck .brand__name{font-size:22px;}
.brand__sub{
  font-family:var(--f-mono);font-weight:500;font-size:9.5px;letter-spacing:.38em;
  text-transform:uppercase;color:var(--gold-hi);padding-left:1px;
  transition:font-size .6s var(--ease);
}
.site-header.is-stuck .brand__sub{font-size:8.5px;}

/* ---- desktop nav ---- */
.nav{display:flex;align-items:center;gap:38px;}
.nav a{
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);position:relative;padding:6px 0;
  transition:color .5s var(--ease);
}
.nav a::after{
  content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;
  background:var(--gold);transform:scaleX(0);transform-origin:right;
  transition:transform .6s var(--ease);
}
.nav a:hover{color:var(--ivory);}
.nav a:hover::after{transform:scaleX(1);transform-origin:left;}

.site-header .btn{padding:12px 24px;font-size:10.5px;letter-spacing:.16em;}
.site-header .btn:hover{background:var(--gold);border-color:var(--gold);color:var(--ink);}

/* ---- burger: morphs on the same curve and duration as the drawer ---- */
.burger{
  display:none;width:46px;height:46px;border:1px solid var(--hair);border-radius:50%;
  background:rgba(5,9,18,.5);position:relative;flex:none;padding:0;z-index:4;
  transition:border-color .5s var(--ease);
}
.site-header.is-open .burger{border-color:var(--gold);}
.burger b{
  position:absolute;left:50%;top:50%;width:20px;height:1.5px;border-radius:2px;
  background:var(--gold-hi);
  transition:transform .55s var(--ease),width .55s var(--ease),background .55s var(--ease);
}
.burger b:nth-child(1){transform:translate(-50%,-50%) translateY(-4px);}
.burger b:nth-child(2){transform:translate(-50%,-50%) translateY(4px);width:13px;}
.site-header.is-open .burger b:nth-child(1){transform:translate(-50%,-50%) rotate(45deg);background:var(--gold);}
.site-header.is-open .burger b:nth-child(2){transform:translate(-50%,-50%) rotate(-45deg);width:20px;background:var(--gold);}

/* ---- mobile drawer ---- */
.drawer{
  position:fixed;inset:0;z-index:2;background:var(--ink);
  display:flex;flex-direction:column;justify-content:center;
  padding:104px 20px 36px;overflow:hidden;
  clip-path:inset(0 0 100% 0);transition:clip-path .8s var(--ease);
}
.site-header.is-open .drawer{clip-path:inset(0 0 0 0);}
.drawer__atmos{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.drawer__atmos i{position:absolute;border-radius:50%;filter:blur(64px);display:block;}
.drawer__atmos i:nth-child(1){width:120vw;height:90vw;left:-25vw;bottom:-40vw;
  background:radial-gradient(circle,rgba(74,123,255,.5),transparent 66%);}
.drawer__atmos i:nth-child(2){width:70vw;height:60vw;right:-20vw;top:-18vw;
  background:radial-gradient(circle,rgba(101,107,255,.34),transparent 68%);}
.drawer__atmos i:nth-child(3){width:50vw;height:40vw;left:30vw;top:34vh;
  background:radial-gradient(circle,rgba(180,145,92,.14),transparent 70%);}

/* the logo's trace, running down the menu */
.drawer__trace{position:absolute;left:20px;top:0;bottom:0;width:1px;background:var(--hair-cool);z-index:2;}
.drawer__trace::after{
  content:"";position:absolute;top:0;left:0;width:1px;height:0;background:var(--gold);
  box-shadow:0 0 8px rgba(180,145,92,.7);transition:height 1.1s var(--ease) .12s;
}
.site-header.is-open .drawer__trace::after{height:100%;}

.drawer__list{position:relative;z-index:3;display:grid;padding-left:26px;}
.drawer__list li{border-bottom:1px solid var(--hair-cool);position:relative;}
.drawer__list li:first-child{border-top:1px solid var(--hair-cool);}
.drawer__list li::before{
  content:"";position:absolute;left:-30px;top:50%;width:7px;height:7px;margin-top:-3.5px;
  border-radius:50%;background:var(--ink);border:1px solid rgba(150,170,220,.5);
  transition:border-color .6s var(--ease),background .6s var(--ease);
}
.drawer__list li:hover::before{border-color:var(--gold);background:var(--gold);}
.drawer__list a{
  display:flex;align-items:baseline;gap:16px;padding:20px 0;
  opacity:0;transform:translateY(18px);
  transition:opacity .7s var(--ease),transform .7s var(--ease);
}
.site-header.is-open .drawer__list a{opacity:1;transform:none;}
.site-header.is-open .drawer__list li:nth-child(1) a{transition-delay:.26s;}
.site-header.is-open .drawer__list li:nth-child(2) a{transition-delay:.33s;}
.site-header.is-open .drawer__list li:nth-child(3) a{transition-delay:.40s;}
.site-header.is-open .drawer__list li:nth-child(4) a{transition-delay:.47s;}
.site-header.is-open .drawer__list li:nth-child(5) a{transition-delay:.54s;}
.drawer__idx{font-family:var(--f-mono);font-size:10px;letter-spacing:.16em;color:var(--gold-hi);flex:none;padding-top:6px;}
.drawer__item{font-family:var(--f-display);font-weight:300;font-size:clamp(28px,8.4vw,38px);
  line-height:1;letter-spacing:-.02em;color:var(--ivory);}

.drawer__foot{
  position:relative;z-index:3;margin-top:40px;padding-left:26px;
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dim);line-height:2.1;opacity:0;transition:opacity .8s var(--ease) .62s;
}
.site-header.is-open .drawer__foot{opacity:1;}
.drawer__foot a{color:var(--gold-hi);}

.status{display:inline-flex;align-items:center;gap:9px;color:var(--dim);}
.status s{text-decoration:none;width:5px;height:5px;border-radius:50%;background:var(--gold);
  animation:pulse 2.7s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.2;}}

@media(max-width:900px){
  .nav,.site-header .btn{display:none;}
  .burger{display:block;}
  .site-header__in{height:80px;}
  .site-header.is-stuck .site-header__in{height:68px;}
  .brand svg{height:46px;}
  .site-header.is-stuck .brand svg{height:38px;}
  .brand__name{font-size:23px;}
  .site-header.is-stuck .brand__name{font-size:20px;}
}
@media(min-width:901px){.drawer{display:none;}}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{position:relative;background:var(--ink);}
.site-footer .atmos__field span{filter:blur(96px);opacity:.5;}

.site-footer__top{
  display:grid;grid-template-columns:1.25fr .75fr .75fr .95fr;gap:52px;
  padding:76px 0 64px;position:relative;z-index:2;
}
.site-footer .brand{margin-bottom:24px;}
.site-footer__tag{color:var(--muted);font-size:15px;line-height:1.75;max-width:34ch;}
.site-footer .status{
  margin-top:26px;font-family:var(--f-mono);font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;border:1px solid var(--hair);border-radius:100px;padding:8px 16px;
}
.site-footer h4{
  font-family:var(--f-mono);font-weight:500;font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold-hi);margin-bottom:22px;
}
.site-footer__col li{margin-bottom:13px;}
.site-footer__col a{
  color:var(--muted);font-size:14.6px;position:relative;display:inline-block;
  transition:color .5s var(--ease);
}
.site-footer__col a::after{
  content:"";position:absolute;left:0;bottom:-2px;width:100%;height:1px;background:var(--gold);
  transform:scaleX(0);transform-origin:right;transition:transform .6s var(--ease);
}
.site-footer__col a:hover{color:var(--ivory);}
.site-footer__col a:hover::after{transform:scaleX(1);transform-origin:left;}

.site-footer__contact a{display:block;color:var(--ivory);font-size:15.4px;margin-bottom:12px;
  transition:color .5s var(--ease);}
.site-footer__contact a:hover{color:var(--gold-hi);}
.site-footer__region{margin-top:18px;font-family:var(--f-mono);font-size:10px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--dim);line-height:2;}

.site-footer__bottom{
  position:relative;z-index:2;border-top:1px solid var(--hair-cool);padding:26px 0 40px;
  display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  font-family:var(--f-mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);
}
.site-footer__bottom a{transition:color .5s var(--ease);}
.site-footer__bottom a:hover{color:var(--gold-hi);}
.site-footer__legal{display:flex;gap:22px;flex-wrap:wrap;}

@media(max-width:980px){
  .site-footer__top{grid-template-columns:1fr 1fr;gap:44px 36px;padding:60px 0 50px;}
  .site-footer__brandcol{grid-column:1 / -1;}
}
@media(max-width:620px){
  .site-footer__top{grid-template-columns:1fr;gap:38px;padding:52px 0 44px;}
  .site-footer__bottom{flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:34px;}
}


/* ==========================================================================
   Floating actions — WhatsApp sits above back-to-top, same column
   ========================================================================== */
.wa{
  position:fixed;right:26px;bottom:90px;z-index:800;
  display:inline-flex;align-items:center;gap:0;
  height:52px;padding:0 15px;border-radius:100px;
  background:rgba(5,9,18,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--hair);color:var(--gold-hi);
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .6s var(--ease),transform .6s var(--ease),visibility .6s var(--ease),
             border-color .5s var(--ease),background .5s var(--ease),padding .5s var(--ease);
}
.wa.is-on{opacity:1;visibility:visible;transform:none;}
.wa:hover{border-color:var(--gold);background:rgba(12,23,48,.85);}
.wa svg{width:21px;height:21px;flex:none;fill:currentColor;}
/* the label unrolls on hover — closed it reads as an icon, open as an invitation */
.wa span{
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  white-space:nowrap;max-width:0;overflow:hidden;opacity:0;
  transition:max-width .6s var(--ease),opacity .45s var(--ease),margin .6s var(--ease);
}
.wa:hover span{max-width:180px;opacity:1;margin-left:11px;}

@media(max-width:620px){
  .wa{right:16px;bottom:74px;height:46px;padding:0 13px;}
  .wa svg{width:19px;height:19px;}
  .wa span{display:none;}
}
@media(prefers-reduced-motion:reduce){
  .wa{transition:opacity .01ms,visibility .01ms;transform:none;}
}

/* ==========================================================================
   Back to top
   The ring around it is the reading progress — same stroke-dashoffset
   technique as the process rail, so it belongs to the same language.
   ========================================================================== */
.totop{
  position:fixed;right:26px;bottom:26px;z-index:800;
  width:52px;height:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(5,9,18,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--hair-cool);
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .6s var(--ease),transform .6s var(--ease),
             visibility .6s var(--ease),border-color .6s var(--ease);
}
.totop.is-on{opacity:1;visibility:visible;transform:none;}
.totop:hover{border-color:var(--gold);}
.totop svg.ring{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);
  transform:rotate(-90deg);pointer-events:none;}
.totop svg.ring circle{fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:round;}
.totop i{
  font-style:normal;font-family:var(--f-mono);font-size:15px;line-height:1;color:var(--gold-hi);
  transition:transform .5s var(--ease);
}
.totop:hover i{transform:translateY(-3px);}

@media(max-width:620px){
  .totop{right:16px;bottom:16px;width:46px;height:46px;}
  .totop i{font-size:13px;}
}
@media(prefers-reduced-motion:reduce){
  .totop{transition:opacity .01ms,visibility .01ms;transform:none;}
}
