/* ================================================================
   ARMADALE TEMPLATE — Warm & Refined
   NDIS Elevated palette · Inter + Outfit · Soft curves
   Indigo primary · Warm amber accent
   ================================================================ */

:root {
  --am-primary: #4f46e5;
  --am-primary-light: #818cf8;
  --am-primary-dark: #3730a3;
  --am-primary-rgb: 79, 70, 229;
  --am-accent: #f59e0b;
  --am-accent-light: #fbbf24;
  --am-accent-dark: #d97706;
  --am-heading: #1e1b4b;
  --am-text: #374151;
  --am-muted: #6b7280;
  --am-bg: #ffffff;
  --am-bg-warm: #fefbf6;
  --am-bg-cool: #f5f3ff;
  --am-bg-slate: #f9fafb;
  --am-dark: #1e1b4b;
  --am-darker: #0f0b2e;
  --am-border: #e5e7eb;
  --am-shadow-sm: 0 1px 3px rgba(79,70,229,.06);
  --am-shadow-md: 0 8px 25px rgba(79,70,229,.1);
  --am-shadow-lg: 0 20px 50px rgba(79,70,229,.14);
  --am-shadow-xl: 0 25px 60px rgba(79,70,229,.18);
  --am-radius: 16px;
  --am-radius-lg: 24px;
  --am-radius-xl: 32px;
  --am-transition: all .3s cubic-bezier(.4,0,.2,1);
  --am-font-heading: 'Outfit', -apple-system, sans-serif;
  --am-font-body: 'Inter', -apple-system, sans-serif;
}

/* — Reset & Base — */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; } /* 18px root — all rem values scale from 18px */
body {
  font-family: var(--am-font-body); color: var(--am-text);
  line-height: 1.75; font-size: 1rem; margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--am-font-heading); color: var(--am-heading);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.85rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
a { color: var(--am-primary); text-decoration: none; transition: var(--am-transition); }
a:hover { color: var(--am-primary-dark); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.am-section { padding: 6rem 0; }
.am-section-sm { padding: 4rem 0; }

/* — Labels & Headings — */
.am-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--am-primary);
  background: var(--am-bg-cool); padding: .5rem 1.1rem; border-radius: 50px;
  margin-bottom: .75rem;
}
.am-label i { font-size: .75rem; }
.am-label-light { background: rgba(255,255,255,.1); color: #c7d2fe; border: 1px solid rgba(255,255,255,.1); }
.am-section-sub {
  color: var(--am-muted); max-width: 620px; font-size: 1.15rem; line-height: 1.8;
  letter-spacing: .01em;
}

/* — Wave Section Dividers — */
.am-divider {
  position: relative; overflow: hidden; line-height: 0; margin-top: -1px;
}
.am-divider svg { display: block; width: 100%; height: 60px; }
.am-divider-flip { transform: rotate(180deg); }
@media (max-width: 640px) { .am-divider svg { height: 35px; } }

/* — Top Ribbon — */
.am-ribbon {
  background: var(--am-dark);
  padding: 10px 0;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.am-ribbon .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.am-ribbon-links { display: flex; gap: 1.5rem; align-items: center; }
.am-ribbon-links a, .am-ribbon-links span {
  color: rgba(255,255,255,.7); font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem; transition: var(--am-transition);
}
.am-ribbon-links a:hover { color: #fff; }
.am-ribbon-links i { color: var(--am-accent-light); font-size: .78rem; }
.am-ribbon-right { display: flex; align-items: center; gap: 1.25rem; }
.am-ndis {
  color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .35rem;
}
.am-ndis i { color: var(--am-accent); }
.am-social { display: flex; gap: .35rem; }
.am-social a {
  color: rgba(255,255,255,.5); font-size: .85rem;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: var(--am-transition); position: relative; overflow: hidden;
}
.am-social a i { position: relative; z-index: 1; }
.am-social a::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  transform: scale(0); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.am-social a:hover { color: #fff; }
.am-social a:hover::before { transform: scale(1); }
.am-social a:nth-child(1):hover::before { background: #1877F2; }
.am-social a:nth-child(2):hover::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.am-social a:nth-child(3):hover::before { background: #0A66C2; }

/* — Navbar — */
.am-nav {
  position: sticky; top: 0; z-index: 1040;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: box-shadow .3s;
}
.am-nav.scrolled { box-shadow: var(--am-shadow-md); }
.am-nav .container { display: flex; justify-content: space-between; align-items: center; }
.am-logo {
  font-family: var(--am-font-heading); font-weight: 800; font-size: 1.4rem;
  color: var(--am-heading); letter-spacing: -.02em;
  display: flex; align-items: center; gap: .5rem;
}
.am-logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--am-primary), var(--am-accent));
}
.am-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.am-menu a {
  padding: .5rem 1rem; font-size: 1rem; font-weight: 500;
  color: var(--am-text); border-radius: 10px; transition: var(--am-transition);
  position: relative;
}
.am-menu a::after {
  content: ''; position: absolute; bottom: 2px; left: 1rem; right: 1rem;
  height: 2px; background: var(--am-primary); border-radius: 2px;
  transform: scaleX(0); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.am-menu a:hover::after, .am-menu a.active::after { transform: scaleX(1); }
.am-menu a:hover, .am-menu a.active { color: var(--am-primary); background: var(--am-bg-cool); }
.am-menu-cta {
  background: var(--am-primary) !important; color: #fff !important;
  padding: .55rem 1.25rem !important; border-radius: 50px !important;
  font-weight: 600 !important; font-size: .95rem !important;
}
.am-menu-cta:hover { background: var(--am-primary-dark) !important; color: #fff !important; transform: translateY(-1px); }
.am-hamburger {
  display: none; background: none; border: none; font-size: 1.5rem;
  color: var(--am-heading); cursor: pointer; padding: .25rem;
}

/* — Services Dropdown / Mega Menu — */
.am-dropdown {
  position: relative;
}
.am-mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  width: 680px; background: #fff; border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow-xl); border: 1px solid var(--am-border);
  padding: 1.5rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .25s ease; z-index: 1050;
}
.am-dropdown:hover .am-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.am-mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.am-mega-link {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem; border-radius: 12px; transition: var(--am-transition);
  color: var(--am-text);
}
.am-mega-link:hover { background: var(--am-bg-cool); color: var(--am-primary); }
.am-mega-link i { font-size: 1.2rem; color: var(--am-primary); margin-top: 2px; flex-shrink: 0; }
.am-mega-link span { font-size: .82rem; font-weight: 600; line-height: 1.4; }
.am-mega-foot {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--am-border);
  display: flex; justify-content: space-between; align-items: center;
}
.am-mega-foot a { font-size: .82rem; font-weight: 600; color: var(--am-primary); }
.am-mega-foot .am-mega-phone { color: var(--am-muted); font-size: .82rem; }

/* — Mobile Nav — */
.am-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.am-mobile-drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: 320px; max-width: 90vw;
  background: #fff; padding: 2rem 1.5rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.am-mobile-nav.open .am-mobile-drawer { transform: translateX(0); }
.am-mobile-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--am-bg-slate); border: none; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; color: var(--am-muted);
}
.am-mobile-menu { list-style: none; padding: 0; margin: 2rem 0 0; }
.am-mobile-menu li { border-bottom: 1px solid var(--am-border); }
.am-mobile-menu a {
  display: block; padding: .85rem 0; font-weight: 500; color: var(--am-text); font-size: .95rem;
}
.am-mobile-menu a:hover { color: var(--am-primary); }
.am-mobile-services { padding: 0 0 0 1rem; list-style: none; }
.am-mobile-services a { font-size: .88rem; padding: .55rem 0; }

/* — Buttons — */
.am-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--am-font-heading); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.75rem; border-radius: 50px; border: none;
  cursor: pointer; transition: var(--am-transition); text-decoration: none;
}
.am-btn-primary {
  background: var(--am-primary); color: #fff;
  box-shadow: 0 4px 15px rgba(var(--am-primary-rgb),.3);
}
.am-btn-primary:hover {
  background: var(--am-primary-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(var(--am-primary-rgb),.35);
}
.am-btn-white {
  background: #fff; color: var(--am-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.am-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.15); color: var(--am-primary-dark); }
.am-btn-outline {
  background: transparent; color: var(--am-primary);
  border: 2px solid var(--am-primary);
}
.am-btn-outline:hover {
  background: var(--am-primary); color: #fff;
  transform: translateY(-2px);
}
.am-btn-outline-light {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}
.am-btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.am-btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.am-btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* — Hero — */
.am-hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
  background-color: var(--am-darker);
}
.am-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(15,11,46,.88) 0%, rgba(30,16,86,.72) 40%, rgba(49,46,129,.55) 70%, rgba(79,70,229,.35) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(129,140,248,.15) 0%, transparent 50%);
}
.am-hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, var(--am-bg), transparent);
}
.am-hero .container { position: relative; z-index: 2; }
.am-hero-content {
  max-width: 740px;
}
.am-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  padding: .6rem 1.35rem; border-radius: 50px; margin-bottom: 1.75rem;
  color: var(--am-accent-light); font-size: .9rem; font-weight: 600;
  letter-spacing: .04em; backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.am-hero-badge::after {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}
/* Hero floating decorative circles */
.am-hero-decor {
  position: absolute; width: 450px; height: 450px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06); top: -8%; right: -4%; z-index: 1;
  animation: heroFloat 8s ease-in-out infinite; pointer-events: none;
}
.am-hero-decor::after {
  content: ''; position: absolute; inset: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
}
.am-hero-decor-2 {
  position: absolute; width: 250px; height: 250px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04); bottom: 10%; left: -3%; z-index: 1;
  animation: heroFloat 10s ease-in-out infinite reverse; pointer-events: none;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(15px, -20px) rotate(3deg); }
  66% { transform: translate(-10px, 12px) rotate(-2deg); }
}
.am-hero-title {
  color: #fff; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.am-hero-title span { color: var(--am-accent-light); }
/* Hero word-by-word staggered reveal */
.am-hero-title .am-word {
  display: inline-block; opacity: 0;
  transform: translateY(25px) rotateX(15deg);
  animation: wordReveal .6s cubic-bezier(.4,0,.2,1) forwards;
}
.am-hero-title .am-word:nth-child(1) { animation-delay: .15s; }
.am-hero-title .am-word:nth-child(2) { animation-delay: .25s; }
.am-hero-title .am-word:nth-child(3) { animation-delay: .35s; }
.am-hero-title .am-word:nth-child(4) { animation-delay: .45s; }
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Heading accent underline */
.am-section h2::after, .am-features h2::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
  border-radius: 2px; margin-top: .75rem;
}
.text-center h2::after { margin-left: auto; margin-right: auto; }
.am-hero-sub {
  color: rgba(255,255,255,.85); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.8;
  max-width: 620px; margin-bottom: 2.5rem;
}
.am-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.am-hero-stats {
  display: flex; gap: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.am-hero-stat { text-align: left; }
.am-hero-stat-num { color: #fff; font-family: var(--am-font-heading); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; display: block; }
.am-hero-stat-label { color: rgba(255,255,255,.55); font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* — Trusted / Logos Bar — */
.am-trusted {
  padding: 3rem 0; border-bottom: 1px solid var(--am-border);
  text-align: center;
}
.am-trusted p { font-size: .82rem; font-weight: 600; color: var(--am-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.5rem; }
.am-trust-logos {
  display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap;
  opacity: .4; filter: grayscale(1);
}
.am-trust-logos img { height: 36px; }
.am-trust-text {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.am-trust-item {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600;
  color: var(--am-muted);
}
.am-trust-item i { color: var(--am-primary); font-size: 1rem; }

/* — Services Grid — */
.am-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.am-service-card {
  background: #fff; border: 1px solid var(--am-border); border-radius: var(--am-radius-lg);
  padding: 0; transition: all .5s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.am-service-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.am-service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.4,0,.2,1), filter .5s ease;
}
.am-service-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 100%);
  transition: opacity .4s ease;
}
.am-service-card:hover .am-service-card-img img {
  transform: scale(1.12);
  filter: brightness(1.05) contrast(1.02);
}
.am-service-card:hover .am-service-card-img::after {
  opacity: .6;
}
.am-service-card-body {
  padding: 1.75rem 2rem 2rem; position: relative; flex: 1; display: flex; flex-direction: column;
}
.am-service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--am-primary), var(--am-primary-light), var(--am-accent));
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.4,0,.2,1);
  z-index: 3;
}
.am-service-card::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(var(--am-primary-rgb),.06) 0%, transparent 70%);
  border-radius: 50%; transform: translate(30%, 30%); transition: all .5s ease;
}
.am-service-card:hover {
  border-color: rgba(var(--am-primary-rgb),.25); transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(var(--am-primary-rgb),.14), 0 12px 24px rgba(0,0,0,.06);
}
.am-service-card:hover::before { transform: scaleX(1); }
.am-service-card:hover::after { width: 200px; height: 200px; }
.am-service-icon, .am-service-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff;
  color: var(--am-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  position: absolute; top: -28px; left: 2rem;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(var(--am-primary-rgb),.18), 0 2px 8px rgba(0,0,0,.08);
  border: 2px solid rgba(var(--am-primary-rgb),.12);
  transition: all .45s cubic-bezier(.4,0,.2,1);
}
.am-service-card:hover .am-service-icon,
.am-service-card:hover .am-service-card-icon {
  background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
  color: #fff; transform: scale(1.12) rotate(-5deg) translateY(-4px);
  box-shadow: 0 12px 28px rgba(var(--am-primary-rgb),.35);
  border-color: transparent;
}
.am-service-card h4 { margin: 1.5rem 0 .5rem; font-size: 1.25rem; position: relative; }
.am-service-card p { color: var(--am-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; position: relative; flex: 1; }
.am-service-link, .am-service-card-link {
  font-size: 1rem; font-weight: 600; color: var(--am-primary);
  display: inline-flex; align-items: center; gap: .4rem; position: relative;
  transition: gap .3s ease;
}
.am-service-card:hover .am-service-link,
.am-service-card:hover .am-service-card-link { gap: .7rem; }
.am-service-link i, .am-service-card-link i { transition: transform .3s; }
.am-service-card:hover .am-service-link i,
.am-service-card:hover .am-service-card-link i { transform: translateX(4px); animation: arrowBounce 1s ease-in-out infinite; }
@keyframes arrowBounce {
  0%, 100% { transform: translateX(4px); }
  50% { transform: translateX(8px); }
}

/* — Why Choose Us / Features — */
.am-features {
  background: var(--am-bg-warm);
}
.am-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.am-features-img {
  border-radius: var(--am-radius-xl); overflow: hidden;
  box-shadow: var(--am-shadow-lg);
}
.am-features-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.am-feature-list { list-style: none; padding: 0; margin: 0; }
.am-feature-item {
  display: flex; gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--am-border);
}
.am-feature-item:last-child { border-bottom: none; }
.am-feature-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--am-bg-cool), rgba(var(--am-primary-rgb),.08));
  color: var(--am-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  transition: var(--am-transition);
}
.am-feature-item:hover .am-feature-icon {
  background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
  color: #fff; transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(var(--am-primary-rgb),.25);
}
.am-feature-item h5 { margin-bottom: .25rem; font-size: 1.1rem; }
.am-feature-item p { color: var(--am-muted); font-size: 1rem; margin: 0; line-height: 1.7; }

/* — Testimonials — */
.am-testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.am-testimonial {
  background: #fff; border: 1px solid var(--am-border); border-radius: var(--am-radius-lg);
  padding: 2.25rem; transition: all .4s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
  border-left: 4px solid transparent;
}
.am-testimonial::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--am-primary-rgb),.03) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s ease; border-radius: inherit; pointer-events: none;
}
.am-testimonial::before {
  content: '\201C'; position: absolute; top: .5rem; right: 1.25rem;
  font-size: 7rem; line-height: 1; font-family: Georgia, serif;
  color: rgba(var(--am-primary-rgb),.06); pointer-events: none;
}
.am-testimonial:hover {
  box-shadow: 0 16px 40px rgba(var(--am-primary-rgb),.1), 0 4px 12px rgba(0,0,0,.05);
  transform: translateY(-4px); border-color: rgba(var(--am-primary-rgb),.2);
  border-left-color: var(--am-primary);
}
.am-testimonial:hover::after { opacity: 1; }
.am-testimonial-stars { color: var(--am-accent); font-size: 1rem; margin-bottom: .75rem; letter-spacing: .1em; }
.am-testimonial-stars i { transition: transform .2s ease; }
.am-testimonial:hover .am-testimonial-stars i:nth-child(1) { transform: scale(1.15); transition-delay: 0s; }
.am-testimonial:hover .am-testimonial-stars i:nth-child(2) { transform: scale(1.15); transition-delay: .05s; }
.am-testimonial:hover .am-testimonial-stars i:nth-child(3) { transform: scale(1.15); transition-delay: .1s; }
.am-testimonial:hover .am-testimonial-stars i:nth-child(4) { transform: scale(1.15); transition-delay: .15s; }
.am-testimonial:hover .am-testimonial-stars i:nth-child(5) { transform: scale(1.15); transition-delay: .2s; }
.am-testimonial p { font-size: 1.05rem; line-height: 1.75; color: var(--am-text); margin-bottom: 1.5rem; font-style: italic; }
.am-testimonial-author { display: flex; align-items: center; gap: .75rem; }
.am-testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--am-bg-cool), rgba(var(--am-primary-rgb),.12));
  color: var(--am-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.am-testimonial-name { font-weight: 600; font-size: 1rem; color: var(--am-heading); }
.am-testimonial-role { font-size: .88rem; color: var(--am-muted); }

/* — CTA Banner — */
.am-cta {
  background: linear-gradient(135deg, var(--am-dark) 0%, #1e1056 50%, #312e81 100%);
  position: relative; overflow: hidden;
}
.am-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(var(--am-primary-rgb),.25) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.1) 0%, transparent 45%);
}
.am-cta::after {
  content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
  border: 1px solid rgba(255,255,255,.04); border-radius: 50%;
  animation: ctaPulse 6s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.15); opacity: 1; }
}
.am-cta-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px; z-index: 1; pointer-events: none;
}
.am-cta-inner {
  position: relative; z-index: 2; text-align: center; max-width: 700px; margin: 0 auto;
  background: rgba(255,255,255,.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--am-radius-xl);
  padding: 4rem 3rem;
}
.am-cta h2 { color: #fff; margin-bottom: 1rem; }
.am-cta p { color: rgba(255,255,255,.7); font-size: 1.2rem; margin-bottom: 2rem; }
.am-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* — About Page — */
.am-page-hero {
  background: linear-gradient(135deg, var(--am-darker) 0%, #312e81 100%);
  background-size: cover; background-position: center;
  padding: 8rem 0 4rem; text-align: center; position: relative; overflow: hidden;
}
.am-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(15,11,46,.88) 0%, rgba(30,16,86,.75) 45%, rgba(49,46,129,.6) 75%, rgba(79,70,229,.4) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(129,140,248,.12) 0%, transparent 55%);
}
.am-page-hero h1 { color: #fff; position: relative; z-index: 2; }
.am-breadcrumb {
  position: relative; z-index: 2; display: flex; justify-content: center;
  gap: .5rem; margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.5);
}
.am-breadcrumb a { color: rgba(255,255,255,.7); }
.am-breadcrumb a:hover { color: #fff; }
.am-breadcrumb span { color: var(--am-accent-light); }

/* Service detail */
.am-service-hero {
  background: linear-gradient(135deg, var(--am-darker) 0%, #1e1056 60%, #312e81 100%);
  background-size: cover; background-position: center;
  padding: 9rem 0 4.5rem; position: relative; overflow: hidden;
}
.am-service-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(15,11,46,.88) 0%, rgba(30,16,86,.75) 45%, rgba(49,46,129,.58) 75%, rgba(79,70,229,.38) 100%),
    radial-gradient(ellipse at 75% 35%, rgba(129,140,248,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 75%, rgba(245,158,11,.08) 0%, transparent 45%);
}
.am-service-hero .container { position: relative; z-index: 2; }
.am-service-hero h1 { color: #fff; margin-bottom: .75rem; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.am-service-hero p { color: rgba(255,255,255,.85); font-size: clamp(1.15rem, 1.5vw, 1.3rem); max-width: 660px; line-height: 1.75; }

.am-service-content {
  display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start;
}
.am-service-body h3 { margin-top: 2rem; margin-bottom: .75rem; }
.am-service-body p { margin-bottom: 1rem; }
.am-service-body ul { padding-left: 0; list-style: none; margin-bottom: 1.5rem; }
.am-service-body ul li {
  padding: .45rem 0 .45rem 1.75rem; position: relative; color: var(--am-text); font-size: 1rem;
}
.am-service-body ul li::before {
  content: '\f26a'; font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: .5rem; color: var(--am-primary); font-size: .8rem;
}
.am-service-sidebar {
  position: sticky; top: 100px;
}
.am-sidebar-card {
  background: #fff; border: 1px solid var(--am-border); border-radius: var(--am-radius-lg);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.am-sidebar-card h5 { font-size: 1rem; margin-bottom: 1rem; }
.am-sidebar-nav { list-style: none; padding: 0; margin: 0; }
.am-sidebar-nav li { margin-bottom: .25rem; }
.am-sidebar-nav a {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .85rem; border-radius: 10px; font-size: 1rem;
  font-weight: 500; color: var(--am-text); transition: var(--am-transition);
}
.am-sidebar-nav a:hover, .am-sidebar-nav a.active {
  background: var(--am-bg-cool); color: var(--am-primary);
}
.am-sidebar-nav i { font-size: .9rem; color: var(--am-primary); }
.am-sidebar-contact {
  background: linear-gradient(135deg, var(--am-primary) 0%, var(--am-primary-dark) 100%);
  color: #fff; border-radius: var(--am-radius-lg); padding: 1.75rem; text-align: center;
  border: none;
}
.am-sidebar-contact h5 { color: #fff; margin-bottom: .5rem; }
.am-sidebar-contact p { color: rgba(255,255,255,.8); font-size: 1rem; margin-bottom: 1.25rem; }

/* — Process / How it Works — */
.am-process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  counter-reset: step;
}
.am-process-step {
  text-align: center; position: relative; counter-increment: step;
}
.am-process-num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--am-bg-cool), rgba(var(--am-primary-rgb),.1));
  color: var(--am-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--am-font-heading); font-weight: 800; font-size: 1.3rem;
  border: 2px solid var(--am-primary-light);
  transition: var(--am-transition);
}
.am-process-step:hover .am-process-num {
  background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
  color: #fff; border-color: var(--am-primary);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(var(--am-primary-rgb),.25);
}
/* Process connector lines between steps */
.am-process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 30px;
  left: calc(50% + 38px); right: calc(-50% + 38px);
  height: 2px; background: linear-gradient(90deg, var(--am-primary-light), rgba(var(--am-primary-rgb),.15));
  z-index: 0;
}
.am-process-step h5 { margin-bottom: .5rem; }
.am-process-step p { color: var(--am-muted); font-size: 1rem; }

/* — FAQ — */
.am-faq-list { max-width: 800px; margin: 0 auto; }
.am-faq-item {
  border: 1px solid var(--am-border); border-radius: var(--am-radius);
  margin-bottom: .75rem; overflow: hidden; background: #fff;
}
.am-faq-q {
  padding: 1.15rem 1.5rem; font-weight: 600; font-size: 1.05rem;
  color: var(--am-heading); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; transition: var(--am-transition);
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--am-font-heading);
}
.am-faq-q:hover { background: var(--am-bg-cool); }
.am-faq-q i { transition: transform .3s; color: var(--am-primary); font-size: .85rem; }
.am-faq-q.active i { transform: rotate(45deg); }
.am-faq-q.active { color: var(--am-primary); background: var(--am-bg-cool); }
.am-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.5rem;
}
.am-faq-a.open {
  max-height: 500px; padding: 1rem 1.5rem 1.25rem;
}
.am-faq-a p { color: var(--am-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* — Contact — */
.am-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.am-contact-info { list-style: none; padding: 0; margin: 0 0 2rem; }
.am-contact-info li {
  display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--am-border);
}
.am-contact-info li:last-child { border: none; }
.am-contact-info-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--am-bg-cool); color: var(--am-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.am-contact-info h5 { font-size: 1.05rem; margin-bottom: .15rem; }
.am-contact-info p, .am-contact-info a { font-size: 1rem; color: var(--am-muted); margin: 0; }
.am-contact-form {
  background: #fff; border: 1px solid var(--am-border); border-radius: var(--am-radius-lg);
  padding: 2.5rem;
}
.am-form-group { margin-bottom: 1.25rem; }
.am-form-group label { font-size: .95rem; font-weight: 600; color: var(--am-heading); display: block; margin-bottom: .4rem; }
.am-form-group input, .am-form-group textarea, .am-form-group select {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--am-border);
  border-radius: 12px; font-size: 1rem; font-family: var(--am-font-body);
  transition: var(--am-transition); background: var(--am-bg-slate);
}
.am-form-group input:focus, .am-form-group textarea:focus, .am-form-group select:focus {
  outline: none; border-color: var(--am-primary); box-shadow: 0 0 0 3px rgba(var(--am-primary-rgb),.1);
}

/* — Footer CTA Bar — */
.am-footer-cta {
  background: linear-gradient(135deg, var(--am-primary) 0%, var(--am-primary-dark) 100%);
  padding: 2.5rem 0; position: relative; overflow: hidden;
}
.am-footer-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}
.am-footer-cta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  position: relative; z-index: 2;
}
.am-footer-cta h4 { color: #fff; margin: 0; font-size: 1.35rem; }
.am-footer-cta p { color: rgba(255,255,255,.7); margin: .25rem 0 0; font-size: .95rem; }
.am-footer-cta-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* — Footer — */
.am-footer {
  background: var(--am-dark); color: rgba(255,255,255,.6); padding: 4rem 0 0;
}
.am-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.am-footer-brand {
  font-family: var(--am-font-heading); font-weight: 800; font-size: 1.3rem;
  color: #fff; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.am-footer p { font-size: 1rem; line-height: 1.7; }
.am-footer h6 {
  color: #fff; font-family: var(--am-font-heading); font-weight: 700;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.am-footer-links { list-style: none; padding: 0; margin: 0; }
.am-footer-links li { margin-bottom: .4rem; }
.am-footer-links a { color: rgba(255,255,255,.55); font-size: 1rem; transition: var(--am-transition); }
.am-footer-links a:hover { color: #fff; padding-left: 4px; }
.am-footer-bottom {
  padding: 1.5rem 0; text-align: center; font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.am-footer-bottom a { color: rgba(255,255,255,.5); }

/* — About Page Grid — */
.am-about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.am-about-img { border-radius: var(--am-radius-xl); overflow: hidden; box-shadow: var(--am-shadow-lg); }
.am-about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.am-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.am-value-card {
  text-align: center; padding: 2.25rem 1.75rem;
  border: 1px solid var(--am-border); border-radius: var(--am-radius-lg);
  background: #fff; transition: var(--am-transition); position: relative; overflow: hidden;
}
.am-value-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--am-primary-rgb),.03) 0%, transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.am-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(var(--am-primary-rgb),.1), 0 4px 12px rgba(0,0,0,.04);
  border-color: rgba(var(--am-primary-rgb),.2);
}
.am-value-card:hover::before { opacity: 1; }
.am-value-card i {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--am-bg-cool), rgba(var(--am-primary-rgb),.08));
  color: var(--am-primary); font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .45s cubic-bezier(.4,0,.2,1);
}
.am-value-card:hover i {
  background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
  color: #fff; transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(var(--am-primary-rgb),.3);
}
.am-value-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 1rem;
  background: var(--am-bg-cool); color: var(--am-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.am-value-card h5 { margin-bottom: .5rem; }
.am-value-card p { font-size: 1rem; color: var(--am-muted); margin: 0; }

/* — Team Grid — */
.am-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.am-team-card { text-align: center; }
.am-team-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--am-radius-lg);
  object-fit: cover; margin-bottom: 1rem;
  background: var(--am-bg-cool);
}
.am-team-card h5 { margin-bottom: .15rem; font-size: 1rem; }
.am-team-card p { color: var(--am-muted); font-size: .95rem; }

/* — Service Image Section — */
.am-service-img {
  border-radius: var(--am-radius-xl); overflow: hidden;
  box-shadow: var(--am-shadow-md); margin-bottom: 2rem;
}
.am-service-img img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

/* — 404 — */
.am-404 {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.am-404 h1 { font-size: 8rem; color: var(--am-primary-light); font-weight: 800; line-height: 1; margin-bottom: .5rem; }
.am-404 h2 { margin-bottom: 1rem; }
.am-404 p { color: var(--am-muted); margin-bottom: 2rem; max-width: 450px; margin-left: auto; margin-right: auto; }

/* — Newsletter Form — */
.am-newsletter { position: relative; margin-top: 1rem; }
.am-newsletter input {
  width: 100%; padding: .75rem 3rem .75rem 1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px; color: #fff; font-size: .9rem;
  font-family: var(--am-font-body); transition: var(--am-transition);
}
.am-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.am-newsletter input:focus { outline: none; border-color: var(--am-primary-light); background: rgba(255,255,255,.12); }
.am-newsletter button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: var(--am-primary); border: none; width: 36px; height: 36px;
  border-radius: 50%; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--am-transition);
}
.am-newsletter button:hover { background: var(--am-accent); }

/* — Nav hide/show on scroll — */
.am-nav { transition: box-shadow .3s, transform .35s cubic-bezier(.4,0,.2,1); }
.am-nav.nav-hidden { transform: translateY(-100%); }

/* — Counter gradient bg — */
.am-counter-grid {
  background: linear-gradient(135deg, rgba(var(--am-primary-rgb),.03) 0%, transparent 50%, rgba(245,158,11,.03) 100%);
  border-radius: var(--am-radius-xl); padding: 3rem 2rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .am-hero-content { text-align: center; }
  .am-hero-sub { margin-left: auto; margin-right: auto; }
  .am-hero-actions { justify-content: center; }
  .am-hero-stats { justify-content: center; }
  .am-services-grid { grid-template-columns: repeat(2, 1fr); }
  .am-features-grid { grid-template-columns: 1fr; }
  .am-features-img { order: -1; }
  .am-about-grid { grid-template-columns: 1fr; }
  .am-contact-grid { grid-template-columns: 1fr; }
  .am-service-content { grid-template-columns: 1fr; }
  .am-service-sidebar { position: static; }
  .am-footer-grid { grid-template-columns: 1fr 1fr; }
  .am-team-grid { grid-template-columns: repeat(2, 1fr); }
  .am-values-grid { grid-template-columns: repeat(2, 1fr); }
  .am-mega { display: none !important; }
  .am-hamburger { display: block; }
  .am-menu { display: none; }
  .am-process-grid { grid-template-columns: repeat(2, 1fr); }
  .am-process-step:not(:last-child)::after { display: none; }
  .am-testimonials-grid { grid-template-columns: 1fr; }
  .am-counter-grid { grid-template-columns: repeat(2, 1fr); }
  .am-footer-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .am-section { padding: 4rem 0; }
  .am-services-grid { grid-template-columns: 1fr; }
  .am-ribbon-links { gap: 1rem; }
  .am-ribbon-right { display: none; }
  .am-hero-stats { gap: 1.5rem; }
  .am-footer-grid { grid-template-columns: 1fr; }
  .am-process-grid { grid-template-columns: 1fr; }
  .am-values-grid { grid-template-columns: 1fr; }
  .am-counter-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .am-team-grid { grid-template-columns: repeat(2, 1fr); }
  .am-hero-title { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  .am-page-hero { padding: 6rem 0 3rem; }
  .am-service-hero { padding: 7rem 0 3.5rem; }
}

/* — Scroll Progress Bar — */
.am-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
  transform-origin: left; transform: scaleX(0);
  z-index: 9999; pointer-events: none;
}

/* — Counter Section — */
.am-counter-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.am-counter-item {
  text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--am-radius-lg);
  background: #fff; border: 1px solid var(--am-border);
  transition: all .4s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
}
.am-counter-item::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
  transform: scaleX(0); transition: transform .5s ease;
}
.am-counter-item:hover {
  transform: translateY(-6px); box-shadow: var(--am-shadow-lg);
  border-color: rgba(var(--am-primary-rgb),.15);
}
.am-counter-item:hover::before { transform: scaleX(1); }
.am-counter-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.25rem;
  background: var(--am-bg-cool); color: var(--am-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.am-counter-item:hover .am-counter-icon {
  background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
  color: #fff; transform: scale(1.1);
}
.am-counter-num {
  font-family: var(--am-font-heading); font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800; color: var(--am-heading); line-height: 1; display: inline;
}
.am-counter-suffix {
  font-family: var(--am-font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--am-primary); display: inline; vertical-align: super;
}
.am-counter-label {
  font-size: .85rem; font-weight: 600; color: var(--am-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-top: .5rem;
}

/* — Back to Top — */
.am-back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--am-primary); color: #fff; border: none;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--am-shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: all .3s ease; z-index: 1020;
  display: flex; align-items: center; justify-content: center;
}
.am-back-top.visible { opacity: 1; transform: translateY(0); }
.am-back-top:hover { background: var(--am-primary-dark); transform: translateY(-3px); }

/* ==================== ANIMATIONS ==================== */
/* Scroll-reveal base states */
.am-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.am-reveal.am-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — cards animate in sequence */
.am-reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.am-reveal-stagger.am-visible > *:nth-child(1) { transition-delay: .05s; }
.am-reveal-stagger.am-visible > *:nth-child(2) { transition-delay: .12s; }
.am-reveal-stagger.am-visible > *:nth-child(3) { transition-delay: .19s; }
.am-reveal-stagger.am-visible > *:nth-child(4) { transition-delay: .26s; }
.am-reveal-stagger.am-visible > *:nth-child(5) { transition-delay: .33s; }
.am-reveal-stagger.am-visible > *:nth-child(6) { transition-delay: .40s; }
.am-reveal-stagger.am-visible > *:nth-child(7) { transition-delay: .47s; }
.am-reveal-stagger.am-visible > *:nth-child(8) { transition-delay: .54s; }
.am-reveal-stagger.am-visible > *:nth-child(9) { transition-delay: .61s; }
.am-reveal-stagger.am-visible > * {
  opacity: 1; transform: translateY(0);
}

/* Slide from left */
.am-reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.am-reveal-left.am-visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.am-reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.am-reveal-right.am-visible { opacity: 1; transform: translateX(0); }

/* Scale up */
.am-reveal-scale {
  opacity: 0; transform: scale(.92);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.am-reveal-scale.am-visible { opacity: 1; transform: scale(1); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .am-reveal, .am-reveal-left, .am-reveal-right, .am-reveal-scale,
  .am-reveal-stagger > * {
    opacity: 1; transform: none; transition: none;
  }
}