/* ============================================================
   styles.css — Arun Mahajan Portfolio (v2.1 — Executive Edition)
   Design language: Stripe / Linear / Vercel / McKinsey Digital.
   Premium, branded, consulting-grade.

   This v2.1 turns the brand presence UP from v2:
     · primary button uses brand blue (not black)
     · blue/teal accent strips on every section
     · stronger hero gradients (was 8% → now visible)
     · gradient accent bars on stat / metric / pillar cards
     · section eyebrow has a coloured accent line
     · headline accent word uses gradient text
     · navbar nav-link has bottom-bar hover indicator
     · timeline line is a vertical gradient
     · focus rings everywhere are brand blue
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   Centralised system: colours / spacing / motion all flow from
   CSS custom properties so the site is themeable & consistent.
   Palette per executive brief.
   ============================================================ */

:root {
  /* Brand */
  --am-primary: #2563eb;
  --am-primary-600: #1d4ed8;
  --am-primary-700: #1e40af;
  --am-primary-50: #eff6ff;
  --am-primary-100: #dbeafe;
  --am-secondary: #14b8a6;
  --am-secondary-600: #0d9488;
  --am-secondary-50: #f0fdfa;
  --am-secondary-100: #ccfbf1;

  /* Brand gradient — used on accent bars, eyebrows, key buttons */
  --am-grad: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
  --am-grad-soft: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(20, 184, 166, 0.1) 100%
  );

  /* Surfaces & ink */
  --am-bg: #f8fafc;
  --am-surface: #ffffff;
  --am-surface-alt: #f1f5f9;
  --am-ink: #0f172a;
  --am-ink-2: #334155;
  --am-ink-3: #64748b;
  --am-border: #e2e8f0;
  --am-border-strong: #cbd5e1;

  /* Type */
  --am-font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --am-font-display: "Inter", var(--am-font-sans);

  /* Elevation — restrained */
  --am-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --am-shadow-md:
    0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --am-shadow-lg:
    0 14px 32px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.04);
  --am-shadow-brand: 0 8px 24px rgba(37, 99, 235, 0.2);

  /* Radii */
  --am-radius-sm: 8px;
  --am-radius: 12px;
  --am-radius-lg: 16px;

  /* Motion — subtle, executive */
  --am-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --am-dur-fast: 160ms;
  --am-dur: 240ms;
}

[data-bs-theme="dark"] {
  --am-bg: #0b1220;
  --am-surface: #111827;
  --am-surface-alt: #0f172a;
  --am-ink: #f1f5f9;
  --am-ink-2: #cbd5e1;
  --am-ink-3: #94a3b8;
  --am-border: #1e293b;
  --am-border-strong: #334155;
  --am-primary-50: rgba(37, 99, 235, 0.14);
  --am-primary-100: rgba(37, 99, 235, 0.22);
  --am-secondary-50: rgba(20, 184, 166, 0.14);
  --am-secondary-100: rgba(20, 184, 166, 0.22);
  --am-grad-soft: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(20, 184, 166, 0.18) 100%
  );
}

/* ============================================================
   2. BASE
   ============================================================ */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--am-font-sans);
  background-color: var(--am-bg);
  color: var(--am-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.65;
}

::selection {
  background: rgba(37, 99, 235, 0.22);
  color: var(--am-ink);
}

/* Brand-blue focus ring sitewide */
:focus-visible {
  outline: 2px solid var(--am-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive type */
.am-display {
  font-family: var(--am-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.06;
}
/* Gradient accent word inside headline */
.am-display .am-accent {
  background: var(--am-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.am-h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.2;
}

/* Eyebrow with coloured leader line */
.am-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--am-primary);
}
.am-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--am-grad);
  display: inline-block;
}

.am-ink-2 {
  color: var(--am-ink-2) !important;
}
.am-ink-3 {
  color: var(--am-ink-3) !important;
}

/* ============================================================
   3. NAVBAR — sticky, glassy, with bottom-bar hover indicator
   ============================================================ */
.am-navbar {
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--am-border);
  transition:
    box-shadow var(--am-dur) var(--am-ease),
    background-color var(--am-dur) var(--am-ease);
}
[data-bs-theme="dark"] .am-navbar {
  background-color: rgba(11, 18, 32, 0.85);
}
.am-navbar.is-scrolled {
  box-shadow: var(--am-shadow-sm);
  border-bottom-color: var(--am-border-strong);
}

.am-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--am-grad);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--am-shadow-sm);
}

.am-navbar .nav-link {
  position: relative;
  color: var(--am-ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem !important;
  border-radius: 0;
  transition: color var(--am-dur-fast) var(--am-ease);
}
.am-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--am-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--am-dur) var(--am-ease);
}
.am-navbar .nav-link:hover,
.am-navbar .nav-link:focus-visible {
  color: var(--am-primary);
}
.am-navbar .nav-link:hover::after,
.am-navbar .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.am-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--am-border);
  background: var(--am-surface);
  color: var(--am-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--am-dur-fast) var(--am-ease);
}
.am-theme-toggle:hover {
  border-color: var(--am-primary);
  color: var(--am-primary);
  background: var(--am-primary-50);
}

/* ============================================================
   4. HERO — premium, branded, with metric strip
   ============================================================ */
.am-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(
      800px 360px at 88% 0%,
      rgba(37, 99, 235, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 340px at 5% 110%,
      rgba(20, 184, 166, 0.14),
      transparent 60%
    ),
    var(--am-bg);
}
[data-bs-theme="dark"] .am-hero {
  background:
    radial-gradient(
      900px 380px at 88% 0%,
      rgba(37, 99, 235, 0.3),
      transparent 60%
    ),
    radial-gradient(
      700px 340px at 5% 110%,
      rgba(20, 184, 166, 0.2),
      transparent 60%
    ),
    var(--am-bg);
}

/* Hero grid pattern — slowly drifts (animated background per spec) */
.am-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--am-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--am-border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 28%,
    transparent 78%
  );
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
  pointer-events: none;
  animation: am-grid-drift 22s linear infinite;
}
[data-bs-theme="dark"] .am-hero::before {
  opacity: 0.35;
}
@keyframes am-grid-drift {
  to {
    background-position: 56px 56px;
  }
}

/* Floating soft-blob decorative element (subtle, not loud) */
.am-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -120px;
  background: radial-gradient(
    closest-side,
    rgba(37, 99, 235, 0.18),
    transparent 70%
  );
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: am-blob 12s var(--am-ease) infinite alternate;
}
@keyframes am-blob {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(20px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-hero::before,
  .am-hero::after {
    animation: none;
  }
}

.am-hero > .container {
  position: relative;
  z-index: 1;
}

.am-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  color: var(--am-ink-2);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--am-shadow-sm);
}
.am-trust-pill .am-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--am-secondary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
  animation: am-pulse 2.4s ease-in-out infinite;
}
@keyframes am-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(20, 184, 166, 0.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .am-trust-pill .am-dot {
    animation: none;
  }
}

/* Portrait — premium frame with brand glow */
.am-portrait {
  position: relative;
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  box-shadow: var(--am-shadow-lg);
  background: var(--am-surface);
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin-inline: auto;
}
.am-portrait::before {
  /* Soft branded glow behind the photo */
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--am-grad);
  filter: blur(40px);
  opacity: 0.18;
  z-index: -1;
  border-radius: inherit;
}
.am-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.am-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(15, 23, 42, 0.2) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Hero metric cards — premium dashboard feel */
.am-metric-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--am-border);
}
.am-metric {
  position: relative;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: var(--am-shadow-sm);
  transition:
    transform var(--am-dur) var(--am-ease),
    box-shadow var(--am-dur) var(--am-ease),
    border-color var(--am-dur) var(--am-ease);
  height: 100%;
  overflow: hidden;
}
.am-metric::before {
  /* Top branded accent strip */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--am-grad);
  opacity: 0.85;
}
.am-metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-border-strong);
}
.am-metric .am-metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--am-ink-3);
}
.am-metric .am-metric-value {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--am-ink);
  line-height: 1.1;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.am-metric .am-metric-sub {
  font-size: 0.85rem;
  color: var(--am-ink-3);
  margin-top: 0.4rem;
}
.am-metric .am-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--am-grad-soft);
  color: var(--am-primary);
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

/* ============================================================
   5. BUTTONS — premium, branded
   ============================================================ */
.btn-am-primary {
  background: var(--am-grad);
  background-size: 130% 100%;
  background-position: 0% 50%;
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.55rem;
  border-radius: 10px;
  letter-spacing: -0.005em;
  box-shadow: var(--am-shadow-brand);
  transition:
    all var(--am-dur-fast) var(--am-ease),
    background-position var(--am-dur) var(--am-ease);
}
.btn-am-primary:hover,
.btn-am-primary:focus-visible {
  background-position: 100% 50%;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}
.btn-am-primary:active {
  transform: translateY(0);
}

.btn-am-ghost {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  color: var(--am-ink);
  font-weight: 500;
  padding: 0.75rem 1.55rem;
  border-radius: 10px;
  transition: all var(--am-dur-fast) var(--am-ease);
}
.btn-am-ghost:hover,
.btn-am-ghost:focus-visible {
  border-color: var(--am-primary);
  color: var(--am-primary);
  background: var(--am-primary-50);
  transform: translateY(-1px);
}

/* ============================================================
   6. SECTIONS — alternating, with header accent
   ============================================================ */
.am-section {
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.am-section--alt {
  background: var(--am-surface-alt);
  border-top: 1px solid var(--am-border);
  border-bottom: 1px solid var(--am-border);
}
.am-section--surface {
  background: var(--am-surface);
  border-top: 1px solid var(--am-border);
  border-bottom: 1px solid var(--am-border);
}

.am-section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* ============================================================
   7. ABOUT — chip pills
   ============================================================ */
.am-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--am-ink-2);
  margin: 0 0.45rem 0.6rem 0;
  transition: all var(--am-dur-fast) var(--am-ease);
}
.am-chip i {
  color: var(--am-primary);
}
.am-chip:hover {
  border-color: var(--am-primary);
  background: var(--am-primary-50);
  color: var(--am-ink);
  transform: translateY(-1px);
}

/* ============================================================
   8. IMPACT — premium dashboard stat cards
   ============================================================ */
.am-stat {
  position: relative;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.7rem 1.5rem;
  height: 100%;
  overflow: hidden;
  transition: all var(--am-dur) var(--am-ease);
}
.am-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--am-grad);
  border-top-left-radius: var(--am-radius);
  border-bottom-left-radius: var(--am-radius);
}
.am-stat::after {
  /* Subtle corner glow on hover */
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: var(--am-grad-soft);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--am-dur) var(--am-ease);
  pointer-events: none;
}
.am-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-border-strong);
}
.am-stat:hover::after {
  opacity: 1;
}
.am-stat .am-stat-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--am-primary-50);
  color: var(--am-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.am-stat .am-stat-value {
  position: relative;
  z-index: 1;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--am-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.am-stat .am-stat-label {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--am-primary);
  margin-bottom: 0.3rem;
}
.am-stat p {
  position: relative;
  z-index: 1;
  color: var(--am-ink-3);
  font-size: 0.92rem;
  margin-top: 0.7rem;
  margin-bottom: 0;
}

/* ============================================================
   9. EXPERIENCE — premium timeline (gradient line, accent nodes)
   ============================================================ */
.am-timeline {
  position: relative;
  padding-left: 2.25rem;
}
.am-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--am-primary) 0%,
    var(--am-secondary) 100%
  );
  opacity: 0.4;
  border-radius: 2px;
}
.am-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.am-timeline-item:last-child {
  padding-bottom: 0;
}
.am-timeline-node {
  position: absolute;
  left: -2.25rem;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--am-surface);
  border: 2px solid var(--am-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--am-bg);
  transition: all var(--am-dur) var(--am-ease);
  z-index: 1;
}
.am-timeline-node::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--am-grad);
  transition: all var(--am-dur) var(--am-ease);
}
.am-timeline-item:hover .am-timeline-node {
  border-color: var(--am-secondary);
  box-shadow:
    0 0 0 6px var(--am-bg),
    0 0 0 10px rgba(20, 184, 166, 0.2);
  transform: scale(1.08);
}

.am-timeline-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.5rem 1.7rem;
  transition: all var(--am-dur) var(--am-ease);
}
.am-timeline-item:hover .am-timeline-card {
  transform: translateX(4px);
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-primary);
}
.am-timeline-period {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--am-primary);
  background: var(--am-primary-50);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  border: 1px solid var(--am-primary-100);
}
.am-timeline-company {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--am-ink-3);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
.am-company-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--am-grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  box-shadow: var(--am-shadow-sm);
  /* TODO: replace with real logos: <img src="images/companies/foo.svg" /> */
}
.am-timeline-highlights {
  list-style: none;
  padding: 0;
  margin: 0.95rem 0 0 0;
}
.am-timeline-highlights li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--am-ink-2);
  font-size: 0.93rem;
  margin-bottom: 0.45rem;
}
.am-timeline-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--am-grad);
  border-radius: 50%;
}

/* ============================================================
   10. SOLUTIONS — modern solution cards with branded number
   ============================================================ */
.am-solution {
  position: relative;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.9rem;
  height: 100%;
  overflow: hidden;
  transition: all var(--am-dur) var(--am-ease);
}
.am-solution::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--am-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--am-dur) var(--am-ease);
}
.am-solution:hover {
  transform: translateY(-3px);
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-primary);
}
.am-solution:hover::before {
  transform: scaleX(1);
}
.am-solution .am-solution-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--am-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.am-solution .am-solution-num::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--am-primary);
}
.am-solution .am-solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--am-ink);
  margin: 0.55rem 0 0.75rem;
}
.am-solution .am-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--am-primary-50);
  border: 1px solid var(--am-primary-100);
  color: var(--am-primary);
  margin-right: 0.35rem;
  margin-top: 0.95rem;
}

/* ============================================================
   11. TRANSFORMATION pillars
   ============================================================ */
.am-pillar {
  position: relative;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.5rem 1.5rem 1.6rem;
  height: 100%;
  overflow: hidden;
  transition: all var(--am-dur) var(--am-ease);
}
.am-pillar:hover {
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-primary);
  transform: translateY(-2px);
}
.am-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--am-grad);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--am-shadow-sm);
}
.am-pillar h3 {
  color: var(--am-ink);
  margin-bottom: 0.45rem;
}

/* ============================================================
   12. CASE STUDIES (Flagship Programs) — branded label
   ============================================================ */
.am-case {
  position: relative;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: clamp(1.6rem, 2.8vw, 2.4rem);
  height: 100%;
  overflow: hidden;
  transition: all var(--am-dur) var(--am-ease);
}
.am-case::before {
  /* Top accent gradient strip */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--am-grad);
}
.am-case:hover {
  box-shadow: var(--am-shadow-lg);
  border-color: var(--am-border-strong);
  transform: translateY(-2px);
}
.am-case-meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--am-secondary-600);
  background: var(--am-secondary-50);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--am-secondary-100);
  margin-bottom: 0.85rem;
}
.am-case-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
  color: var(--am-ink);
}
.am-case dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
}
.am-case dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--am-primary);
  padding-top: 0.15rem;
}
.am-case dd {
  color: var(--am-ink-2);
  margin: 0;
  font-size: 0.93rem;
}
@media (max-width: 575.98px) {
  .am-case dl {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .am-case dd {
    margin-bottom: 0.7rem;
  }
}

/* ============================================================
   13. SERVICES
   ============================================================ */
.am-service {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.6rem;
  height: 100%;
  transition: all var(--am-dur) var(--am-ease);
}
.am-service:hover {
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-primary);
  transform: translateY(-2px);
}
.am-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--am-grad-soft);
  color: var(--am-primary);
  font-size: 1.15rem;
  margin-bottom: 0.95rem;
}

/* ============================================================
   14. APPROACH — numbered steps with branded number
   ============================================================ */
.am-approach-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--am-border);
}
.am-approach-step:last-child {
  border-bottom: 1px solid var(--am-border);
}
.am-approach-num {
  font-family: var(--am-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--am-grad);
  box-shadow: var(--am-shadow-sm);
}

/* ============================================================
   15. THOUGHT LEADERSHIP
   ============================================================ */
.am-article {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.7rem;
  height: 100%;
  transition: all var(--am-dur) var(--am-ease);
  display: flex;
  flex-direction: column;
}
.am-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-primary);
}
.am-article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--am-secondary-600);
  background: var(--am-secondary-50);
  border: 1px solid var(--am-secondary-100);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}
.am-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--am-ink);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.am-article-meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--am-ink-3);
}

/* ============================================================
   16. CONTACT — premium form & cards
   ============================================================ */
.am-contact-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--am-dur) var(--am-ease);
}
.am-contact-card:hover {
  box-shadow: var(--am-shadow-md);
  border-color: var(--am-primary);
  transform: translateY(-2px);
}
.am-contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--am-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: var(--am-shadow-sm);
}

.am-form .form-control,
.am-form .form-label {
  font-size: 0.95rem;
}
.am-form .form-label {
  font-weight: 600;
  color: var(--am-ink);
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.am-form .form-control {
  background: var(--am-surface);
  border: 1.5px solid var(--am-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--am-ink);
  transition:
    border-color var(--am-dur-fast) var(--am-ease),
    box-shadow var(--am-dur-fast) var(--am-ease),
    background var(--am-dur-fast) var(--am-ease);
}
.am-form .form-control:hover {
  border-color: var(--am-border-strong);
}
.am-form .form-control:focus {
  border-color: var(--am-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  outline: none;
  background: var(--am-surface);
}
.am-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Form wrapper card — premium form container */
.am-form-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--am-shadow-sm);
  position: relative;
  overflow: hidden;
}
.am-form-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--am-grad);
}

/* Honeypot — invisible bot trap */
.am-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.am-footer {
  background: var(--am-bg);
  border-top: 1px solid var(--am-border);
  color: var(--am-ink-3);
  padding: 24px 0;
  border-top: 1px solid var(--am-border);
  font-size: 14px;
}
.am-footer a {
  color: var(--am-ink-3);
  text-decoration: none;
  transition: color var(--am-dur-fast) var(--am-ease);
}
.am-footer a:hover {
  color: var(--am-primary);
}
.am-footer p {
  margin-bottom: 0;
}

/* ============================================================
   18. ARCHITECTURE DIAGRAM container
   ============================================================ */
.am-arch {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--am-shadow-sm);
  position: relative;
  overflow: hidden;
}
.am-arch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--am-grad);
}
.am-arch svg,
.am-arch object {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
}

/* ============================================================
   19. SCROLL REVEAL
   ============================================================ */
.am-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms var(--am-ease),
    transform 700ms var(--am-ease);
  will-change: opacity, transform;
}
.am-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .am-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   20. ALERTS
   ============================================================ */
.am-alert {
  border-radius: var(--am-radius);
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--am-border);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.am-alert--success {
  background: var(--am-secondary-50);
  border-color: rgba(20, 184, 166, 0.4);
  color: #0f766e;
}
.am-alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
[data-bs-theme="dark"] .am-alert--success {
  color: #5eead4;
}
[data-bs-theme="dark"] .am-alert--error {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
  color: #fca5a5;
}

/* ============================================================
   21. DARK MODE adjustments
   ============================================================ */
[data-bs-theme="dark"] body {
  background: var(--am-bg);
  color: var(--am-ink);
}
[data-bs-theme="dark"] .am-portrait::after {
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
}

/* ============================================================
   21-A. ARTICLE STYLE
   ============================================================ */
.am-article-page {
  background: var(--am-bg);
}

.am-article-content h1,
.am-article-content h2,
.am-article-content h3 {
  color: var(--am-text);
}

.am-article-content p {
  color: #334155;
  line-height: 1.7;
}

.am-article-content ul {
  padding-left: 18px;
}

.am-article-content li {
  margin-bottom: 8px;
}

.am-article-highlight {
  border-left: 4px solid var(--am-primary);
  background: #eff6ff;
  padding: 16px;
  border-radius: 6px;
}
/* ============================================================
   22. RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 991.98px) {
  .am-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .am-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
@media (max-width: 575.98px) {
  .am-hero::after {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -80px;
  }
  .am-timeline {
    padding-left: 2rem;
  }
  .am-timeline-node {
    left: -2rem;
  }
  .am-approach-step {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }
  .am-approach-num {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/*========================
  PWA Changes
  ===============================*/
/* =========================================================
   MOBILE OPTIMIZATION PATCH (NON-DESTRUCTIVE)
   Applies ONLY below 768px
   ========================================================= */

@media (max-width: 768px) {
  /* 1. Reduce vertical spacing (biggest gain) */
  .am-section {
    padding: 28px 0 !important;
  }

  .am-section-head {
    margin-bottom: 20px;
  }

  /* 2. Typography scaling */
  .am-h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  h1 {
    font-size: 1.6rem !important;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .fs-5 {
    font-size: 1rem !important;
  }

  /* 3. Buttons – touch friendly */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .btn-sm {
    min-height: 38px;
    padding: 8px 12px;
  }

  /* 4. Cards spacing optimization */
  .am-card,
  .am-case,
  .am-article {
    padding: 16px !important;
    border-radius: 10px;
  }

  /* 5. Grid stacking improvement */
  .row.g-4 > * {
    margin-bottom: 16px;
  }

  /* 6. Timeline optimization */
  .am-timeline-card {
    padding: 16px;
  }

  .am-timeline-period {
    font-size: 0.85rem;
  }

  .am-timeline-highlights li {
    font-size: 0.9rem;
  }

  /* 7. Case study readability */
  .am-case-title {
    font-size: 1.1rem;
  }

  .am-case dl dt {
    font-size: 0.85rem;
  }

  .am-case dl dd {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  /* 8. Article cards */
  .am-article h3 {
    font-size: 1rem;
  }

  .am-article p {
    font-size: 0.9rem;
  }

  /* 9. Image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Fix oval image issue */
  .rounded-circle {
    width: 32px;
    height: 32px;
    object-fit: cover;
  }

  /* 10. Prevent horizontal scroll (IMPORTANT) */
  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 11. Fix long text overflow */
  p,
  h1,
  h2,
  h3 {
    word-wrap: break-word;
  }

  /* 12. Reduce excessive gaps in flex layouts */
  .d-flex.gap-3 {
    gap: 10px !important;
  }
}
