/* ==========================================================================
   NION AUTOMATION LTD — Main Stylesheet
   --------------------------------------------------------------------------
   1.  CSS variables
   2.  Reset
   3.  Base typography
   4.  Utility classes
   5.  Buttons
   6.  Navbar
   7.  Hero
   8.  Sections (shared section layouts, page headers)
   9.  Services
   10. About
   11. Pricing
   12. CTA
   13. Contact
   14. Footer
   15. Animations
   16. Responsive media queries
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES
   Change brand colours, radius, shadows and spacing here.
   ========================================================================== */
:root {
  /* Primary — deep navy */
  --navy-950: #061226;
  --navy-900: #0a1a33;
  --navy-800: #0f2547;
  --navy-700: #163463;
  --navy-600: #1f4585;

  /* Secondary — soft corporate blue */
  --blue-600: #2459c9;
  --blue-500: #3a6fe0;
  --blue-400: #6b93ea;
  --blue-300: #a4bff5;
  --blue-100: #e7eefc;
  --blue-50:  #f3f7fe;

  /* Text */
  --text-900: #0d1b2e;
  --text-700: #34455c;
  --text-500: #5d6d84;
  --text-on-dark: #eef3fb;
  --text-on-dark-muted: #a9b7cc;

  /* Backgrounds & lines */
  --bg-white: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef3fa;
  --line: #e2e8f1;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Feedback */
  --success: #1e8a5a;
  --error: #c43d3d;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--navy-700) 0%, var(--blue-500) 100%);
  --grad-dark: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  --grad-soft: linear-gradient(180deg, var(--blue-50) 0%, var(--bg-white) 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.06), 0 2px 6px rgba(13, 27, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 27, 46, 0.08), 0 2px 6px rgba(13, 27, 46, 0.04);
  --shadow-lg: 0 24px 60px rgba(10, 26, 51, 0.14), 0 6px 18px rgba(10, 26, 51, 0.06);
  --shadow-blue: 0 12px 30px rgba(36, 89, 201, 0.28);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --nav-h: 76px;

  /* Typography */
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.2rem, 3.6vw + 1rem, 4rem);
  --fs-h2: clamp(1.85rem, 3vw + 0.6rem, 3rem);
  --fs-h3: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.78rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
  --t-slow: 0.8s;
}


/* ==========================================================================
   2. RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-white);
  color: var(--text-700);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul, ol { list-style: none; }

/* Stop scrolling behind the open mobile menu */
body.menu-open { overflow: hidden; }


/* ==========================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-900);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }

p { max-width: 68ch; }

strong { color: var(--text-900); font-weight: 700; }

::selection { background: var(--blue-300); color: var(--navy-900); }

/* Visible, consistent focus states for keyboard users */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

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

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--blue-600);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--light { color: var(--blue-300); }
.eyebrow--center { justify-content: center; }

.lead { font-size: var(--fs-lead); color: var(--text-500); line-height: 1.65; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}
.section-head--split > div { max-width: 640px; }
.section-head--split > .lead { max-width: 440px; }

/* Icon badge used in cards */
.icon-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-600);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.icon-badge svg { width: 26px; height: 26px; }

/* Image frame with graceful fallback if the image file is missing */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.media.img-missing img { opacity: 0; }


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease),
              background-color var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 37, 71, 0.22);
}
/* Soft sheen that sweeps across on hover */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn--primary:hover::after { opacity: 1; }

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-900);
}
.btn--ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn--sm { min-height: 44px; padding: 0.65rem 1.25rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Text link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-600);
  font-size: 0.93rem;
  font-weight: 700;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }


/* ==========================================================================
   6. NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease), height var(--t-med) var(--ease);
}
/* Blurred glass background lives on a pseudo-element so the fixed mobile
   menu is not trapped inside the header (backdrop-filter creates a containing block). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: background var(--t-med) var(--ease);
}
/* Added by JS once the page is scrolled */
.site-header.is-scrolled {
  --nav-h: 66px;
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 27, 46, 0.06);
}

.site-header.is-scrolled::before { background: rgba(255, 255, 255, 0.96); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 40px; }
.site-footer .brand img { height: 44px; }

.nav__menu { display: flex; align-items: center; gap: 2.25rem; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--text-700);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--t-fast);
}
/* Animated underline + active page indicator */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover { color: var(--text-900); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text-900); }

/* Hamburger */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.nav__toggle-bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast), top var(--t-med) var(--ease);
}
.nav__toggle-bar:nth-child(1) { top: 15px; }
.nav__toggle-bar:nth-child(2) { top: 22px; }
.nav__toggle-bar:nth-child(3) { top: 29px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav__mobile-footer { display: none; }


/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 7rem);
  background: var(--grad-soft);
}

/* Subtle grid pattern */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 52, 99, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 52, 99, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}

/* Floating blurred background shapes */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: float-orb 18s ease-in-out infinite alternate;
}
.bg-orb--1 { width: 460px; height: 460px; top: -120px; right: -80px; background: #cddcfb; }
.bg-orb--2 { width: 320px; height: 320px; bottom: -120px; left: -100px; background: #dde7fb; animation-delay: -6s; }
.bg-orb--3 { width: 220px; height: 220px; top: 40%; left: 45%; background: #e3ebfc; animation-delay: -11s; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero__content h1 { margin-bottom: 1.5rem; }
.hero__content .lead { margin-bottom: 2.25rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-700);
  font-size: var(--fs-small);
  font-weight: 600;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--blue-500); }

.hero__visual { position: relative; }

.hero__image {
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 18, 38, 0.45) 100%);
  pointer-events: none;
}

/* Decorative ring behind hero image */
.hero__ring {
  position: absolute;
  inset: -22px -22px auto auto;
  width: 60%; height: 60%;
  border: 1.5px dashed var(--blue-300);
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Floating glass chips over hero image */
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem 0.8rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: var(--text-900);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  animation: float-y 6s ease-in-out infinite;
}
.hero__chip small { display: block; color: var(--text-500); font-size: var(--fs-xs); font-weight: 600; }
.hero__chip .icon-badge { width: 40px; height: 40px; border-radius: 10px; }
.hero__chip .icon-badge svg { width: 20px; height: 20px; }
.hero__chip--1 { top: 9%; left: -9%; }
.hero__chip--2 { top: 46%; right: -7%; animation-delay: -2s; }
.hero__chip--3 { bottom: 8%; left: -5%; animation-delay: -4s; }


/* ==========================================================================
   8. SECTIONS
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section--dark {
  overflow: hidden;
  background: var(--grad-dark);
  color: var(--text-on-dark-muted);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .lead { color: var(--text-on-dark-muted); }
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.section--dark > .container { position: relative; }

/* ---- Inner page header ---- */
.page-header {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3.5rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 52, 99, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 52, 99, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 5%, transparent 65%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 5%, transparent 65%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header h1 { max-width: 16ch; margin-bottom: 1.25rem; font-size: clamp(2.2rem, 4.2vw + 0.6rem, 3.8rem); }
.page-header .lead { max-width: 60ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-500);
  font-size: var(--fs-small);
  font-weight: 600;
}
.breadcrumb a { color: var(--blue-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--blue-300); }

/* ---- Pillars (What we do) ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  position: relative;
  padding: 2.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.pillar__num {
  position: absolute;
  top: 1.75rem; right: 2rem;
  color: var(--blue-100);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color var(--t-med);
}
.pillar .icon-badge { margin-bottom: 1.5rem; }
.pillar h3 { margin-bottom: 0.65rem; }
.pillar p { color: var(--text-500); font-size: 0.97rem; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar:hover .icon-badge { background: var(--navy-800); color: #fff; }
.pillar:hover .pillar__num { color: var(--blue-300); }

/* ---- Feature / Why choose grid (dark section) ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--line-dark);
}
.feature {
  padding: 2.25rem 2rem;
  background: rgba(10, 26, 51, 0.92);
  transition: background var(--t-med) var(--ease);
}
.feature:hover { background: rgba(22, 52, 99, 0.95); }
.feature .icon-badge {
  margin-bottom: 1.4rem;
  background: rgba(107, 147, 234, 0.14);
  color: var(--blue-300);
}
.feature:hover .icon-badge { background: var(--blue-500); color: #fff; transform: rotate(-6deg) scale(1.05); }
.feature h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.feature p { font-size: 0.95rem; }

/* ---- Process / timeline ---- */
.process { position: relative; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
/* Connecting line (horizontal on desktop) */
.process::before {
  content: "";
  position: absolute;
  top: 31px; left: 32px;
  width: calc(75% + 1.125rem);
  height: 2px;
  background: var(--line);
}
.process__progress {
  position: absolute;
  top: 31px; left: 32px;
  height: 2px;
  width: calc(75% + 1.125rem);
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.2s;
}
.process.is-visible .process__progress { transform: scaleX(1); }

.step { position: relative; }
.step__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-800);
  font-size: 1.05rem;
  font-weight: 800;
  transition: background var(--t-med) var(--ease), color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease);
}
.step:hover .step__marker { background: var(--navy-800); border-color: var(--navy-800); color: #fff; transform: scale(1.06); }
.step__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-600);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step h3 { margin-bottom: 0.55rem; }
.step p { color: var(--text-500); font-size: 0.95rem; }
.process-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
}
.process-end p { color: var(--text-500); font-weight: 600; }

/* ---- FAQ accordion ---- */
.faq { display: grid; gap: 0.9rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
.faq__item.is-open { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.3rem 1.5rem;
  color: var(--text-900);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-100);
  transition: background var(--t-med), transform var(--t-med) var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t-med) var(--ease), background var(--t-med);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--navy-800); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease);
}
.faq__answer > div { overflow: hidden; }
.faq__answer p { padding: 0 1.5rem 1.4rem; color: var(--text-500); }
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }


/* ==========================================================================
   9. SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.services-grid--4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
/* Animated gradient top border */
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-badge { background: var(--navy-800); color: #fff; }
.service-card:hover .media img { transform: scale(1.06); }

.service-card .media { aspect-ratio: 16 / 9; border-radius: 0; }
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem;
}
.service-card .icon-badge { margin-bottom: 1.25rem; }
.service-card--overlap .icon-badge {
  position: relative;
  z-index: 1;
  margin-top: calc(-1.75rem - 28px);
  border: 4px solid #fff;
  width: 64px; height: 64px;
  box-shadow: var(--shadow-sm);
}
.service-card__tag {
  margin-bottom: 0.5rem;
  color: var(--blue-600);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card h3 { margin-bottom: 0.6rem; }
@media (min-width: 1101px) { .services-grid--4 .service-card h3 { min-height: 2.6em; } }
.service-card p { flex: 1; margin-bottom: 1.4rem; color: var(--text-500); font-size: 0.96rem; }

/* Detailed service rows (services page) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.service-detail + .service-detail { margin-top: clamp(4rem, 8vw, 6.5rem); }
.service-detail--reverse .service-detail__media { order: 2; }
.service-detail__media .media { aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.service-detail__content .icon-badge { margin-bottom: 1.5rem; }
.service-detail__content h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 2.4vw + 0.6rem, 2.5rem); }
.service-detail__content .lead { margin-bottom: 1.5rem; }

.check-list { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-700);
  font-weight: 600;
}
.check-list svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
}


/* ==========================================================================
   10. ABOUT
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about-split__media { position: relative; }
.about-split__media .media { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.about-split__badge {
  position: absolute;
  right: -1.5rem; bottom: 2rem;
  max-width: 250px;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  color: var(--text-on-dark-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.about-split__badge strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.about-split__content h2 { margin-bottom: 1.25rem; }
.about-split__content .lead { margin-bottom: 1.25rem; }
.about-split__content p + p { margin-top: 1rem; }
.about-split__content .btn-group { margin-top: 2rem; }

/* Mission & vision cards */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mv-card--dark { background: var(--grad-dark); border-color: transparent; color: var(--text-on-dark-muted); }
.mv-card--dark h3 { color: #fff; }
.mv-card--dark .icon-badge { background: rgba(107, 147, 234, 0.16); color: var(--blue-300); }
.mv-card--dark .mv-card__quote { color: #fff; }
.mv-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}
.mv-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.mv-card__head h3 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mv-card__quote {
  color: var(--text-900);
  font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Approach values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value .icon-badge { width: 48px; height: 48px; margin-bottom: 1.1rem; }
.value .icon-badge svg { width: 22px; height: 22px; }
.value h3 { margin-bottom: 0.45rem; font-size: 1.08rem; }
.value p { color: var(--text-500); font-size: 0.93rem; }

/* Big statement band */
.statement {
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: var(--bg-tint);
  text-align: center;
}
.statement p {
  max-width: 30ch;
  margin-inline: auto;
  color: var(--text-900);
  font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.statement span { display: block; margin-top: 1rem; color: var(--text-500); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }


/* ==========================================================================
   11. PRICING
   ========================================================================== */
.pricing-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 1.5rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.price-card--featured {
  overflow: hidden;
  border-color: transparent;
  background: var(--grad-dark);
  color: var(--text-on-dark-muted);
  box-shadow: var(--shadow-lg);
}
.price-card--featured h3 { color: #fff; }
.price-card--featured::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 147, 234, 0.35), transparent 70%);
  pointer-events: none;
}

.price-card__label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(107, 147, 234, 0.16);
  color: var(--blue-300);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-card__label--light { background: var(--blue-100); color: var(--blue-600); }
.price-card h3 { margin-bottom: 0.6rem; font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.9rem); letter-spacing: -0.02em; }
.price-card__intro { margin-bottom: 1.75rem; }

.price-includes { display: grid; gap: 1rem; margin-bottom: 2rem; }
.price-includes li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.price-includes li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-includes .icon-badge { width: 44px; height: 44px; border-radius: 12px; background: rgba(107, 147, 234, 0.14); color: var(--blue-300); }
.price-includes .icon-badge svg { width: 20px; height: 20px; }
.price-includes strong { display: block; color: #fff; font-size: 1.02rem; }
.price-includes span { font-size: 0.92rem; }

.price-card__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
  color: var(--blue-300);
  font-size: var(--fs-small);
  font-weight: 700;
}
.price-card__note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Price figures list */
.price-figures { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.price-figure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med) var(--ease);
}
.price-figure:hover { border-color: var(--blue-300); background: var(--blue-50); transform: translateX(4px); }
.price-figure__amount {
  color: var(--text-900);
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-figure__term {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-figure__term--muted { background: #fff; color: var(--text-500); border: 1px solid var(--line); }
.price-card__small { color: var(--text-500); font-size: var(--fs-small); margin-bottom: 1.5rem; }

.transparency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--blue-300);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--text-900);
  font-weight: 700;
  text-align: center;
  max-width: none;
}
.transparency svg { width: 24px; height: 24px; color: var(--blue-600); }


/* ==========================================================================
   12. CTA
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: var(--radius-xl);
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  text-align: center;
  isolation: isolate;
}
/* Optional background image (images/backgrounds/cta-background.jpg) */
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  animation: slow-zoom 24s ease-in-out infinite alternate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(58, 111, 224, 0.45), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(107, 147, 234, 0.3), transparent 55%),
    linear-gradient(160deg, rgba(6, 18, 38, 0.85), rgba(15, 37, 71, 0.9));
}
/* Animated border glow */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(164, 191, 245, 0.6), transparent 80%);
  background-size: 250% 250%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-sweep 7s linear infinite;
  pointer-events: none;
}
.cta h2 { max-width: 18ch; margin: 0 auto 1rem; color: #fff; font-size: clamp(2rem, 4vw + 0.5rem, 3.6rem); }
.cta__sub { margin: 0 auto 0.75rem; color: var(--blue-300); font-size: var(--fs-lead); font-weight: 700; }
.cta__text { margin: 0 auto 2.25rem; max-width: 56ch; }
.cta .btn-group { justify-content: center; }


/* ==========================================================================
   13. CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med);
}
a.contact-card:hover,
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.contact-card:hover .icon-badge { background: var(--navy-800); color: #fff; }
.contact-card__label { display: block; color: var(--text-500); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-card__value { display: block; color: var(--text-900); font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.05rem); font-weight: 700; overflow-wrap: anywhere; }

.contact-aside__title { margin-bottom: 1.5rem; }
.req-mark { color: var(--error); }
.contact-aside .media { aspect-ratio: 16 / 10; margin-top: 1.5rem; box-shadow: var(--shadow-md); }

.form-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-card h2 { margin-bottom: 0.5rem; font-size: clamp(1.6rem, 1.6vw + 1rem, 2.1rem); }
.form-card > p { margin-bottom: 2rem; color: var(--text-500); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--text-900); font-size: 0.9rem; font-weight: 700; }
.form-field label .req { color: var(--error); }
.form-field label .opt { color: var(--text-500); font-weight: 500; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-900);
  font-size: 1rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6d84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--blue-300); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(58, 111, 224, 0.14);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--error); background-color: #fff8f8; }
.form-error { min-height: 1.1em; color: var(--error); font-size: 0.84rem; font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form-privacy { color: var(--text-500); font-size: var(--fs-small); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0.5rem;
}
.form-success.is-visible { display: block; animation: scale-in 0.6s var(--ease) both; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #e5f4ed;
  color: var(--success);
}
.form-success__icon svg { width: 36px; height: 36px; }
.form-success h3 { margin-bottom: 0.75rem; font-size: 1.6rem; }
.form-success p { margin: 0 auto 1.75rem; color: var(--text-500); }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(58, 111, 224, 0.16), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer__about p { margin: 1.25rem 0 1.25rem; max-width: 36ch; }
.footer__tagline { color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.footer__title {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { position: relative; transition: color var(--t-fast), padding var(--t-med) var(--ease); }
.footer__links a:hover { color: #fff; padding-left: 6px; }
.footer__contact { display: grid; gap: 0.9rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer__contact svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; color: var(--blue-400); }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
}
.footer__bottom a:hover { color: #fff; }

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med), background var(--t-fast);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-600); }


/* ==========================================================================
   15. ANIMATIONS
   Elements with [data-reveal] start hidden and are revealed by JS
   (IntersectionObserver). If JS is disabled, the "no-js" class keeps
   everything visible.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), clip-path 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="up"]    { transform: translateY(36px); }
.js [data-reveal="left"]  { transform: translateX(-44px); }
.js [data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal="image"] { opacity: 1; clip-path: inset(0 0 100% 0 round var(--radius-lg)); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="image"].is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

/* Hero entrance (runs on page load) */
.js .hero-enter {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-in 1s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes hero-in { to { opacity: 1; transform: none; } }

@keyframes float-orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

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

@keyframes slow-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

@keyframes border-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: none; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js .hero-enter { opacity: 1; transform: none; clip-path: none; }
}


/* ==========================================================================
   16. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* ---- Large laptops (≤1280px) ---- */
@media (max-width: 1280px) {
  .hero__chip--1 { left: -4%; }
  .hero__chip--2 { right: -3%; }
  .hero__chip--3 { left: -2%; }
}

/* ---- Laptops / small desktops (≤1100px) ---- */
@media (max-width: 1100px) {
  .services-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Tablets (≤1024px): switch to mobile navigation ---- */
@media (max-width: 1024px) {
  .nav__toggle { display: block; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    clip-path: circle(0% at calc(100% - 44px) 38px);
    transition: clip-path 0.6s var(--ease), opacity 0.3s, visibility 0.6s;
  }
  .nav__menu.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: circle(150% at calc(100% - 44px) 38px);
  }

  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .nav__menu.is-open .nav__links li { opacity: 1; transform: none; }
  .nav__menu.is-open .nav__links li:nth-child(1) { transition-delay: 0.12s; }
  .nav__menu.is-open .nav__links li:nth-child(2) { transition-delay: 0.17s; }
  .nav__menu.is-open .nav__links li:nth-child(3) { transition-delay: 0.22s; }
  .nav__menu.is-open .nav__links li:nth-child(4) { transition-delay: 0.27s; }
  .nav__menu.is-open .nav__links li:nth-child(5) { transition-delay: 0.32s; }

  .nav__link {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--blue-600); }

  .nav__cta { width: 100%; min-height: 56px; }

  .nav__mobile-footer {
    display: grid;
    gap: 0.4rem;
    margin-top: auto;
    color: var(--text-500);
    font-size: var(--fs-small);
  }
  .nav__mobile-footer a { color: var(--text-900); font-weight: 700; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { text-align: left; max-width: 680px; }
  .hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero__image { aspect-ratio: 4 / 3.2; }
  .hero__chip--1 { left: -2%; }
  .hero__chip--2 { right: -2%; }
  .hero__chip--3 { left: 4%; }

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

  .about-split,
  .service-detail,
  .pricing-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .service-detail--reverse .service-detail__media { order: 0; }
  .about-split__media { max-width: 560px; }
  .about-split__media .media { aspect-ratio: 4 / 3.4; }
  .about-split__badge { right: 1rem; }

  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .process::before,
  .process__progress { display: none; }
}

/* ---- Small tablets (≤900px) ---- */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767px) {
  :root { --nav-h: 68px; }
  .brand img { height: 34px; }

  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }

  .hero__chip { padding: 0.55rem 0.8rem 0.55rem 0.55rem; font-size: 0.8rem; }
  .hero__chip small { display: none; }
  .hero__chip .icon-badge { width: 32px; height: 32px; }
  .hero__chip .icon-badge svg { width: 16px; height: 16px; }
  .hero__chip--1 { top: 6%; left: 3%; }
  .hero__chip--2 { top: auto; bottom: 22%; right: 3%; }
  .hero__chip--3 { bottom: 5%; left: 3%; }
  .hero__ring { display: none; }

  .pillars,
  .features,
  .services-grid,
  .services-grid--4,
  .mv-grid,
  .values,
  .form-grid { grid-template-columns: 1fr; }

  /* Vertical timeline on mobile */
  .process__steps { grid-template-columns: 1fr; row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 1.25rem;
    padding-bottom: 2.25rem;
  }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 64px; bottom: 0; left: 31px;
    width: 2px;
    background: linear-gradient(var(--blue-300), var(--line));
  }
  .step__marker { grid-row: span 3; margin-bottom: 0; }

  .about-split__badge { position: relative; right: auto; bottom: auto; max-width: none; margin: -2.5rem 1rem 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .price-figure { flex-wrap: wrap; }
  .section-head--split { align-items: flex-start; }
}

/* ---- Small mobile (≤425px) ---- */
@media (max-width: 425px) {
  .hero__trust { flex-direction: column; }
  .pillar, .feature { padding: 1.75rem 1.5rem; }
  .service-card__body { padding: 1.5rem; }
  .hero__chip--2 { display: none; }
  .transparency { flex-direction: column; }
}

/* ---- Very small mobile (≤340px) ---- */
@media (max-width: 340px) {
  .btn { padding-inline: 1.1rem; white-space: normal; text-align: center; }
  .brand img { height: 30px; }
}

/* ---- Large screens (≥1600px) ---- */
@media (min-width: 1600px) {
  :root { --container: 1280px; }
}
