/* ==========================================================================
   ARCHMEDHA — Main Stylesheet
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
    1. Design tokens (CSS variables)   — edit colours & fonts here
    2. Base & typography
    3. Layout helpers & section headings
    4. Buttons
    5. Navbar
    6. Hero
    7. About
    8. Services
    9. Solutions
   10. Cybersecurity
   11. IoT
   12. Why Archmedha
   13. Process
   14. Technology stack
   15. Leadership
   16. Call to action
   17. Contact
   18. Footer & back-to-top
   19. Keyframes
   20. Scroll reveal
   21. Reduced motion
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette */
  --navy-975: #030818;
  --navy-950: #050c20;   /* Midnight */
  --navy-900: #081029;
  --navy-800: #0d1b45;   /* Deep navy */
  --navy-700: #152a63;
  --blue:     #2f6bff;   /* Electric blue */
  --blue-400: #5b8dff;
  --cyan:     #22d3ee;   /* Signal cyan */
  --purple:   #7c5cff;   /* Ultra violet (used sparingly) */

  /* Neutrals */
  --ink:      #0b1533;
  --text:     #47526d;
  --line:     #e2e8f5;
  --bg:       #ffffff;
  --bg-soft:  #f3f6fc;   /* Mist */

  /* Gradients */
  --grad-brand:  linear-gradient(120deg, var(--blue) 0%, #1fb6ff 60%, var(--cyan) 100%);
  --grad-accent: linear-gradient(120deg, var(--cyan) 0%, var(--blue-400) 50%, var(--purple) 100%);

  /* Shape & depth */
  --radius-sm: 14px;
  --radius:    18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 21, 51, .06);
  --shadow-md: 0 14px 40px rgba(11, 21, 51, .10);
  --shadow-lg: 0 30px 70px rgba(11, 21, 51, .18);

  /* Type */
  --font-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;

  /* Misc */
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}


/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 8px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0 0 1rem; }
a { text-decoration: none; color: var(--blue); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }

::selection { background: rgba(34, 211, 238, .3); color: var(--ink); }

/* Keyboard focus — always visible */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }


/* ==========================================================================
   3. LAYOUT HELPERS & SECTION HEADINGS
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.section-soft { background: var(--bg-soft); }

.section-dark {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .72);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}
.section-lead { font-size: 1.1rem; max-width: 40rem; margin-bottom: 1.5rem; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.section-head .section-lead { margin-bottom: 0; }
.lead-text { font-size: 1.1rem; max-width: 40rem; }

/* Faint dot texture used on dark sections */
.dots-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(140, 175, 255, .16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
}

/* Cursor-following highlight shared by cards (position set by script.js) */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 107, 255, .10), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-arch {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.5rem;
  font: 600 .95rem/1.2 var(--font-body);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease),
              background-color .3s, border-color .3s, color .3s;
}
.btn-arch-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Sheen that sweeps across on hover */
.btn-arch::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-arch:hover::after { transform: translateX(120%); }
.btn-arch:hover { transform: translateY(-2px); }
.btn-arch:active { transform: translateY(0); }

.btn-arch-primary {
  color: #fff;
  background: var(--grad-brand); background-size: 160% 100%;
  box-shadow: 0 10px 28px rgba(47, 107, 255, .35);
}
.btn-arch-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 14px 36px rgba(34, 211, 238, .38); }

.btn-arch-ghost {
  color: #fff; background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-arch-ghost:hover { color: #fff; background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .55); }

.btn-arch-outline { color: var(--blue); background: #fff; border-color: rgba(47, 107, 255, .35); }
.btn-arch-outline:hover { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 12px 28px rgba(47, 107, 255, .28); }

.btn-arch-white { color: var(--navy-800); background: #fff; box-shadow: 0 12px 30px rgba(3, 8, 24, .25); }
.btn-arch-white:hover { color: var(--blue); }

.btn-arch:disabled { opacity: .7; cursor: not-allowed; transform: none; }


/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }

#mainNav {
  min-height: var(--nav-h);
  padding: .9rem 0;
  background: transparent;
  transition: padding .35s var(--ease), background-color .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
/* Applied by script.js after scrolling */
#mainNav.is-scrolled {
  padding: .45rem 0;
  background: rgba(5, 12, 32, .8);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(2, 6, 20, .35);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  letter-spacing: .1em; line-height: 1;
}

.navbar .navbar-nav .nav-link {
  position: relative;
  padding: .6rem .8rem;
  font-size: .94rem; font-weight: 500;
  color: rgba(255, 255, 255, .78);
  transition: color .25s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #fff; }
.navbar .navbar-nav .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  border-radius: 2px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Animated hamburger (three bars → X) */
.navbar-toggler {
  width: 44px; height: 44px; padding: 0; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; box-shadow: none !important;
}
.toggler-bar { display: block; width: 24px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .35s var(--ease), opacity .2s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) {
  .nav-cta { margin-left: 1.25rem; padding: .62rem 1.35rem; font-size: .9rem; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .75rem; padding: .5rem 1.25rem 1.5rem;
    border-radius: 20px;
    background: rgba(5, 12, 32, .97);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  }
  .navbar .navbar-nav .nav-link { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .navbar .navbar-nav .nav-link::after { display: none; }
  .navbar .navbar-nav .nav-link.active { color: var(--cyan); }
  .nav-cta { display: flex; width: 100%; margin-top: 1.25rem; }

  /* Staggered slide-in when the menu opens */
  .navbar-collapse.show .nav-item,
  .navbar-collapse.show .nav-cta { animation: navIn .5s var(--ease) both; }
  .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: .04s; }
  .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: .08s; }
  .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: .12s; }
  .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: .16s; }
  .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: .20s; }
  .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: .24s; }
  .navbar-collapse.show .nav-item:nth-child(7) { animation-delay: .28s; }
  .navbar-collapse.show .nav-cta { animation-delay: .34s; }
}


/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(1100px 650px at 88% 6%, rgba(124, 92, 255, .30), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(34, 211, 238, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-975) 0%, var(--navy-900) 55%, #0c1a4a 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 42%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 62% 42%, #000 25%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 18s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: var(--blue);   opacity: .45; top: -140px; left: -120px; }
.orb-2 { width: 340px; height: 340px; background: var(--purple); opacity: .35; right: -90px; top: 22%; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: var(--cyan);   opacity: .18; bottom: -150px; left: 38%; animation-delay: -12s; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .5rem 1rem; margin-bottom: 1.6rem;
  font-size: .9rem; font-weight: 500; letter-spacing: .02em; color: #d9e6ff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); animation: pulseDot 2s infinite; }

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.04em;
  color: #fff; margin-bottom: 1.5rem;
}
.hero-lead { font-size: 1.15rem; max-width: 34rem; color: rgba(255, 255, 255, .76); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Hero illustration ---- */
.hero-visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hv-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-ring { fill: none; stroke: rgba(120, 170, 255, .16); stroke-width: 1; }
.hv-ring-dash {
  stroke: rgba(34, 211, 238, .38); stroke-dasharray: 2 10; stroke-linecap: round;
  transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite;
}
.hv-rev { animation-direction: reverse; animation-duration: 70s; }
.hv-hex { fill: rgba(47, 107, 255, .05); stroke: rgba(124, 150, 255, .28); stroke-width: 1; }
.hv-spokes line { stroke: rgba(34, 211, 238, .4); stroke-width: 1.2; stroke-dasharray: 4 6; animation: dashFlow 2.5s linear infinite; }
.hv-pulses circle { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }

.hv-core {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(34, 211, 238, .38), rgba(47, 107, 255, .26) 50%, rgba(124, 92, 255, .38));
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 60px rgba(34, 211, 238, .35), inset 0 0 30px rgba(255, 255, 255, .1);
}
.hv-core::before, .hv-core::after {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .45); animation: ping 3.2s ease-out infinite;
}
.hv-core::after { animation-delay: 1.6s; }
.hv-core-mark { width: 58%; height: 58%; }

.hv-node { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.hv-n1 { left: 50%; top: 12%; }
.hv-n2 { left: 83%; top: 31%; }
.hv-n3 { left: 83%; top: 69%; }
.hv-n4 { left: 50%; top: 88%; }
.hv-n5 { left: 17%; top: 69%; }
.hv-n6 { left: 17%; top: 31%; }
.hv-node-inner { display: flex; flex-direction: column; align-items: center; gap: .45rem; animation: float 6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.hv-icon {
  width: clamp(52px, 12vw, 74px); aspect-ratio: 1; display: grid; place-items: center;
  font-size: clamp(1.15rem, 3vw, 1.6rem); color: var(--cyan);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(2, 6, 20, .45);
}
.hv-label { font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .78); }


/* ==========================================================================
   7. ABOUT
   ========================================================================== */
.about-visual { position: relative; padding: 1.75rem 1.5rem 2.25rem 0; }
.av-window {
  overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg);
}
.av-bar { display: flex; gap: .4rem; padding: .9rem 1.1rem; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.av-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.av-bar span:nth-child(1) { background: #ff6b6b; }
.av-bar span:nth-child(2) { background: #ffd166; }
.av-bar span:nth-child(3) { background: #3ddc97; }
.av-body { display: grid; grid-template-columns: 60px 1fr; min-height: 320px; }
.av-side { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 1.3rem 0; color: rgba(255, 255, 255, .4); border-right: 1px solid rgba(255, 255, 255, .06); }
.av-side i.active { color: var(--cyan); }
.av-main { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; min-width: 0; }
.av-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.av-tile { padding: .85rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); color: var(--cyan); }
.av-tile span { display: block; height: 7px; margin-top: .7rem; border-radius: 6px; background: rgba(255, 255, 255, .12); width: 70%; }
.av-chart { border-radius: 14px; padding: .75rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.av-chart svg { display: block; width: 100%; height: 110px; }
.av-line { stroke-dasharray: 700; stroke-dashoffset: 700; }
.av-chart.is-visible .av-line { animation: drawLine 2.2s var(--ease) forwards; }
.av-lines span { display: block; height: 8px; margin-bottom: .6rem; border-radius: 6px; background: rgba(255, 255, 255, .08); }

.av-float {
  position: absolute; width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.35rem; color: var(--blue); background: #fff;
  border-radius: 18px; box-shadow: var(--shadow-md); animation: float 7s ease-in-out infinite;
}
.av-float-1 { top: 0; right: 0; }
.av-float-2 { bottom: 0; left: -14px; color: var(--purple); animation-delay: -2.5s; }
.av-float-3 { top: 46%; right: -6px; color: #0ea5c6; animation-delay: -4.5s; }

.about-highlight {
  display: flex; align-items: center; gap: 1rem; max-width: 40rem;
  margin: 1.75rem 0 2rem; padding: 1.1rem 1.4rem;
  background: var(--bg-soft); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-highlight i { font-size: 1.4rem; color: var(--blue); }
.about-highlight p { margin: 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }

.about-points { display: grid; gap: 1.1rem; max-width: 40rem; }
.about-points li { display: flex; gap: 1rem; align-items: flex-start; }
.ap-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue); background: rgba(47, 107, 255, .09); border-radius: 14px; }
.about-points h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .1rem; }
.about-points p { margin: 0; font-size: .96rem; }


/* ==========================================================================
   8. SERVICES
   ========================================================================== */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.service-card {
  display: flex; flex-direction: column;
  padding: 1.9rem 1.75rem 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::after {          /* gradient edge revealed on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47, 107, 255, .3); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.3rem;
  font-size: 1.3rem; color: var(--blue); background: rgba(47, 107, 255, .09); border-radius: 16px;
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.service-card:hover .service-icon { color: #fff; background: var(--grad-brand); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; }
.service-card p { font-size: .97rem; margin-bottom: 1.25rem; }

.card-link { margin-top: auto; font-size: .92rem; font-weight: 600; color: var(--blue); }
.card-link i { font-size: .8rem; margin-left: .25rem; transition: transform .3s var(--ease); }
.card-link:hover { color: var(--navy-800); }
.card-link:hover i { transform: translateX(4px); }

.service-card-wide .service-icon { margin-bottom: 1.3rem; }
.service-card-wide .btn-arch { align-self: flex-start; }
.service-card-wide .scw-text p { margin-bottom: 1.25rem; }
@media (min-width: 992px) {
  .service-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.75rem; padding: 1.6rem 2rem; }
  .service-card-wide .service-icon { margin: 0; flex: none; }
  .service-card-wide .scw-text { flex: 1; }
  .service-card-wide .scw-text p { margin: 0; }
  .service-card-wide .btn-arch { align-self: center; flex: none; }
}


/* ==========================================================================
   9. SOLUTIONS
   ========================================================================== */
.solutions {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(47, 107, 255, .22), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(124, 92, 255, .18), transparent 60%),
    var(--navy-950);
}
.solution-card {
  height: 100%; display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.solution-card.spotlight::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .17), transparent 62%); }
.solution-card::after {
  content: ""; position: absolute; left: 1.75rem; right: 1.75rem; bottom: 0; height: 2px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.solution-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .07); border-color: rgba(34, 211, 238, .4); }
.solution-card:hover::after { transform: scaleX(1); }

.sol-num {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2);
  transition: -webkit-text-stroke-color .4s;
}
.solution-card:hover .sol-num { -webkit-text-stroke-color: rgba(34, 211, 238, .7); }
.sol-icon {
  width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 1.6rem;
  font-size: 1.45rem; color: var(--cyan);
  background: linear-gradient(145deg, rgba(34, 211, 238, .18), rgba(124, 92, 255, .16));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
}
.solution-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .7rem; }
.solution-card p { font-size: .97rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.5rem; }
.sol-link { margin-top: auto; font-weight: 600; font-size: .93rem; color: var(--cyan); }
.sol-link i { font-size: .8rem; margin-left: .3rem; transition: transform .3s var(--ease); }
.sol-link:hover { color: #fff; }
.sol-link:hover i { transform: translateX(5px); }


/* ==========================================================================
   10. CYBERSECURITY
   ========================================================================== */
.security {
  overflow: hidden; color: rgba(255, 255, 255, .74);
  background:
    radial-gradient(800px 520px at 88% 30%, rgba(124, 92, 255, .38), transparent 62%),
    linear-gradient(150deg, #060b26 0%, #0e1350 58%, #1a1163 100%);
}
.security h2 { color: #fff; }
.security .lead-text { color: rgba(255, 255, 255, .78); margin-bottom: 1.75rem; }

.security-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; max-width: 34rem; margin-bottom: 2.25rem; }
.security-list li { display: flex; align-items: center; gap: .75rem; font-weight: 500; color: #fff; }
.security-list i {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: .9rem; color: var(--cyan);
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); border-radius: 11px;
}
@media (max-width: 575.98px) { .security-list { grid-template-columns: 1fr; } }

.cy-visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin: 0 auto; }
.cy-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cy-rings circle, .cy-rings line { fill: none; stroke: rgba(34, 211, 238, .16); stroke-width: 1; }
.cy-sweep { transform-origin: 240px 240px; animation: spin 7s linear infinite; }
.cy-links line { stroke: rgba(34, 211, 238, .4); stroke-width: 1.2; stroke-dasharray: 4 6; animation: dashFlow 3s linear infinite; }
.cy-nodes circle { fill: #0a1240; stroke: var(--cyan); stroke-width: 2; }
.cy-shield { filter: drop-shadow(0 0 24px rgba(124, 92, 255, .55)); }
.cy-blip { fill: #ffb020; opacity: 0; transform-box: fill-box; transform-origin: center; animation: blip 6s ease-in-out infinite; }
.cy-blip-2 { animation-delay: -3s; }

.cy-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; font-size: .82rem; font-weight: 500; color: #e6efff; white-space: nowrap;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(2, 6, 20, .4); animation: float 7s ease-in-out infinite;
}
.cy-chip i { color: var(--cyan); }
.cy-chip-1 { top: 6%;  right: 0; }
.cy-chip-2 { bottom: 12%; right: -2%; animation-delay: -2.5s; }
.cy-chip-3 { top: 40%; left: -4%; animation-delay: -4.5s; }
@media (max-width: 575.98px) { .cy-chip { font-size: .72rem; padding: .4rem .7rem; } .cy-chip-3 { left: 0; } .cy-chip-2 { right: 0; } }


/* ==========================================================================
   11. IoT
   ========================================================================== */
.iot-board {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  box-shadow: var(--shadow-lg);
}
.iot-board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(140, 175, 255, .16) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 20%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 20%, transparent 85%);
}
.iot-flow { position: relative; display: flex; align-items: flex-start; list-style: none; }
.iot-step { flex: none; width: 120px; text-align: center; }
.iot-node {
  position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 1rem;
  font-size: 1.6rem; color: var(--cyan);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 24px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, .06), 0 14px 30px rgba(2, 6, 20, .4);
}
.iot-step h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: .1rem; }
.iot-step p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .62); }

.iot-link { position: relative; flex: 1; min-width: 20px; height: 2px; margin-top: 37px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.iot-link::after {
  content: ""; position: absolute; top: 0; left: -30px; width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan)); animation: flowX 2.4s linear infinite;
}
.iot-link:nth-child(4)::after { animation-delay: .6s; }
.iot-link:nth-child(6)::after { animation-delay: 1.2s; }
.iot-link:nth-child(8)::after { animation-delay: 1.8s; }

@media (max-width: 991.98px) {
  .iot-flow { flex-direction: column; align-items: flex-start; max-width: 320px; margin: 0 auto; }
  .iot-step { width: 100%; display: grid; grid-template-columns: 76px 1fr; column-gap: 1.1rem; align-items: center; text-align: left; }
  .iot-node { grid-row: 1 / span 2; margin: 0; }
  .iot-step h3 { align-self: end; }
  .iot-step p { align-self: start; }
  .iot-link { flex: none; width: 2px; height: 40px; margin: .35rem 0 .35rem 37px; }
  .iot-link::after { top: -30px; left: 0; width: 100%; height: 30px; background: linear-gradient(180deg, transparent, var(--cyan)); animation-name: flowY; }
}

.iot-cap { height: 100%; padding-top: 1.25rem; border-top: 2px solid var(--line); transition: border-color .35s; }
.iot-cap:hover { border-top-color: var(--blue); }
.iot-cap i { display: block; margin-bottom: .9rem; font-size: 1.35rem; color: var(--blue); }
.iot-cap h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .35rem; }
.iot-cap p { margin: 0; font-size: .95rem; }


/* ==========================================================================
   12. WHY ARCHMEDHA
   ========================================================================== */
@media (min-width: 992px) { .why-intro { position: sticky; top: calc(var(--nav-h) + 2rem); } }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.why-card {
  padding: 1.6rem 1.5rem 1.5rem 1.75rem;
  background: #fff; border-radius: var(--radius-sm); border-left: 3px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .35s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.why-card:hover { border-left-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-card > i { display: block; margin-bottom: 1rem; font-size: 1.4rem; color: var(--blue); }
.why-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.why-card p { margin: 0; font-size: .96rem; }


/* ==========================================================================
   13. PROCESS  (horizontal on desktop, vertical on mobile)
   ========================================================================== */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; list-style: none; }

/* Dashed track + gradient line that draws itself when scrolled into view */
.process::before, .process::after { content: ""; position: absolute; top: 32px; left: 10%; height: 2px; }
.process::before { width: 80%; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.process::after  { width: 80%; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .3s; }
.process.is-visible::after { transform: scaleX(1); }

.process-step { position: relative; z-index: 1; text-align: center; }
.process-node {
  width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 1.25rem;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--blue);
  background: #fff; border: 2px solid var(--line); border-radius: 50%;
  box-shadow: 0 0 0 8px var(--bg);
  transition: color .35s, background .35s, border-color .35s, transform .35s var(--ease);
}
.process-step:hover .process-node { color: #fff; background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.process-text h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.process-text p { margin: 0 auto; max-width: 15rem; font-size: .95rem; }

@media (max-width: 991.98px) {
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process::before, .process::after { top: 32px; left: 31px; width: 2px; height: calc(100% - 64px); }
  .process::before { background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 16px); }
  .process::after  { transform: scaleY(0); transform-origin: top; }
  .process.is-visible::after { transform: scaleY(1); }
  .process-step { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; align-items: center; text-align: left; }
  .process-node { margin: 0; }
  .process-text p { margin: 0; max-width: none; }
}


/* ==========================================================================
   14. TECHNOLOGY STACK
   ========================================================================== */
.stack {
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(47, 107, 255, .2), transparent 60%),
    var(--navy-950);
}
.stack-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.stack-card {
  flex: 1 1 100%;
  padding: 1.6rem 1.5rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  transition: border-color .35s, background .35s;
}
.stack-card:hover { border-color: rgba(34, 211, 238, .4); background: rgba(255, 255, 255, .07); }
.stack-card h3 { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-size: 1.15rem; font-weight: 600; }
.stack-card h3 i { color: var(--cyan); font-size: 1.05rem; }
.stack-card ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.stack-card li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; font-size: .86rem; color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
}
.stack-card li i { color: var(--blue-400); font-size: .9rem; }
@media (min-width: 640px)  { .stack-card { flex: 0 1 calc((100% - 1.25rem) / 2); } }
@media (min-width: 992px)  { .stack-card { flex: 0 1 calc((100% - 2.5rem) / 3); } }
@media (min-width: 1200px) { .stack-card { flex: 0 1 calc((100% - 3.75rem) / 4); } }


/* ==========================================================================
   15. LEADERSHIP
   ========================================================================== */
.leader-photo {
  position: relative; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 42%, transparent 0 32%, rgba(34, 211, 238, .28) 32.3% 32.8%, transparent 33% 50%, rgba(255, 255, 255, .12) 50.3% 50.8%, transparent 51%),
    radial-gradient(500px 300px at 80% 0%, rgba(124, 92, 255, .55), transparent 65%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow-lg);
}
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader-monogram { font-family: var(--font-head); font-size: clamp(3rem, 7vw, 4.75rem); font-weight: 800; letter-spacing: .04em; color: #fff; }
.leader-tag {
  position: absolute; left: 1.1rem; bottom: 1.1rem; padding: .45rem .95rem; font-size: .85rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.leader-name { margin-top: .25rem; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
.leader-role { margin-bottom: 1.25rem; font-weight: 600; color: var(--blue); }
.leader-message { margin: 1.75rem 0 0; padding: 1.4rem 1.5rem; max-width: 40rem; background: var(--bg-soft); border-left: 4px solid var(--purple); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.leader-message figcaption { margin-bottom: .6rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.leader-message blockquote { display: flex; gap: .9rem; margin: 0; }
.leader-message blockquote i { flex: none; margin-top: .3rem; color: var(--purple); opacity: .6; }
.leader-message blockquote p { margin: 0; font-style: italic; }


/* ==========================================================================
   16. CALL TO ACTION
   ========================================================================== */
.cta-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cta-card {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4.5rem);
  border-radius: 32px;
  background:
    radial-gradient(700px 380px at 92% 0%, rgba(124, 92, 255, .6), transparent 62%),
    linear-gradient(120deg, #0a1a5c 0%, #1746d6 58%, #1fb6ff 100%);
  box-shadow: var(--shadow-lg);
}
.cta-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.cta-content { position: relative; max-width: 38rem; }
.cta-content h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; color: #fff; margin-bottom: 1rem; }
.cta-content p { font-size: 1.12rem; color: rgba(255, 255, 255, .86); margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }


/* ==========================================================================
   17. CONTACT
   ========================================================================== */
.contact-info { display: grid; gap: 1.1rem; margin: 2rem 0 1.75rem; }
.contact-info li { display: flex; align-items: center; gap: 1rem; }
.ci-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 15px; box-shadow: var(--shadow-sm); }
.contact-info h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: .05rem; }
.contact-info p { margin: 0; font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.contact-info a { color: var(--blue); }
.contact-info a:hover { text-decoration: underline; }

.map-placeholder {
  position: relative; display: grid; place-items: center; align-content: center; gap: .5rem; aspect-ratio: 16 / 9;
  border-radius: var(--radius); border: 1px dashed rgba(47, 107, 255, .35); overflow: hidden; text-align: center;
  background-color: #e6edfb;
  background-image:
    linear-gradient(90deg, rgba(47, 107, 255, .07) 1px, transparent 1px),
    linear-gradient(rgba(47, 107, 255, .07) 1px, transparent 1px),
    linear-gradient(35deg, transparent 46%, rgba(255, 255, 255, .95) 46% 50%, transparent 50%),
    linear-gradient(-22deg, transparent 62%, rgba(255, 255, 255, .85) 62% 65%, transparent 65%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}
.map-pin { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: var(--grad-brand); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); box-shadow: 0 10px 24px rgba(47, 107, 255, .4); }
.map-pin i { transform: rotate(45deg); }
.map-text { font-size: .9rem; font-weight: 500; color: var(--navy-700); padding: 0 1rem; }

.contact-form { padding: clamp(1.5rem, 4vw, 2.6rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-form .form-control, .contact-form .form-select {
  border: 1px solid var(--line); border-radius: 14px; background-color: #fbfcff; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 .25rem rgba(47, 107, 255, .15);
}
.contact-form .form-floating > label { color: #6b7793; }
.form-note { font-size: .88rem; color: #6b7793; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-spinner { display: none; }
#submitBtn.is-loading .btn-spinner { display: inline-block; }
.form-status { margin: .5rem 0 0; border-radius: 14px; font-size: .95rem; }


/* ==========================================================================
   18. FOOTER & BACK-TO-TOP
   ========================================================================== */
.site-footer { position: relative; padding-top: clamp(3.5rem, 7vw, 5rem); color: rgba(255, 255, 255, .66); background: var(--navy-975); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-accent); opacity: .7; }
.footer-tagline { margin: 1.1rem 0 1.5rem; color: rgba(255, 255, 255, .74); }

.social-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-list a {
  width: 42px; height: 42px; display: grid; place-items: center; color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%;
  transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.social-list a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

.footer-heading { margin-bottom: 1.1rem; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: #fff; letter-spacing: 0; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .66); transition: color .25s, padding-left .25s var(--ease); }
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.5rem 0 1.75rem; font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--cyan); }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
  width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); border-radius: 50%;
  box-shadow: 0 10px 26px rgba(47, 107, 255, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; transform: translateY(-3px); }


/* ==========================================================================
   19. KEYFRAMES
   ========================================================================== */
@keyframes float      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift      { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes ping       { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pulseDot   { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }
@keyframes dashFlow   { to { stroke-dashoffset: -20; } }
@keyframes drawLine   { to { stroke-dashoffset: 0; } }
@keyframes flowX      { from { left: -30px; } to { left: 100%; } }
@keyframes flowY      { from { top: -30px; } to { top: 100%; } }
@keyframes navIn      { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes blip {
  0%, 60%, 100% { opacity: 0; transform: scale(.4); fill: #ffb020; }
  10%           { opacity: 1; transform: scale(1);  fill: #ffb020; }
  32%           { opacity: 1; transform: scale(1.5); fill: #ffb020; }
  42%           { opacity: .9; transform: scale(1.2); fill: #22d3ee; }
  55%           { opacity: 0; transform: scale(2.2); fill: #22d3ee; }
}


/* ==========================================================================
   20. SCROLL REVEAL  (only when JS is available; see script.js)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   21. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hv-pulses { display: none; }
  .av-line { stroke-dashoffset: 0; }
  .process::after { transform: none; }
}
