/* Advance Tech Hub — layout & typography fixes (Nov 2026). Loaded after ath.css / ath-light.css. */

/* 1. Section rhythm: tighter vertical spacing between sections */
.sec{padding:clamp(56px,6.5vw,104px) 0}
.sec-head{margin-bottom:clamp(28px,3.4vw,48px)}
.phero{padding:clamp(130px,17vh,180px) var(--gut) clamp(28px,4vw,56px)}
.hero{padding:clamp(120px,15vh,150px) var(--gut) clamp(48px,6vw,80px)}
.logos{margin-top:24px}
/* back-to-back sections: don't stack bottom + top padding */
.sec+.sec:not([style*="padding-top"]){padding-top:0}

/* 2. Heading sizes: calmer scale across the site */
.hero h1{font-size:clamp(40px,5.4vw,84px);line-height:1;letter-spacing:-.04em;margin-bottom:22px}
.hero h1 em{font-size:1em}
.phero h1{font-size:clamp(38px,5.2vw,80px);line-height:1;letter-spacing:-.04em;max-width:18ch}
.h2{font-size:clamp(30px,3.6vw,54px);letter-spacing:-.035em;max-width:24ch}
.cta-band h2{font-size:clamp(30px,4vw,60px);letter-spacing:-.035em;max-width:20ch}
.news h3{font-size:clamp(26px,2.8vw,40px)}
@media (max-width:640px){.hero h1{font-size:clamp(36px,10vw,52px)}}

/* 3. Feature / service cards: title sits right under the number, no floating gap */
.feat{justify-content:flex-start;gap:0;min-height:0}
.feat .num{display:block;margin-bottom:18px}
.feat h3{margin-bottom:10px}
.pd-feats .feat{min-height:0}
.feat-link{display:flex;flex-direction:column}
.feat-link>div{display:flex;flex-direction:column;flex:1}
.feat-link .more{margin-top:auto;padding-top:14px;align-self:flex-start}

/* 4. Moving text strip on the homepage */
.marq{padding:16px 0}
.marq span{font-family:var(--f);font-weight:600;font-size:clamp(14px,1.15vw,17px);letter-spacing:.08em;text-transform:uppercase;padding:0 26px;gap:0;color:var(--tx)}
.marq span em{font-family:var(--f);font-weight:700;margin-left:.4em;letter-spacing:.08em}
.marq span::after{margin-left:52px;width:6px;height:6px}

/* 5. Client logo carousel (and text strip) pause on hover */
.logos:hover .tr,.marq:hover .tr{animation-play-state:paused}
.logos span{cursor:default}

/* 6. Footer card */
footer.glass{
  margin-top:clamp(36px,5vw,64px);
  border:1px solid var(--ln);
  border-radius:28px;
  background:
    radial-gradient(600px 260px at 100% 0%,rgba(31,216,211,.10),transparent 70%),
    radial-gradient(500px 240px at 0% 100%,rgba(10,154,155,.07),transparent 70%),
    var(--glass);
  box-shadow:0 1px 2px rgba(6,50,56,.04),0 24px 60px -36px rgba(6,50,56,.35);
}
footer.glass::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--lime2),var(--lime),var(--lime2));opacity:.9}
footer .news{
  align-items:center;padding:clamp(22px,3vw,36px) clamp(20px,3vw,40px);
  border:1px solid var(--ln);border-radius:20px;
  background:linear-gradient(135deg,rgba(31,216,211,.08),rgba(10,154,155,.03));
}
footer .news .lab{margin-bottom:12px}
footer .news p{margin-top:8px}
footer .fcols{padding:40px 0 32px}
footer .fcols h4{font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:11.5px}
footer .fcols li{margin-bottom:10px}
footer .soc{margin-top:18px}
footer .fbot{border-top:1px solid var(--ln)}
@media (max-width:640px){footer.glass{border-radius:22px}}

/* 7. Animated network-wave background in the light theme too */
html[data-theme=light]{background:var(--bg)}
html[data-theme=light] body{background:transparent}
html[data-theme=light] #bgnet{display:none}
html[data-theme=light] #bgwave{opacity:.55}

/* 8. Low-power devices (no graphics card / software rendering): drop the costly blur effects */
html.lite *,html.lite *::before,html.lite *::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.lite .nav.scrolled,html.lite .drawer{background:var(--bg)}

/* 9. Home "Core services": keep the section heading pinned together with the service list */
.sx>.sec-head{grid-column:1/-1;margin:0 0 clamp(14px,2.2vh,26px)!important}
.sx.pinned>.sec-head .lab{margin-bottom:10px}
.sx.pinned>.sec-head .h2{font-size:clamp(28px,5vh,52px)}
.sx.pinned>.sec-head .lead{margin:0!important}
.sx.pinned .sx-stage{height:clamp(150px,27vh,330px)}
@media (max-width:980px){.sx>.sec-head{order:-2}}

/* 10. Responsive layouts — each screen size gets its own arrangement */

/* headings break into balanced lines (no single orphan word on its own line) */
h1,h2,.h2,.sx-body h3{text-wrap:balance}
.wa-float{display:none!important}

/* --- short laptop screens (wide but not tall, e.g. 1366x768 / 1536x864 at 125% scaling) --- */
@media (min-width:981px) and (max-height:860px){
  .hero{min-height:auto;padding-top:clamp(110px,16vh,140px);padding-bottom:clamp(40px,7vh,72px)}
  .hero h1{font-size:clamp(40px,8.4vh,76px)}
  .sx.pinned>.sec-head.row{flex-wrap:nowrap;align-items:flex-end;gap:40px}
  .sx.pinned>.sec-head .lab{display:none}
  .sx.pinned>.sec-head .h2{font-size:clamp(26px,5.2vh,42px);max-width:none;white-space:nowrap}
  .sx.pinned>.sec-head .lead{font-size:14px;max-width:46ch}
  .sx.pinned>.sec-head{margin-bottom:clamp(10px,1.8vh,18px)!important}
  .sx.pinned .sx-list .sx-item{min-height:44px;padding-block:8px}
  .sx.pinned .sx-item h3{font-size:clamp(17px,3.2vh,26px)}
  .sx.pinned .sx-panel{padding:12px}
  .sx.pinned .sx-bar{padding-bottom:8px}
  .sx.pinned .sx-stage{height:clamp(120px,27vh,260px)}
  .sx.pinned .sx-body{padding:12px 6px 4px}
  .sx.pinned .sx-body h3{font-size:clamp(20px,3.4vh,28px);margin-bottom:4px}
  .sx.pinned .sx-body p{font-size:14px;line-height:1.5}
  .sx.pinned .sx-act{margin-top:12px}
  .sx.pinned .sx-act .btn{padding:11px 18px;font-size:13.5px}
  .sx.pinned .sx-more{margin-top:14px;padding:11px 18px}
  .proc .stick{top:110px}
}

/* --- small laptops (981–1199 wide) --- */
@media (min-width:981px) and (max-width:1199px){
  .hero-in{gap:36px}
  .sx{gap:32px}
  .sx-item{grid-template-columns:36px 1fr 22px}
}

/* --- tablets (700–980 wide): two-column service explorer, framed visuals --- */
@media (min-width:700px) and (max-width:980px){
  .hero{min-height:auto;padding-top:130px;padding-bottom:64px}
  .hero h1{font-size:clamp(52px,8vw,72px)}
  .hero-in{gap:48px}
  .flowwrap{max-width:600px;width:100%;margin-inline:auto}
  .sx{grid-template-columns:1fr 1.12fr;gap:28px;align-items:start}
  .sx>.sec-head{grid-column:1/-1}
  .sx-list{order:0;display:flex;flex-direction:column;overflow:visible;gap:0;padding:0}
  .sx-item{display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--ln);border-radius:0;padding:14px 2px;background:none!important;color:var(--mut)}
  .sx-item:first-child{border-top:1px solid var(--ln)}
  .sx-item .no,.sx-item .ar{display:block}
  .sx-item h3{font-size:18px;white-space:normal;font-weight:600;letter-spacing:-.02em}
  .sx-item.on{color:var(--tx);border-color:var(--ln);padding-left:10px}
  .sx-item::after{display:block}
  .sx-more{align-self:flex-start;margin-top:18px}
  .sx-panel{position:sticky;top:90px}
  .sx-stage{aspect-ratio:16/11}
  .sx-body h3{font-size:24px}
  .sx-body p{font-size:14.5px;min-height:0}
  .about-media{max-width:560px;width:100%;margin-inline:auto}
  .sec-head.row{align-items:flex-start}
  .cta-band{padding:56px 44px}
}

/* --- phones (up to 699 wide) --- */
@media (max-width:699px){
  .sec{padding:56px 0}
  .sec+.sec:not([style*="padding-top"]){padding-top:0}
  .sec-head{margin-bottom:26px}
  .lab{margin-bottom:14px}
  .h2,.sec h2{font-size:clamp(26px,7.6vw,32px);line-height:1.12;max-width:none}
  .hero{min-height:auto;padding-top:112px;padding-bottom:48px}
  .hero h1{font-size:clamp(40px,11.6vw,54px);line-height:1.02}
  .hero p.lead,.lead{font-size:15.5px;line-height:1.6}
  .badge{font-size:11px;padding:8px 12px;margin-bottom:24px}
  .cta-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:26px 0 14px}
  .cta-row .btn{justify-content:center;padding:14px 12px;font-size:14px}
  .micro{font-size:12px;line-height:1.6}
  .flowwrap{margin-top:8px}
  .phero{padding-top:108px;padding-bottom:28px}
  .phero h1{font-size:clamp(34px,9.6vw,44px);line-height:1.04;max-width:none}
  .phero p{font-size:15.5px;margin-top:18px}
  .feat{padding:22px 20px}
  .feat h3{font-size:20px}
  .sx-stage{aspect-ratio:16/11}
  .sx-body{padding:16px 6px 4px}
  .sx-body h3{font-size:22px}
  .sx-act .btn{flex:1 1 auto;justify-content:center}
  .logos span{width:124px;height:68px;padding:12px;border-radius:14px}
  .logos img{max-height:40px}
  .cta-band{padding:34px 22px}
  .cta-band h2{font-size:clamp(26px,7.6vw,32px)}
  .cta-band .btns{display:grid;grid-template-columns:1fr;gap:10px}
  .cta-band .btns .btn{justify-content:center}
  footer.glass{margin:32px 12px 12px;padding:18px 16px 18px;border-radius:22px}
  footer .news{padding:20px 16px;border-radius:16px;gap:18px}
  footer .news h3{font-size:26px}
  footer .fcols{grid-template-columns:1fr 1fr;gap:28px 18px;padding:28px 0 20px}
  footer .fcols>div:first-child,footer .fcols>div:last-child{grid-column:1/-1}
  footer .fbot{gap:12px;align-items:flex-start}
  footer .fbot nav{flex-wrap:wrap;gap:12px 18px}
}
@media (max-width:370px){
  .cta-row{grid-template-columns:1fr}
  .hero h1{font-size:38px}
}

/* 10b. phone refinements */
@media (max-width:699px){
  .sx-stage{aspect-ratio:auto;height:190px}
  .sx-panel{padding:12px}
  footer .fcols>div:nth-child(2) ul{display:flex;flex-wrap:wrap;gap:10px 22px}
  footer .fcols>div:nth-child(2) li{margin:0}
}

/* 11. Tablets + phones: flat hero card, clean service list, compact stat cards */
@media (max-width:980px){
  .flow,.flow[style]{transform:none!important;animation:none!important}
  .sx-list{order:0;display:flex;flex-direction:column;overflow:visible;gap:0;padding:0;scroll-snap-type:none}
  .sx-item{display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--ln);border-radius:0;padding:14px 2px;background:none!important;color:var(--mut);scroll-snap-align:none}
  .sx-item:first-child{border-top:1px solid var(--ln)}
  .sx-item .no,.sx-item .ar{display:block}
  .sx-item h3{font-size:18px;white-space:normal;font-weight:600;letter-spacing:-.02em;color:inherit}
  .sx-item.on{color:var(--tx)!important;border-color:var(--ln);padding-left:10px}
  .sx-item.on .no{color:var(--lime)}
  .sx-item::after{display:block}
  .sx-more{align-self:flex-start;margin-top:18px}
}
@media (max-width:699px){
  .sx{grid-template-columns:1fr;gap:18px}
  .sx-item{padding:13px 2px}
  .sx-item h3{font-size:17px}
  .sx-more{margin-top:14px}
  .metrics{gap:10px}
  .metric{min-height:0;padding:18px;gap:14px}
  .metric .big{font-size:clamp(34px,10vw,48px)}
  .metric .cap{font-size:11.5px}
  .flowwrap{max-width:100%}
  .flow .bar{padding:10px 14px}
  .log{min-height:0;padding:10px 14px 12px}
}
