/*!
 * AI-SOFT Design System
 * Smart Algorithm (Ai-SOFT), Faisalabad
 *
 * Loaded last on every page (after style.css and page-level <style> blocks).
 *   1. Tokens            5. Homepage sections
 *   2. Base              6. Legacy component harmonisation (inner pages)
 *   3. Primitives        7. Motion
 *   4. Header & footer   8. Responsive
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --as-navy: #083B70;
  --as-navy-800: #06315E;
  --as-navy-900: #052849;
  --as-navy-950: #031B33;
  --as-blue: #398CF0;
  --as-blue-600: #1F6FD1;
  --as-blue-400: #5AA6FF;
  --as-blue-300: #8CC2FF;
  --as-sky: #E5F0FF;
  --as-sky-50: #F0F6FF;
  --as-soft: #F5F8FC;
  --as-white: #FFFFFF;
  --as-text: #172F4B;
  --as-heading: #0B2547;
  --as-muted: #55667F;
  --as-line: #E2E9F3;
  --as-yellow: #FFD76A;
  --as-yellow-600: #F5C443;
  --as-green: #25D366;

  --as-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --as-radius-sm: 10px;
  --as-radius: 16px;
  --as-radius-lg: 22px;
  --as-radius-xl: 32px;

  --as-shadow-sm: 0 2px 8px -2px rgba(8, 59, 112, .08);
  --as-shadow: 0 14px 34px -16px rgba(8, 59, 112, .25);
  --as-shadow-lg: 0 30px 60px -28px rgba(8, 59, 112, .42);

  --as-ease: cubic-bezier(.22, .61, .36, 1);
  --as-header-h: 78px;
  --as-topbar-h: 40px;
  --as-wrap: 1240px;

  --as-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 17C78 6 170 3 296 11' fill='none' stroke='%23FFD76A' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  --as-grid-line: rgba(255, 255, 255, .06);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--as-header-h) + 20px);
}

body,
p {
  font-family: var(--as-font);
}

body {
  color: var(--as-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: 1rem;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--as-font);
  color: var(--as-heading);
  text-transform: none;
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.22; }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); line-height: 1.3; }
h4 { font-size: 1.15rem; line-height: 1.4; }
h5 { font-size: 1.02rem; line-height: 1.45; }

/* In-content links only (header/footer/menus style their own links) */
.body-inner p a:not([class]) {
  color: var(--as-blue-600);
  text-decoration: underline;
  text-decoration-color: rgba(57, 140, 240, .35);
  text-underline-offset: 3px;
}

.body-inner p a:not([class]):hover {
  color: var(--as-navy);
  text-decoration-color: currentColor;
}

.as-footer p a:not([class]),
.as-header p a:not([class]) {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--as-blue);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(57, 140, 240, .6);
  outline-offset: 3px;
}

.body-inner img {
  max-width: 100%;
}

html.as-lock,
html.as-lock body {
  overflow: hidden !important;
}

.as-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.as-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--as-navy);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s;
}

.as-skip:focus {
  transform: none;
  color: #fff;
}

/* ==========================================================================
   3. Primitives
   ========================================================================== */
.as-wrap {
  width: 100%;
  max-width: var(--as-wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.as-section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}

.as-section--soft {
  background: var(--as-soft);
}

.as-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.as-head--left {
  margin-left: 0;
  text-align: left;
}

.as-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--as-sky);
  color: var(--as-blue-600);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.as-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.as-eyebrow--dark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--as-blue-300);
}

.as-title {
  margin: 0 0 18px;
  color: var(--as-heading);
  font-size: clamp(1.9rem, 1.25rem + 2.1vw, 2.85rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.03em;
}

.as-lead {
  margin: 0;
  color: var(--as-muted);
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem);
  line-height: 1.75;
}

.as-mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.as-mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.2em;
  height: .36em;
  z-index: -1;
  background: var(--as-swoosh) no-repeat center / 100% 100%;
  transform-origin: left center;
  animation: as-draw 1s .6s var(--as-ease) both;
}

/* Buttons */
.as-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: .85em 1.55em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--as-font);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--as-ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}

.as-btn i {
  transition: transform .25s var(--as-ease);
}

.as-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

.as-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--as-ease);
}

.as-btn:hover::after {
  transform: translateX(120%);
}

.as-btn--primary {
  background: linear-gradient(135deg, var(--as-blue) 0%, var(--as-blue-600) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(57, 140, 240, .85);
}

.as-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(57, 140, 240, .95);
}

.as-btn--yellow {
  background: var(--as-yellow);
  color: var(--as-navy);
  box-shadow: 0 12px 26px -14px rgba(255, 215, 106, .9);
}

.as-btn--yellow:hover {
  background: #FFE28C;
  color: var(--as-navy);
  transform: translateY(-2px);
}

.as-btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.as-btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--as-navy);
  transform: translateY(-2px);
}

.as-btn--outline {
  background: #fff;
  border-color: var(--as-line);
  color: var(--as-navy);
}

.as-btn--outline:hover {
  border-color: var(--as-blue);
  color: var(--as-blue-600);
  transform: translateY(-2px);
  box-shadow: var(--as-shadow);
}

.as-btn--whatsapp,
.custom-whatsapp-btn {
  background: var(--as-green) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 24px -12px rgba(37, 211, 102, .9);
}

.as-btn--whatsapp:hover,
.custom-whatsapp-btn:hover {
  background: #1EBE5A !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.custom-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  font-family: var(--as-font);
  font-weight: 700;
  text-transform: none;
}

.as-btn--sm {
  min-height: 42px;
  padding: .6em 1.2em;
  font-size: .9rem;
}

/* Glass surface (used selectively) */
.as-glass {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   4a. Header
   ========================================================================== */
.as-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  font-family: var(--as-font);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(8, 59, 112, .08);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: background-color .35s var(--as-ease), box-shadow .35s var(--as-ease);
}

.as-header.is-scrolled {
  box-shadow: 0 12px 30px -20px rgba(8, 59, 112, .45);
}

.as-header--overlay {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.as-header--overlay.is-scrolled,
.as-header--overlay.menu-open {
  background: rgba(5, 40, 73, .82);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.as-header-spacer {
  height: calc(var(--as-header-h) + var(--as-topbar-h));
}

/* Top info strip */
.as-topbar {
  max-height: var(--as-topbar-h);
  overflow: hidden;
  background: var(--as-navy-950);
  color: rgba(229, 240, 255, .78);
  font-size: .82rem;
  transition: max-height .35s var(--as-ease), opacity .3s;
}

.as-header--overlay .as-topbar {
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.as-header.is-scrolled .as-topbar {
  max-height: 0;
  opacity: 0;
}

.as-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--as-topbar-h);
}

.as-topbar p {
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.as-topbar i {
  margin-right: 6px;
  color: var(--as-blue-300);
}

.as-topbar a {
  color: inherit;
}

.as-topbar a:hover {
  color: #fff;
}

.as-topbar__right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
}

.as-topbar__social {
  display: flex;
  gap: 4px;
}

.as-topbar__social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.as-topbar__social a i {
  margin: 0;
  color: inherit;
}

.as-topbar__social a:hover {
  background: rgba(255, 255, 255, .1);
}

/* Main bar */
.as-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--as-header-h);
}

.as-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
  transition: transform .25s var(--as-ease), box-shadow .25s;
}

.as-header--overlay .as-logo {
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}

.as-logo:hover {
  transform: translateY(-1px);
}

.as-logo img {
  display: block;
  width: auto;
  height: 40px;
}

.as-menu {
  margin-left: auto;
}

.as-menu__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--as-heading);
  font-family: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}

.as-menu__link i {
  font-size: .62em;
  opacity: .7;
  transition: transform .25s var(--as-ease);
}

.as-menu__link:hover,
.as-menu__link.is-active,
.as-has-drop.is-open > .as-menu__link {
  background: var(--as-sky-50);
  color: var(--as-blue-600);
}

.as-menu__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.as-header--overlay .as-menu__link {
  color: rgba(255, 255, 255, .9);
}

.as-header--overlay .as-menu__link:hover,
.as-header--overlay .as-menu__link.is-active,
.as-header--overlay .as-has-drop.is-open > .as-menu__link {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Dropdowns */
.as-has-drop {
  position: relative;
}

.as-drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 5;
  min-width: 270px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(8, 59, 112, .45), 0 0 0 1px rgba(8, 59, 112, .06);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .22s, transform .22s var(--as-ease), visibility .22s;
}

.as-drop::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.as-has-drop:focus-within > .as-drop,
.as-has-drop.is-open > .as-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.as-has-drop.is-open > .as-menu__link i {
  transform: rotate(180deg);
}

@media (min-width: 1200px) and (hover: hover) {
  .as-has-drop:hover > .as-drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .as-has-drop:hover > .as-menu__link i {
    transform: rotate(180deg);
  }
}

.as-drop ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-drop a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--as-text);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
}

.as-drop a:hover {
  background: var(--as-sky-50);
  color: var(--as-blue-600);
}

.as-drop a > i {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--as-sky);
  color: var(--as-blue-600);
  font-size: .82rem;
  transition: background-color .2s, color .2s;
}

.as-drop a:hover > i {
  background: var(--as-blue);
  color: #fff;
}

.as-drop--mega {
  min-width: 760px;
  padding: 14px;
}

.as-mega {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
}

.as-mega__col > a.as-mega__head {
  margin-bottom: 2px;
  color: var(--as-heading);
  font-weight: 700;
}

.as-mega__col ul a {
  padding: 7px 12px 7px 56px;
  color: var(--as-muted);
  font-size: .88rem;
}

.as-mega__foot {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--as-line);
}

.as-mega__foot a {
  flex: 1 1 220px;
}

/* Actions */
.as-nav__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.as-nav__cta {
  min-height: 44px;
  padding: .6em 1.15em;
  font-size: .9rem;
}

.as-nav__cta i {
  font-size: 1.15rem;
}

.as-burger {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--as-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.as-burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--as-heading);
  transition: transform .3s var(--as-ease), opacity .2s, top .3s var(--as-ease);
}

.as-burger span:nth-child(1) { top: 15px; }
.as-burger span:nth-child(2) { top: 21px; }
.as-burger span:nth-child(3) { top: 27px; }

.as-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.as-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.as-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.as-header--overlay .as-burger {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}

.as-header--overlay .as-burger span {
  background: #fff;
}

.as-menu__extra {
  display: none;
}

/* ==========================================================================
   4b. Footer
   ========================================================================== */
.as-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0 0;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(57, 140, 240, .28), transparent 60%),
    radial-gradient(700px 360px at 100% 110%, rgba(57, 140, 240, .16), transparent 60%),
    linear-gradient(180deg, var(--as-navy-900) 0%, var(--as-navy-950) 100%);
  color: rgba(229, 240, 255, .74);
  font-size: .95rem;
  isolation: isolate;
}

.as-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--as-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--as-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.as-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.05fr;
  gap: 44px;
}

.as-footer__logo {
  display: inline-block;
  margin-bottom: 18px;
}

.as-footer__logo img {
  display: block;
  width: 190px;
  height: auto;
}

.as-footer__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.as-footer p {
  margin: 0 0 14px;
  color: rgba(229, 240, 255, .74);
  font-size: .95rem;
  line-height: 1.75;
}

.as-footer__links {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(229, 240, 255, .8);
  transition: color .2s, transform .25s var(--as-ease);
}

.as-footer__links a i {
  color: var(--as-blue-300);
  font-size: .72rem;
}

.as-footer__links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.as-footer__contact a,
.as-footer__contact span {
  align-items: flex-start;
  line-height: 1.5;
}

.as-footer__contact a i,
.as-footer__contact span i {
  width: 16px;
  margin-top: 4px;
  font-size: .9rem;
}

.as-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.as-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: transform .25s var(--as-ease), background-color .25s, border-color .25s;
}

.as-social a:hover {
  border-color: var(--as-blue);
  background: var(--as-blue);
  color: #fff;
  transform: translateY(-3px);
}

.as-hours {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.as-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
  font-size: .92rem;
}

.as-hours li span:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.as-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 56px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
}

.as-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-footer__bottom a {
  color: rgba(229, 240, 255, .78);
}

.as-footer__bottom a:hover {
  color: #fff;
}

/* Back to top (driven by js/script.js) */
#back-to-top {
  right: 22px;
  bottom: 22px;
  z-index: 1020;
}

/* Pages with their own floating WhatsApp button: keep the two from stacking */
body:has(.whatsapp-float) #back-to-top {
  bottom: 100px;
}

#back-to-top .btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--as-blue), var(--as-blue-600));
  box-shadow: 0 14px 28px -12px rgba(57, 140, 240, .9);
  color: #fff;
  font-size: 1.1rem;
}

#back-to-top .btn:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   5. Homepage
   ========================================================================== */

/* --- Hero --- */
.as-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--as-header-h) + var(--as-topbar-h) + 64px) 0 150px;
  background:
    radial-gradient(900px 620px at 88% 18%, rgba(57, 140, 240, .38), transparent 62%),
    radial-gradient(720px 520px at -5% 105%, rgba(57, 140, 240, .24), transparent 60%),
    linear-gradient(160deg, #03224A 0%, var(--as-navy) 52%, #0B4C92 100%);
  color: #fff;
  isolation: isolate;
}

.as-hero__gridbg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 25%, transparent 78%);
  animation: as-grid 26s linear infinite;
}

.as-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  animation: as-drift 16s ease-in-out infinite;
}

.as-orb--1 { top: -140px; right: -90px; width: 440px; height: 440px; background: #398CF0; }
.as-orb--2 { bottom: -120px; left: -120px; width: 340px; height: 340px; background: #1F6FD1; animation-delay: -6s; }
.as-orb--3 { top: 46%; left: 42%; width: 200px; height: 200px; background: var(--as-yellow); opacity: .14; animation-delay: -11s; }

.as-hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 48px;
}

.as-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92);
  font-size: .88rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.as-hero__badge b {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--as-yellow);
  color: var(--as-navy);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-hero h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.3rem, 1.35rem + 3.1vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.as-hero__text {
  max-width: 560px;
  margin: 0 0 36px;
  color: rgba(229, 240, 255, .84);
  font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  line-height: 1.75;
}

.as-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.as-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.as-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  font-weight: 500;
}

.as-hero__chips i {
  color: var(--as-blue-300);
}

.as-hero__visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
}

.as-hero__parallax {
  position: relative;
  width: 100%;
  will-change: transform;
}

.as-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 520 / 440;
}

.as-hero-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.as-trace-flow {
  stroke-dasharray: 16 240;
  animation: as-flow 3.8s linear infinite;
}

.as-trace-flow:nth-child(2n) { animation-delay: -1.3s; }
.as-trace-flow:nth-child(3n) { animation-delay: -2.5s; }

.as-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: as-pulse 2.8s ease-in-out infinite;
}

.as-node:nth-of-type(2n) { animation-delay: -1.2s; }

.as-chip-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: as-breathe 4.5s ease-in-out infinite;
}

.as-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: as-spin 60s linear infinite;
}

.as-node-bubble {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 16px;
  color: #fff;
  font-size: 1.2rem;
  animation: as-bob 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.as-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 14px 18px 14px 14px;
  color: #fff;
  animation: as-bob 7s ease-in-out infinite;
}

.as-float-card__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--as-blue-400), var(--as-blue-600));
  box-shadow: 0 10px 20px -8px rgba(57, 140, 240, .9);
  font-size: 1.05rem;
}

.as-float-card strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
}

.as-float-card div > span {
  display: block;
  margin-top: 3px;
  color: rgba(229, 240, 255, .78);
  font-size: .78rem;
  line-height: 1.35;
}

.as-float-card--a { top: 37%; left: -12%; }
.as-float-card--b { bottom: -3%; left: 22%; animation-delay: -3.5s; }

.as-float-card--b .as-float-card__icon {
  background: linear-gradient(135deg, #FFE69E, var(--as-yellow-600));
  box-shadow: 0 10px 20px -8px rgba(245, 196, 67, .8);
  color: var(--as-navy);
}

.as-hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
}

/* Hero entrance (runs without JS too) */
[data-enter] {
  animation: as-enter .9s var(--as-ease) both;
  animation-delay: var(--d, 0s);
}

/* --- Ask bar --- */
.as-askbar {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}

.as-askbar__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 22px 26px;
  border: 1px solid var(--as-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--as-shadow-lg);
}

.as-askbar__text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.as-askbar__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--as-sky);
  color: var(--as-blue-600);
  font-size: 1.3rem;
}

.as-askbar__title {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  font-weight: 800;
}

.as-askbar__sub {
  margin: 2px 0 0;
  color: var(--as-muted);
  font-size: .93rem;
}

/* --- About --- */
.as-about__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.as-about__media {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  isolation: isolate;
}

.as-about__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--as-sky);
  box-shadow: var(--as-shadow-lg);
}

.as-about__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-about__shape {
  position: absolute;
  right: -26px;
  bottom: -26px;
  z-index: -1;
  width: 72%;
  height: 72%;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--as-blue), var(--as-navy));
}

.as-about__dots {
  position: absolute;
  top: -26px;
  left: -26px;
  z-index: -1;
  width: 130px;
  height: 130px;
  background-image: radial-gradient(var(--as-blue) 2px, transparent 2.5px);
  background-size: 16px 16px;
  opacity: .45;
}

.as-about__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 13px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--as-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: as-bob 7s ease-in-out infinite;
}

.as-about__card--name { left: -34px; bottom: 44px; }
.as-about__card--stat { top: 40px; right: -30px; animation-delay: -3s; }

.as-about__card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--as-blue), var(--as-blue-600));
  color: #fff;
}

.as-about__card--stat i {
  background: linear-gradient(135deg, #FFE69E, var(--as-yellow-600));
  color: var(--as-navy);
}

.as-about__card strong {
  display: block;
  color: var(--as-heading);
  font-size: .98rem;
  line-height: 1.2;
}

.as-about__card span {
  display: block;
  color: var(--as-muted);
  font-size: .8rem;
}

.as-about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.as-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--as-line);
  border-radius: 14px;
  background: var(--as-soft);
  transition: transform .3s var(--as-ease), box-shadow .3s, background-color .3s, border-color .3s;
}

.as-feature:hover {
  border-color: rgba(57, 140, 240, .35);
  background: #fff;
  box-shadow: var(--as-shadow);
  transform: translateY(-3px);
}

.as-feature > i {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--as-sky);
  color: var(--as-blue-600);
}

.as-feature h3 {
  margin: 0;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
}

.as-about p + p {
  margin-top: 14px;
}

.as-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Services --- */
.as-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.as-svc {
  --accent: #398CF0;
  --accent-2: #1F6FD1;
  --accent-soft: rgba(57, 140, 240, .12);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 26px 26px;
  border: 1px solid var(--as-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--as-shadow-sm);
  color: var(--as-text);
  isolation: isolate;
  transition: transform .4s var(--as-ease), box-shadow .4s, border-color .4s;
}

.as-svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px 220px at 100% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}

.as-svc::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--as-ease);
}

.as-svc:hover {
  border-color: transparent;
  box-shadow: 0 30px 54px -26px rgba(8, 59, 112, .4);
  color: var(--as-text);
  transform: translateY(-8px);
}

.as-svc:hover::before { opacity: 1; }
.as-svc:hover::after { transform: scaleX(1); }

.as-svc__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 26px -12px var(--accent);
  color: #fff;
  font-size: 1.35rem;
  transition: transform .45s var(--as-ease);
}

.as-svc:hover .as-svc__icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.05);
}

.as-svc__num {
  position: absolute;
  top: 26px;
  right: 24px;
  color: #C8D5E6;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.as-svc h3 {
  margin: 0 0 10px;
  color: var(--as-heading);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.as-svc p {
  flex-grow: 1;
  margin: 0 0 22px;
  color: var(--as-muted);
  font-size: .93rem;
  line-height: 1.7;
}

.as-svc__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: .9rem;
  font-weight: 700;
}

.as-svc__more i {
  transition: transform .3s var(--as-ease);
}

.as-svc:hover .as-svc__more i {
  transform: translateX(5px);
}

.as-svc--c2 { --accent: #3D7BF7; --accent-2: #2147C9; --accent-soft: rgba(61, 123, 247, .12); }
.as-svc--c3 { --accent: #22A6E0; --accent-2: #0F72B5; --accent-soft: rgba(34, 166, 224, .12); }
.as-svc--c4 { --accent: #5A86F5; --accent-2: #3557C8; --accent-soft: rgba(90, 134, 245, .12); }
.as-svc--c5 { --accent: #14B4D8; --accent-2: #0B6F9E; --accent-soft: rgba(20, 180, 216, .12); }
.as-svc--c6 { --accent: #398CF0; --accent-2: #083B70; --accent-soft: rgba(57, 140, 240, .12); }
.as-svc--c7 { --accent: #4C9BFF; --accent-2: #2A5DB0; --accent-soft: rgba(76, 155, 255, .12); }

.as-svc--cta {
  justify-content: space-between;
  border-color: transparent;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(57, 140, 240, .55), transparent 70%),
    linear-gradient(150deg, var(--as-navy) 0%, #0D4C93 100%);
  color: #fff;
}

.as-svc--cta:hover {
  color: #fff;
}

.as-svc--cta h3 {
  color: #fff;
  font-size: 1.3rem;
}

.as-svc--cta p {
  color: rgba(229, 240, 255, .8);
}

.as-svc--cta .as-svc__icon {
  background: var(--as-yellow);
  box-shadow: 0 14px 26px -12px rgba(255, 215, 106, .8);
  color: var(--as-navy);
}

.as-svc--cta .as-svc__more {
  color: var(--as-yellow);
}

/* --- Technology & stats (dark) --- */
.as-tech {
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 12% 0%, rgba(57, 140, 240, .3), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(57, 140, 240, .18), transparent 60%),
    linear-gradient(180deg, var(--as-navy) 0%, var(--as-navy-900) 100%);
  color: #fff;
  isolation: isolate;
}

.as-tech::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--as-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--as-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.as-tech .as-title { color: #fff; }
.as-tech .as-lead { color: rgba(229, 240, 255, .76); }

.as-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 clamp(64px, 8vw, 96px);
  padding: 0;
  list-style: none;
}

.as-stat {
  padding: 26px 24px;
  transition: transform .35s var(--as-ease), background-color .35s;
}

.as-stat:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-4px);
}

.as-stat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(57, 140, 240, .25);
  color: var(--as-blue-300);
}

.as-stat__num {
  display: block;
  color: #fff;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.as-stat__label {
  display: block;
  margin-top: 10px;
  color: rgba(229, 240, 255, .76);
  font-size: .95rem;
  font-weight: 600;
}

.as-tech__layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.as-tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-techbadge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
  transition: transform .3s var(--as-ease), background-color .3s, border-color .3s;
}

.as-techbadge:hover {
  border-color: rgba(140, 194, 255, .5);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}

.as-techbadge i {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(57, 140, 240, .24);
  color: var(--as-blue-300);
  font-size: 1rem;
  font-style: normal;
}

.as-techbadge .as-glyph {
  font-family: var(--as-font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* --- Projects --- */
.as-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.as-proj {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--as-shadow-sm);
  transition: transform .4s var(--as-ease), box-shadow .4s, border-color .4s;
}

.as-proj:hover {
  border-color: transparent;
  box-shadow: var(--as-shadow-lg);
  transform: translateY(-6px);
}

.as-proj__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--as-navy);
}

.as-proj__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--as-ease);
}

.as-proj:hover .as-proj__media img {
  transform: scale(1.08);
}

.as-proj__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 27, 51, 0) 40%, rgba(3, 27, 51, .55) 100%);
  transition: opacity .4s;
}

.as-proj__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1.05rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--as-ease), background-color .3s, color .3s;
}

.as-proj__play i {
  margin-left: 3px;
}

.as-proj:hover .as-proj__play {
  background: #fff;
  color: #E53935;
  transform: scale(1.1);
}

.as-proj__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(3, 27, 51, .6);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.as-proj__badge i {
  color: #FF5A5A;
}

.as-proj__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.as-proj__title {
  margin: 0 0 14px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
}

.as-proj__title a {
  color: var(--as-heading);
}

.as-proj__title a:hover {
  color: var(--as-blue-600);
}

.as-proj__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--as-line);
  color: var(--as-muted);
  font-size: .8rem;
}

.as-proj__meta i {
  margin-right: 5px;
}

.as-proj__meta a {
  color: var(--as-blue-600);
  font-weight: 700;
}

.as-projects__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

/* --- Values --- */
.as-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.as-values__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px 8px 0;
}

.as-values__intro .as-title {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
}

.as-value {
  position: relative;
  overflow: hidden;
  padding: 30px 28px;
  border: 1px solid var(--as-line);
  border-radius: 22px;
  background: #fff;
  transition: transform .4s var(--as-ease), box-shadow .4s, border-color .4s;
}

.as-value:hover {
  border-color: transparent;
  box-shadow: var(--as-shadow-lg);
  transform: translateY(-6px);
}

.as-value__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--as-sky);
  color: var(--as-blue-600);
  font-size: 1.25rem;
  transition: background-color .3s, color .3s, transform .4s var(--as-ease);
}

.as-value:hover .as-value__icon {
  background: var(--as-blue);
  color: #fff;
  transform: rotate(-6deg);
}

.as-value__num {
  position: absolute;
  top: 16px;
  right: 22px;
  color: var(--as-sky);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.as-value h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.as-value p {
  margin: 0;
  color: var(--as-muted);
  font-size: .94rem;
  line-height: 1.7;
}

/* --- Contact CTA --- */
.as-cta__box {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px 56px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--as-radius-xl);
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(57, 140, 240, .55), transparent 62%),
    radial-gradient(520px 300px at 0% 100%, rgba(255, 215, 106, .14), transparent 60%),
    linear-gradient(135deg, var(--as-navy-900) 0%, var(--as-navy) 58%, #0F56A6 100%);
  box-shadow: var(--as-shadow-lg);
  color: #fff;
  isolation: isolate;
}

.as-cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--as-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--as-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%);
}

.as-cta .as-title {
  color: #fff;
}

.as-cta__text {
  margin: 0;
  color: rgba(229, 240, 255, .82);
  font-size: 1.06rem;
}

.as-cta__text strong {
  color: #fff;
}

.as-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.as-contact-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.as-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #fff;
  transition: background-color .25s;
}

a.as-contact-item:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.as-contact-item > i {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(57, 140, 240, .26);
  color: var(--as-blue-300);
}

.as-contact-item small {
  display: block;
  color: rgba(229, 240, 255, .62);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.as-contact-item span {
  display: block;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.as-newsletter {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.as-newsletter__help {
  display: flex;
  align-items: center;
  gap: 14px;
}

.as-newsletter__help i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--as-yellow);
  color: var(--as-navy);
}

.as-newsletter h3,
.as-newsletter h4 {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
}

.as-newsletter p {
  margin: 0;
  color: rgba(229, 240, 255, .7);
  font-size: .88rem;
}

.as-newsletter__help a {
  color: var(--as-yellow);
  font-size: 1.15rem;
  font-weight: 800;
}

.as-newsletter__help a:hover {
  color: #fff;
}

.as-newsletter__form {
  display: flex;
  flex: 0 1 460px;
  align-items: center;
  gap: 16px;
}

.as-newsletter__form form {
  flex: 1;
  margin: 0;
}

.as-newsletter__form input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--as-font);
  font-size: .95rem;
}

.as-newsletter__form input::placeholder {
  color: rgba(229, 240, 255, .55);
}

.as-newsletter__form input:focus {
  border-color: var(--as-blue-300);
  outline: none;
  box-shadow: 0 0 0 4px rgba(140, 194, 255, .2);
}

/* ==========================================================================
   6. Legacy component harmonisation (inner pages)
   ========================================================================== */

/* Page banner */
.banner-area {
  min-height: 280px;
  overflow: hidden;
  background-color: var(--as-navy);
  isolation: isolate;
}

.banner-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(620px 320px at 85% 0%, rgba(57, 140, 240, .45), transparent 62%),
    linear-gradient(115deg, rgba(3, 27, 51, .95) 0%, rgba(8, 59, 112, .88) 55%, rgba(31, 111, 209, .74) 100%);
}

.banner-area::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--as-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--as-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 70%);
}

.banner-area:has(.banner-title:empty) {
  min-height: 150px;
}

.banner-area .banner-text {
  z-index: 2;
  padding: 0 15px;
}

.banner-title {
  font-family: var(--as-font);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: none;
}

.banner-area .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: .86rem;
  font-weight: 600;
  text-transform: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.banner-area .breadcrumb:empty {
  display: none;
}

/* Light breadcrumb strips used on blog pages */
.breadcrumb-area {
  background: var(--as-soft) !important;
  border-bottom: 1px solid var(--as-line) !important;
}

.breadcrumb-area .breadcrumb {
  font-weight: 600;
  text-transform: none;
  font-size: .88rem;
}

.breadcrumb-area .breadcrumb li a {
  color: var(--as-blue-600) !important;
}

.breadcrumb-area .breadcrumb .breadcrumb-item,
.breadcrumb-area .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--as-muted) !important;
}

/* Layout */
.main-container {
  padding: clamp(56px, 7vw, 96px) 0;
}

/* Titles */
.section-title {
  margin: 0 0 14px;
  color: var(--as-heading);
  font-family: var(--as-font);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-transform: none;
}

.section-title:has(+ .section-sub-title),
.into-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--as-sky);
  color: var(--as-blue-600);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-sub-title {
  margin: 0 0 48px;
  color: var(--as-heading);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  text-transform: none;
}

.into-sub-title,
.column-title,
.entry-title,
.box-slide-title {
  font-family: var(--as-font);
  text-transform: none;
  letter-spacing: -.02em;
}

.column-title {
  color: var(--as-heading);
  font-weight: 800;
}

.title-heading {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
  color: var(--as-heading);
  font-weight: 800;
}

.title-heading::before {
  content: "";
  position: absolute;
  top: .2em;
  bottom: .2em;
  left: 0;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--as-blue), var(--as-navy));
}

.lead {
  color: var(--as-muted);
  font-size: 1.12rem;
  font-weight: 400;
}

blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--as-blue);
  border-radius: 0 14px 14px 0;
  background: var(--as-sky-50);
  color: var(--as-heading);
  font-weight: 600;
}

blockquote p {
  margin: 0;
}

/* Bootstrap colour utilities mapped to the brand */
.text-primary { color: var(--as-blue) !important; }
.bg-primary, .badge-primary { background-color: var(--as-blue) !important; }
.border-primary { border-color: var(--as-blue) !important; }

/* Buttons */
.btn {
  font-family: var(--as-font);
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--as-blue), var(--as-blue-600));
  box-shadow: 0 12px 24px -14px rgba(57, 140, 240, .9);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: transform .25s var(--as-ease), box-shadow .25s, background .25s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background: linear-gradient(135deg, var(--as-blue-600), var(--as-navy)) !important;
  box-shadow: 0 16px 30px -14px rgba(8, 59, 112, .8);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary,
.btn-outline-success {
  border: 1.5px solid var(--as-blue);
  border-radius: 999px;
  color: var(--as-blue-600);
  font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
  border-color: var(--as-blue);
  background: var(--as-blue);
  color: #fff;
}

.btn-link {
  color: var(--as-blue-600);
}

/* Cards & boxes */
.body-inner .card {
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 18px;
  box-shadow: var(--as-shadow-sm);
  transition: transform .35s var(--as-ease), box-shadow .35s, border-color .35s;
}

.body-inner .card:hover {
  border-color: rgba(57, 140, 240, .3);
  box-shadow: var(--as-shadow);
  transform: translateY(-5px);
}

.body-inner .accordion .card:hover,
.body-inner .accordion-group .card:hover {
  transform: none;
}

.service-box {
  border: 1px solid var(--as-line);
  border-radius: 18px;
  transition: transform .35s var(--as-ease), box-shadow .35s, border-color .35s, background-color .35s;
}

.service-box.bg-light {
  background-color: var(--as-soft) !important;
}

.service-box:hover {
  border-color: rgba(57, 140, 240, .3);
  background-color: #fff !important;
  box-shadow: var(--as-shadow);
  transform: translateY(-5px);
}

.ts-service-box-bg {
  border-radius: 20px;
  background: linear-gradient(150deg, var(--as-navy), #0D4C93);
}

.ts-service-icon.icon-round i {
  background: linear-gradient(135deg, var(--as-blue), var(--as-blue-600));
}

.ts-service-box-img img {
  border-radius: 14px;
}

.service-box-title a:hover {
  color: var(--as-blue-600);
}

/* Facts */
.dark-bg,
.facts-area {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(57, 140, 240, .32), transparent 60%),
    linear-gradient(135deg, var(--as-navy-900), var(--as-navy));
}

.ts-facts .ts-facts-content .ts-facts-num {
  font-family: var(--as-font);
  font-weight: 800;
  letter-spacing: -.03em;
}

.ts-facts .ts-facts-content .ts-facts-title {
  color: var(--as-blue-300);
  font-weight: 600;
  text-transform: none;
}

/* Team */
.ts-team-wrapper {
  margin: 0 8px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--as-shadow);
}

.ts-team-wrapper .ts-team-content {
  background: linear-gradient(180deg, rgba(3, 27, 51, .55), rgba(3, 27, 51, .92));
}

.ts-team-wrapper .ts-name {
  color: #fff;
}

.ts-team-wrapper .ts-designation {
  color: var(--as-blue-300);
}

.ts-team-content-classic .ts-name {
  color: var(--as-heading);
}

/* Page slider (about page) */
.page-slider .item {
  overflow: hidden;
  border-radius: 22px;
}

.page-slider.small-bg .box-slider-text {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(5, 40, 73, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.page-slider .carousel-control i {
  border-radius: 12px;
  background: rgba(5, 40, 73, .5);
}

/* Accordion */
.accordion-group .card {
  margin-bottom: 12px;
  border: 1px solid var(--as-line) !important;
  border-radius: 14px !important;
}

.accordion-group .card-header .btn {
  color: var(--as-heading);
  font-weight: 700;
  text-transform: none;
}

.accordion-group .card-header .btn::before {
  border-radius: 8px;
  background-color: var(--as-navy);
}

/* Forms */
.form-control {
  height: 50px;
  padding: 10px 16px;
  border: 1.5px solid var(--as-line);
  border-radius: 12px;
  background: #fff;
  color: var(--as-text);
  font-family: var(--as-font);
  font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

.form-control:focus {
  border-color: var(--as-blue);
  box-shadow: 0 0 0 4px rgba(57, 140, 240, .15);
  color: var(--as-text);
}

.form-group label {
  margin-bottom: 8px;
  color: var(--as-heading);
  font-size: .92rem;
  font-weight: 600;
}

/* 404 page */
.error-page .error-code h2,
.error-page .error-code h2 strong {
  background: linear-gradient(135deg, var(--as-navy), var(--as-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lists */
.list-arrow li::before {
  color: var(--as-blue);
}

/* Sidebar */
.sidebar .widget-title {
  border-left-color: var(--as-blue);
  text-transform: none;
}

.sidebar .widget.box,
.sidebar .widget {
  border-radius: 18px;
}

/* Project filter (Shuffle) */
.shuffle-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  border-bottom: 0;
}

.shuffle-btn-group label {
  padding: 10px 20px !important;
  border: 1.5px solid var(--as-line);
  border-radius: 999px;
  background: #fff;
  color: var(--as-text);
  font-size: .9rem;
  font-weight: 600;
  text-transform: none;
}

.shuffle-btn-group label:hover {
  border-color: var(--as-blue);
  color: var(--as-blue-600);
}

.shuffle-btn-group label.active {
  border-color: var(--as-navy);
  background: var(--as-navy);
  color: #fff;
}

/* Latest posts (legacy news cards) */
.latest-post {
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--as-shadow-sm);
  transition: transform .35s var(--as-ease), box-shadow .35s;
}

.latest-post:hover {
  box-shadow: var(--as-shadow);
  transform: translateY(-5px);
}

.latest-post .post-body {
  padding: 18px 20px 20px;
}

.latest-post-media {
  border-radius: 0;
}

.latest-post-media:hover .play-overlay i {
  color: #fff;
}

.post-title a:hover,
.latest-post .post-title a:hover {
  color: var(--as-blue-600);
}

/* Old call-to-action / subscribe blocks */
.call-to-action-box .action-style-box {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--as-navy), var(--as-blue-600));
}

.subscribe {
  background: linear-gradient(135deg, var(--as-navy), var(--as-blue-600));
}

/* ==========================================================================
   6b. Inner-page components introduced by the redesign
   ========================================================================== */
.as-pagehead {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 8vw, 104px);
  background:
    radial-gradient(620px 320px at 85% 0%, rgba(57, 140, 240, .45), transparent 62%),
    linear-gradient(135deg, var(--as-navy-950) 0%, var(--as-navy) 60%, #0F56A6 100%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.as-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--as-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--as-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
}

.as-pagehead h1 {
  margin: 0 auto 14px;
  max-width: 820px;
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem);
}

.as-pagehead p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(229, 240, 255, .82);
  font-size: 1.06rem;
}

.as-pagehead .as-eyebrow {
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, .1);
  color: var(--as-blue-300);
  font-size: .76rem;
}

.as-crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  list-style: none;
  font-size: .86rem;
  font-weight: 600;
}

.as-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(229, 240, 255, .45);
}

.as-crumbs a {
  color: var(--as-blue-300);
}

.as-crumbs a:hover {
  color: #fff;
}

.as-crumbs [aria-current] {
  color: rgba(229, 240, 255, .85);
}

.as-pagebody {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding-top: 0;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.as-panel {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--as-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--as-shadow-lg);
}

.as-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.as-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--as-shadow-sm);
  transition: transform .35s var(--as-ease), box-shadow .35s;
}

.as-info:hover {
  box-shadow: var(--as-shadow);
  transform: translateY(-4px);
}

.as-info > i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--as-blue), var(--as-blue-600));
  color: #fff;
  font-size: 1.2rem;
}

.as-info h2,
.as-info h3,
.as-info h4 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.as-info p {
  margin: 0;
  color: var(--as-muted);
  font-size: .95rem;
}

.as-info a:not(.as-btn) {
  color: var(--as-blue-600);
  font-weight: 600;
}

.as-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #FFF1EE;
  color: #D93F2B !important;
  font-size: .9rem;
  font-weight: 700;
}

.as-link-pill:hover {
  background: #D93F2B;
  color: #fff !important;
}

.as-map {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 40vw, 440px);
  border-radius: 22px;
  box-shadow: var(--as-shadow);
}

.as-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.as-map__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.as-map__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--as-shadow);
  color: var(--as-navy);
  font-size: .88rem;
  font-weight: 700;
  pointer-events: none;
}

.as-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
}

.as-form-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.as-form-grid .as-span-all {
  grid-column: 1 / -1;
}

.as-form .form-control {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--as-line);
  border-radius: 12px;
}

.as-form .form-control:focus {
  border-color: var(--as-blue);
}

.as-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.as-form select.form-control {
  appearance: auto;
}

.as-form .as-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.as-form .as-submit small {
  color: var(--as-muted);
}

.as-split {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  align-items: start;
  gap: 28px;
}

.as-aside {
  position: sticky;
  top: calc(var(--as-header-h) + 24px);
  padding: 30px;
  border-radius: 24px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(57, 140, 240, .5), transparent 65%),
    linear-gradient(150deg, var(--as-navy), #0D4C93);
  color: #fff;
}

.as-aside h2,
.as-aside h3 {
  color: #fff;
  font-size: 1.3rem;
}

.as-aside p {
  color: rgba(229, 240, 255, .8);
}

.as-aside .as-contact-list {
  padding: 0;
  margin: 18px 0 22px;
}

/* Product cards */
.as-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.as-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--as-shadow-sm);
  transition: transform .4s var(--as-ease), box-shadow .4s;
}

.as-product:hover {
  box-shadow: var(--as-shadow-lg);
  transform: translateY(-6px);
}

.as-product__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--as-soft);
}

.as-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--as-ease);
}

.as-product:hover .as-product__media img {
  transform: scale(1.06);
}

.as-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.as-product__body h2 {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.as-product__body h2 a {
  color: var(--as-heading);
}

.as-product__body h2 a:hover {
  color: var(--as-blue-600);
}

.as-product__media {
  display: block;
}

.as-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.as-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1.5px dashed var(--as-line);
  border-radius: 20px;
  color: var(--as-muted);
  text-align: center;
}

.as-empty i {
  display: block;
  margin-bottom: 12px;
  color: var(--as-blue-300);
  font-size: 2rem;
}

/* Project video grid (projects page) */
.as-videogrid .shuffle-item {
  padding: 0 11px 22px;
}

.as-videogrid .shuffle-item > a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--as-navy);
  box-shadow: var(--as-shadow-sm);
  transition: box-shadow .35s, transform .35s var(--as-ease);
}

.as-videogrid .shuffle-item > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--as-ease);
}

.as-videogrid .shuffle-item > a::after {
  content: "\f04b";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: auto;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-family: "Font Awesome 5 Free";
  font-size: 1.05rem;
  font-weight: 900;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--as-ease), background-color .3s, color .3s;
}

.as-videogrid .shuffle-item > a:hover {
  box-shadow: var(--as-shadow-lg);
}

.as-videogrid .shuffle-item > a:hover img {
  transform: scale(1.08);
}

.as-videogrid .shuffle-item > a:hover::after {
  background: #fff;
  color: #E53935;
  transform: scale(1.1);
}

/* Neutral placeholder where a project photo does not exist */
.as-img-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(260px 140px at 80% 10%, rgba(57, 140, 240, .45), transparent 65%),
    linear-gradient(135deg, var(--as-navy), #0F56A6);
  color: rgba(255, 255, 255, .9);
  font-size: 2.6rem;
}

/* Standalone WhatsApp confirmation page */
.as-standalone {
  display: grid;
  min-height: 100vh;
  place-items: center;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(57, 140, 240, .4), transparent 60%),
    linear-gradient(160deg, #03224A, var(--as-navy));
}

.as-standalone__card {
  width: 100%;
  max-width: 460px;
  padding: 40px 32px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
  text-align: center;
}

.as-standalone__card .as-svc__icon {
  margin: 0 auto 20px;
  background: var(--as-green);
  box-shadow: 0 14px 26px -12px rgba(37, 211, 102, .9);
}

.as-standalone__card h1 {
  font-size: 1.5rem;
}

.as-standalone__card p {
  color: var(--as-muted);
}

/* ==========================================================================
   6c. Product detail
   ========================================================================== */
.as-product-detail {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.as-product-detail__media {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: #fff;
}

/* Product photos are small: never upscale them past their natural size */
.as-product-detail__media img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.as-product-detail__info h2 {
  margin: 0 0 12px;
}

.as-product-detail__info .column-title-small {
  margin: 24px 0 12px;
  font-size: 1.1rem;
}

.as-product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ==========================================================================
   6d. Gallery
   ========================================================================== */
.as-pagehead__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--as-yellow);
  font-size: .9rem;
  font-weight: 700;
}

.as-pagehead__jump:hover {
  color: #fff;
}

.as-gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(200px, 21vw, 280px);
  grid-auto-flow: dense;
  gap: 20px;
}

.as-gal__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  background: var(--as-navy);
  box-shadow: var(--as-shadow-sm);
  transition: transform .4s var(--as-ease), box-shadow .4s;
}

/* The latest photo leads the grid */
.as-gal__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.as-gal__item:hover {
  box-shadow: var(--as-shadow-lg);
  transform: translateY(-6px);
}

.as-gal__link {
  position: absolute;
  inset: 0;
  display: block;
}

.as-gal__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--as-ease);
}

.as-gal__item:hover .as-gal__link img {
  transform: scale(1.07);
}

.as-gal__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 27, 51, 0) 38%, rgba(3, 27, 51, .88) 100%);
}

.as-gal__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 13px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  opacity: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: scale(.85);
  transition: opacity .3s, transform .3s var(--as-ease);
}

.as-gal__item:hover .as-gal__zoom,
.as-gal__link:focus-visible .as-gal__zoom {
  opacity: 1;
  transform: none;
}

.as-gal__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 20px;
  color: #fff;
  pointer-events: none;
}

.as-gal__caption h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.as-gal__item:first-child .as-gal__caption h3 {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
}

.as-gal__caption p {
  margin: 6px 0 0;
  color: rgba(229, 240, 255, .85);
  font-size: .86rem;
  line-height: 1.5;
}

.as-gal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--as-yellow);
  color: var(--as-navy);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Stays centred with one or two videos */
.as-gal-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 22px;
}

/* Video cards reuse .as-proj; the thumbnail is a real button here */
button.as-proj__media {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.as-proj__desc {
  margin: -6px 0 14px;
  color: var(--as-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* Survey report */
.as-report {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--as-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--as-shadow);
}

.as-report p {
  color: var(--as-muted);
}

.as-report p strong {
  color: var(--as-heading);
}

.as-report__cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.as-report__col {
  padding: 22px 22px 16px;
  border-radius: 18px;
  background: var(--as-soft);
}

.as-report__col--rank {
  background: linear-gradient(150deg, var(--as-navy), #0D4C93);
}

.as-report__col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.as-report__col--rank h3 {
  color: #fff;
}

.as-report__col ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: as-rank;
}

.as-report__col li {
  position: relative;
  padding: 6px 0 6px 34px;
  color: var(--as-text);
  font-size: .93rem;
  line-height: 1.4;
  counter-increment: as-rank;
}

.as-report__col li::before {
  content: counter(as-rank);
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--as-sky);
  color: var(--as-blue-600);
  font-size: .74rem;
  font-weight: 800;
}

.as-report__col--rank li {
  color: #fff;
}

.as-report__col--rank li strong {
  color: var(--as-yellow);
}

.as-report__col--rank li::before {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.as-report__col--rank li:first-child::before {
  background: var(--as-yellow);
  color: var(--as-navy);
}

.as-report__col a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(57, 140, 240, .4);
  text-underline-offset: 3px;
}

.as-report__highlight {
  margin: 0 0 22px;
  padding: 20px 22px;
  border-left: 4px solid var(--as-blue);
  border-radius: 0 14px 14px 0;
  background: var(--as-sky-50);
  color: var(--as-heading);
  line-height: 1.7;
}

.as-report__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--as-line);
  list-style: none;
  color: var(--as-muted);
  font-size: .88rem;
}

.as-report__meta i {
  margin-right: 6px;
  color: var(--as-blue);
}

.as-report__meta a {
  color: var(--as-blue-600);
  font-weight: 700;
}

/* Video popup */
.as-vmodal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 27, 51, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: as-fade .25s ease both;
}

.as-vmodal[hidden] {
  display: none;
}

.as-vmodal__box {
  position: relative;
  width: 100%;
  max-width: 980px;
}

.as-vmodal__frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.as-vmodal__frame iframe,
.as-vmodal__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.as-vmodal__close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.as-vmodal__close:hover {
  background: #fff;
  color: var(--as-navy);
}

/* Colorbox lightbox, brand-matched */
#cboxOverlay {
  background: var(--as-navy-950);
}

#cboxContent {
  background: #fff;
}

#cboxTitle,
#cboxCurrent {
  color: var(--as-text);
  font-family: var(--as-font);
  font-size: .85rem;
}

/* ==========================================================================
   6e. Blog
   ========================================================================== */
.blog-card-wrapper {
  height: 100%;
  padding: 11px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--as-shadow-sm);
  transition: transform .4s var(--as-ease), box-shadow .4s, border-color .4s;
}

.blog-card:hover {
  border-color: transparent;
  box-shadow: var(--as-shadow-lg);
  transform: translateY(-6px);
}

.blog-card-img-wrapper {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--as-sky);
}

.blog-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--as-ease);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.07);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.blog-card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.blog-card-title a {
  color: var(--as-heading);
}

.blog-card-title a:hover {
  color: var(--as-blue-600);
}

.blog-card-desc {
  flex: 1;
  margin: 0 0 16px;
  color: var(--as-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.blog-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--as-line);
}

.blog-date {
  color: var(--as-muted);
  font-size: .82rem;
}

.blog-date i {
  margin-right: 5px;
  color: var(--as-blue);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--as-blue-600);
  font-size: .88rem;
  font-weight: 700;
}

.btn-read-more i {
  transition: transform .3s var(--as-ease);
}

.blog-card:hover .btn-read-more i {
  transform: translateX(4px);
}

/* The newest article spans the row on larger screens */
@media (min-width: 992px) {
  .blog-card--featured {
    flex-direction: row;
  }

  .blog-card--featured .blog-card-img-wrapper {
    flex: 0 0 56%;
    aspect-ratio: auto;
    min-height: 340px;
  }

  .blog-card--featured .blog-card-body {
    justify-content: center;
    padding: 36px 38px;
  }

  .blog-card--featured .blog-card-title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
    letter-spacing: -.02em;
  }

  .blog-card--featured .blog-card-desc {
    flex: 0 1 auto;
    font-size: 1rem;
  }
}

/* Article header (partials/blog_article_head.html) */
.as-articlehead {
  padding-bottom: clamp(104px, 11vw, 140px);
}

.as-articlehead h1 {
  max-width: 920px;
  font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.85rem);
  line-height: 1.16;
}

.as-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(229, 240, 255, .85);
  font-size: .9rem;
  font-weight: 500;
}

.as-article-meta i {
  margin-right: 6px;
  color: var(--as-blue-300);
}

/* Article body card: overlaps the header, same on every post */
section.blog-detail-section {
  padding: 0 0 clamp(64px, 8vw, 96px);
  background: transparent;
}

.blog-detail-container,
.blog-wrapper > .as-article-card,
.as-article-card {
  position: relative;
  z-index: 2;
  margin: -72px auto 0;
  border: 1px solid var(--as-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--as-shadow-lg);
}

.blog-detail-container:hover {
  box-shadow: var(--as-shadow-lg);
}

.blog-detail-container > img:first-of-type,
.as-article-feature {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  margin: 0 0 30px;
  border: 0;
  border-radius: 16px;
  object-fit: cover;
}

.blog-detail-container > img:first-of-type:hover {
  transform: none;
}

.blog-detail-container h2 {
  scroll-margin-top: calc(var(--as-header-h) + 24px);
}

/* Reading progress bar (created by js/aisoft-theme.js on articles) */
.as-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--as-blue), var(--as-yellow));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* End of article (partials/blog_article_end.html) */
.as-article-end {
  margin-top: 40px;
  padding: 24px;
  border-radius: 18px;
  background: var(--as-soft);
}

.as-article-end__author {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.as-article-end__author > i {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--as-blue), var(--as-blue-600));
  color: #fff;
}

.as-article-end__author strong {
  display: block;
  color: var(--as-heading);
  font-size: 1rem;
}

.as-article-end .as-article-end__author p {
  margin: 4px 0 0;
  color: var(--as-muted);
  font-size: .93rem;
  line-height: 1.6;
}

.as-article-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Long-form articles with their own inner layout */
.as-article-wrap {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.as-article-wrap .as-article-card {
  max-width: var(--as-wrap);
  padding: clamp(22px, 3.5vw, 44px);
}

.as-article-wrap--narrow .as-article-card {
  max-width: 980px;
}

/* Recoloured elements from the long-form posts that need light text on blue */
.as-article-card .badge-framework,
.as-article-card .project-count,
.as-article-card .section-tag i {
  color: #fff;
}

.as-article-card .stats-bar {
  gap: 1rem 2.5rem;
  border-radius: 20px;
}

.as-article-card .stats-bar .stat-item strong {
  white-space: nowrap;
}

/* ==========================================================================
   7. Motion
   ========================================================================== */
@keyframes as-enter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes as-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes as-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes as-grid {
  to { background-position: 56px 56px, 56px 56px; }
}

@keyframes as-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

@keyframes as-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes as-flow {
  to { stroke-dashoffset: -256; }
}

@keyframes as-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes as-breathe {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}

@keyframes as-spin {
  to { transform: rotate(360deg); }
}

/* Scroll reveal: content is only hidden when JS is running (html.as-js) */
.as-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--as-ease), transform .8s var(--as-ease);
  transition-delay: var(--d, 0s);
}

.as-js [data-reveal="left"] { transform: translateX(-32px); }
.as-js [data-reveal="right"] { transform: translateX(32px); }
.as-js [data-reveal="zoom"] { transform: scale(.96); }

.as-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1365.98px) {
  .as-menu__link {
    padding: 10px 9px;
    font-size: .9rem;
  }

  .as-nav__cta .as-nav__cta-long {
    display: none;
  }
}

@media (min-width: 1366px) {
  .as-nav__cta .as-nav__cta-short {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  :root {
    --as-header-h: 70px;
  }

  .as-topbar {
    display: none;
  }

  .as-header-spacer {
    height: var(--as-header-h);
  }

  .as-hero {
    padding-top: calc(var(--as-header-h) + 56px);
  }

  .as-burger {
    display: inline-block;
  }

  .as-logo img {
    height: 36px;
  }

  .as-nav__cta .as-nav__cta-long {
    display: none;
  }

  /* Off-canvas menu: absolute to the fixed header (backdrop-filter makes the
     header the containing block for fixed children). */
  .as-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--as-header-h));
    height: calc(100dvh - var(--as-header-h));
    margin: 0;
    padding: 12px 20px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: inset 0 1px 0 var(--as-line);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .4s var(--as-ease), visibility .4s;
  }

  .as-menu.is-open {
    visibility: visible;
    transform: none;
  }

  .as-menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .as-menu__list > li {
    border-bottom: 1px solid var(--as-line);
  }

  .as-menu__link,
  .as-header--overlay .as-menu__link {
    justify-content: space-between;
    width: 100%;
    padding: 16px 6px;
    border-radius: 0;
    background: none !important;
    color: var(--as-heading);
    font-size: 1.04rem;
  }

  .as-menu__link.is-active::after {
    display: none;
  }

  .as-menu__link.is-active,
  .as-menu__link:hover,
  .as-has-drop.is-open > .as-menu__link,
  .as-header--overlay .as-menu__link.is-active,
  .as-header--overlay .as-menu__link:hover,
  .as-header--overlay .as-has-drop.is-open > .as-menu__link {
    color: var(--as-blue-600);
  }

  .as-drop,
  .as-drop--mega {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 12px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none !important;
  }

  .as-drop::before {
    display: none;
  }

  .as-has-drop.is-open > .as-drop {
    display: block;
  }

  .as-mega {
    grid-template-columns: 1fr;
  }

  .as-mega__col ul a {
    padding-left: 56px;
  }

  .as-menu__extra {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .as-menu__extra .as-btn {
    width: 100%;
  }

  .as-menu__extra p {
    margin: 6px 0 0;
    color: var(--as-muted);
    font-size: .88rem;
    line-height: 1.6;
  }

  .as-menu__extra .as-social a {
    border-color: var(--as-line);
    background: var(--as-soft);
    color: var(--as-navy);
  }

  .as-hero__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .as-hero__copy {
    max-width: 720px;
  }

  .as-hero__visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .as-float-card--a {
    left: -4%;
  }

  .as-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-tech__layout {
    grid-template-columns: 1fr;
  }
}

/* No-JS fallback: show navigation as a normal stacked list */
@media (max-width: 1199.98px) {
  html:not(.as-js) .as-header {
    position: relative;
  }

  html:not(.as-js) .as-header-spacer,
  html:not(.as-js) .as-burger {
    display: none;
  }

  html:not(.as-js) .as-nav__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
  }

  html:not(.as-js) .as-menu {
    position: static;
    height: auto;
    width: 100%;
    visibility: visible;
    transform: none;
  }

  html:not(.as-js) .as-drop {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .as-about__grid,
  .as-cta__box,
  .as-split {
    grid-template-columns: 1fr;
  }

  .as-about__media {
    max-width: 420px;
  }

  .as-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-values__intro {
    grid-column: 1 / -1;
    padding: 0 0 8px;
  }

  .as-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .as-info-grid,
  .as-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-aside {
    position: static;
  }

  .as-product-detail {
    grid-template-columns: 1fr;
  }

  .as-gal {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(180px, 30vw, 260px);
  }

  .as-report__cols {
    grid-template-columns: 1fr 1fr;
  }

  .as-report__col--rank {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .as-hero__inner {
    gap: 44px;
  }

  .as-hero__visual {
    max-width: 460px;
  }

  /* Cards leave the illustration and stack beneath it */
  .as-hero__parallax {
    display: grid;
    gap: 12px;
  }

  .as-float-card {
    position: static;
    max-width: none;
    animation: none;
  }

  .as-tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-askbar__box {
    flex-direction: column;
    align-items: flex-start;
  }

  .as-askbar__box .as-btn {
    width: 100%;
  }

  .as-newsletter__form {
    flex-basis: 100%;
  }

  .as-form-grid,
  .as-form-grid--2 {
    grid-template-columns: 1fr;
  }

  .as-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .as-wrap {
    padding: 0 18px;
  }

  .as-btn {
    white-space: normal;
    text-align: center;
  }

  .as-panel {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .as-gal {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 14px;
  }

  .as-gal__item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  /* No hover on touch: keep the expand hint visible */
  .as-gal__zoom {
    opacity: 1;
    transform: none;
  }

  .as-gal-videos,
  .as-report__cols {
    grid-template-columns: 1fr;
  }

  .as-article-end__actions .as-btn {
    flex: 1 1 100%;
  }

  .as-article-card .project-grid {
    grid-template-columns: 1fr;
  }

  .blog-detail-container,
  .as-article-card {
    margin-top: -56px;
    border-radius: 20px;
  }

  .as-article-feature,
  .blog-detail-container > img:first-of-type {
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .as-head {
    margin-bottom: 40px;
  }

  .as-nav__cta {
    width: 46px;
    min-height: 46px;
    padding: 0;
  }

  .as-nav__cta .as-nav__cta-short {
    display: none;
  }

  .as-logo {
    padding: 5px 8px;
  }

  .as-logo img {
    height: 32px;
  }

  .as-hero {
    padding-bottom: 128px;
  }

  .as-hero__ctas .as-btn {
    flex: 1 1 100%;
  }

  .as-hero__chips {
    margin-top: 30px;
  }

  .as-node-bubble {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-radius: 13px;
    font-size: .95rem;
  }

  .as-float-card {
    padding: 12px 14px 12px 12px;
    gap: 12px;
  }

  .as-float-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: .9rem;
  }

  .as-float-card strong { font-size: .86rem; }
  .as-float-card div > span { font-size: .76rem; }

  .as-about__features {
    grid-template-columns: 1fr;
  }

  .as-about__card--name { left: -10px; bottom: 24px; }
  .as-about__card--stat { right: -10px; top: 24px; }
  .as-about__shape { right: -14px; bottom: -14px; }
  .as-about__dots { top: -14px; left: -14px; }

  .as-services__grid,
  .as-values__grid,
  .as-products {
    grid-template-columns: 1fr;
  }

  .as-stats {
    gap: 12px;
  }

  .as-stat {
    padding: 20px 18px;
  }

  .as-tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .as-techbadge {
    padding: 10px 12px;
    font-size: .85rem;
  }

  /* Projects become a swipeable row on phones */
  .as-projects__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin: 0 -18px;
    padding: 4px 18px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .as-projects__grid::-webkit-scrollbar {
    display: none;
  }

  .as-proj {
    scroll-snap-align: start;
  }

  .as-projects__actions .as-btn,
  .as-cta__btns .as-btn,
  .as-about__actions .as-btn {
    flex: 1 1 100%;
  }

  .as-cta__box {
    border-radius: 24px;
  }

  .as-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .as-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-area {
    min-height: 220px;
  }
}

@media (max-width: 374.98px) {
  .as-hero h1 {
    font-size: 2.05rem;
  }

  .as-stats {
    grid-template-columns: 1fr 1fr;
  }

  .as-stat__num {
    font-size: 1.8rem;
  }

  .as-tech__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Reduced motion: keep everything visible and still */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }

  .as-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
