/* ==========================================================================
   Maze Rana Technologies — main stylesheet
   Mobile-first. Breakpoints: 600px, 900px, 1200px.
   Sections:
     1. Tokens
     2. Reset & base
     3. Typography
     4. Layout utilities
     5. Buttons & links
     6. Header & navigation
     7. Animated background (hero + page hero)
     8. Hero (home)
     9. Page hero (inner pages)
    10. Section headings & dividers
    11. Cards (generic, service, value, vision/mission)
    12. Process strip
    13. Philosophy band
    14. CTA band
    15. Forms
    16. Footer
    17. Scroll reveal
    18. Keyframes
    19. Reduced motion
   ========================================================================== */

/* 1. Tokens ================================================================ */
:root {
  /* Brand colours (from the logo) */
  --navy: #0A1A4A;
  --navy-2: #0F2361;
  --blue-deep: #123C9C;
  --blue: #1F6FE5;
  --teal: #14B88A;
  --mint: #2EE6B0;
  --teal-text: #0C7A5C;          /* AA-safe teal for small text on light */

  /* Surfaces & text */
  --surface: #F5F8FC;
  --surface-2: #EAF0F8;
  --white: #FFFFFF;
  --text: #1B2540;
  --muted: #5A6785;
  --border: #DCE3EF;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9C5E2;

  /* Gradients */
  --gradient: linear-gradient(120deg, #1F6FE5, #14B88A);
  --gradient-text: linear-gradient(120deg, #123C9C 0%, #1F6FE5 45%, #0C7A5C 100%);
  --gradient-btn: linear-gradient(120deg, #123C9C 0%, #1F6FE5 40%, #0C7A5C 75%, #123C9C 100%);
  --gradient-dark: linear-gradient(135deg, #0A1A4A 0%, #0F2361 55%, #0B3A5E 100%);

  /* Type */
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  --fs-display: clamp(2.125rem, 1.3rem + 4vw, 4.25rem);
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --container: 1200px;
  --container-narrow: 780px;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 74, 0.06), 0 2px 8px rgba(10, 26, 74, 0.05);
  --shadow: 0 4px 12px rgba(10, 26, 74, 0.06), 0 12px 32px rgba(10, 26, 74, 0.08);
  --shadow-lg: 0 10px 24px rgba(10, 26, 74, 0.08), 0 24px 60px rgba(10, 26, 74, 0.14);
  --focus-ring: 0 0 0 3px #FFFFFF, 0 0 0 5px #1F6FE5;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  /* Header */
  --header-h: 72px;
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

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

* { margin: 0; }

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

main { flex: 1 0 auto; display: block; }

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

img { height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
/* Programmatic focus targets (skip link, same-page anchors) are not controls. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

::selection { background: rgba(31, 111, 229, 0.18); color: var(--navy); }

.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: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: var(--white); }

/* 3. Typography ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

p { text-wrap: pretty; }

.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.6; }

.text-muted { color: var(--muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
}
/* little circuit trace + ring node in front of the eyebrow */
.eyebrow::before {
  content: "";
  width: 28px;
  height: 10px;
  flex: none;
  background:
    radial-gradient(circle at calc(100% - 5px) 50%, transparent 2px, currentColor 2.2px, currentColor 3.6px, transparent 3.8px),
    linear-gradient(currentColor, currentColor) left center / calc(100% - 9px) 2px no-repeat;
}
.eyebrow--light { color: var(--mint); }

.prose > * + * { margin-top: 1.1em; }
.prose p { color: var(--text); }
.prose--muted p { color: var(--muted); }

/* 4. Layout utilities ====================================================== */
.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); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--gradient-dark); color: var(--on-dark); }
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p { color: var(--on-dark-muted); }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); }
.grid--2,
.grid--3,
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .split--start { align-items: start; }
}

.stack > * + * { margin-top: var(--space-4); }
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.actions--center { justify-content: center; }

/* 5. Buttons & links ======================================================= */
.btn {
  --btn-pad-y: 0.8rem;
  --btn-pad-x: 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-position var(--dur-slow) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { border-radius: var(--radius-pill); }

.btn__icon { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary {
  color: var(--white);
  background-image: var(--gradient-btn);
  background-size: 250% 100%;
  background-position: 0% 50%;
  box-shadow: 0 6px 18px rgba(18, 60, 156, 0.28);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--white);
  background-position: 100% 50%;
  box-shadow: 0 10px 26px rgba(12, 122, 92, 0.32);
  transform: translateY(-2px);
}
.btn--primary:focus-visible { box-shadow: var(--focus-ring), 0 10px 26px rgba(12, 122, 92, 0.32); }

.btn--secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(18, 60, 156, 0.25);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  color: var(--blue-deep);
  background: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:focus-visible { box-shadow: var(--focus-ring); }

/* For dark backgrounds */
.btn--light {
  color: var(--navy);
  background: var(--white);
}
.btn--light:hover,
.btn--light:focus-visible {
  color: var(--blue-deep);
  background: #E9FFF8;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(46, 230, 176, 0.25);
}
.btn--light:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--mint); }
.btn--ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  color: var(--white);
  border-color: var(--mint);
  background: rgba(46, 230, 176, 0.1);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* Loading state (contact form) */
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue-deep);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow,
.link-arrow--light { color: var(--mint); }
.section--dark .link-arrow:hover,
.link-arrow--light:hover { color: var(--white); }

/* 6. Header & navigation =================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  /* NOTE: no transform / filter on the header itself, so the fixed mobile
     panel inside it is positioned against the viewport. */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(10, 26, 74, 0.06), 0 8px 24px rgba(10, 26, 74, 0.08);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.site-header.is-scrolled::before,
.site-header--solid::before { opacity: 1; }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  border-radius: var(--radius-sm);
}
.site-header__logo {
  width: auto;
  height: 46px;
  transition: height var(--dur) var(--ease);
}
@media (min-width: 900px) {
  .site-header__logo { height: 56px; }
  .site-header.is-scrolled .site-header__logo { height: 48px; }
}

/* Hamburger toggle */
.nav-toggle {
  position: relative;
  z-index: 120;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--navy);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(18, 60, 156, 0.08); }
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav__list { display: flex; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--blue-deep); }
.site-nav__link:hover::after { transform: scaleX(0.5); }
.site-nav__link[aria-current="page"] { color: var(--blue-deep); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* --- Mobile panel (below 900px) --- */
@media (max-width: 899.98px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 110;
    width: min(86vw, 380px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: calc(var(--header-h) + var(--space-5)) var(--space-6) var(--space-6);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(10, 26, 74, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 420ms var(--ease), visibility 0s linear 420ms;
  }
  /* circuit accent at the bottom of the panel */
  .site-nav::after {
    content: "";
    position: absolute;
    left: var(--space-6);
    right: var(--space-6);
    bottom: var(--space-6);
    height: 12px;
    opacity: 0.5;
    background:
      radial-gradient(circle at calc(100% - 6px) 50%, transparent 2.5px, var(--teal) 3px, var(--teal) 4.5px, transparent 5px),
      linear-gradient(90deg, var(--blue), var(--teal)) left center / calc(100% - 11px) 2px no-repeat;
    pointer-events: none;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 420ms var(--ease), visibility 0s;
  }
  .site-nav__list { flex-direction: column; gap: var(--space-1); }
  .site-nav__list li {
    border-bottom: 1px solid var(--border);
  }
  .site-nav__link {
    width: 100%;
    min-height: 56px;
    font-size: 1.25rem;
  }
  .site-nav__link::after { bottom: 10px; right: auto; width: 32px; }
  .site-nav__cta { align-self: stretch; }

  /* page dimmer behind the open panel */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 26, 74, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  body.nav-open::after {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur) var(--ease), visibility 0s;
  }

  /* Staggered link entrance when the panel opens */
  .site-nav.is-open .site-nav__list li,
  .site-nav.is-open .site-nav__cta { animation: nav-item-in 500ms var(--ease) both; }
  .site-nav.is-open .site-nav__list li:nth-child(1) { animation-delay: 80ms; }
  .site-nav.is-open .site-nav__list li:nth-child(2) { animation-delay: 130ms; }
  .site-nav.is-open .site-nav__list li:nth-child(3) { animation-delay: 180ms; }
  .site-nav.is-open .site-nav__list li:nth-child(4) { animation-delay: 230ms; }
  .site-nav.is-open .site-nav__cta { animation-delay: 290ms; }

  /* Without JS: no panel — show the links inline under the logo instead */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--space-3); }
  html:not(.js) .site-nav {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    transform: none;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  html:not(.js) .site-nav::after { display: none; }
  html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
  html:not(.js) .site-nav__list li { border: 0; }
  html:not(.js) .site-nav__link { font-size: 1rem; min-height: 44px; }
  html:not(.js) .site-nav__cta { display: none; }
}

/* --- Desktop nav (900px and up) --- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--space-6); }
  .site-nav__list { gap: clamp(1.25rem, 0.5rem + 1.5vw, 2.25rem); }
  .site-nav__cta { --btn-pad-x: 1.35rem; min-height: 44px; }
}

/* 7. Animated background (hero + page hero) ================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 111, 229, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 184, 138, 0.10), transparent 60%),
    linear-gradient(180deg, #F7FAFE 0%, #EEF4FB 100%);
}

/* faint dot grid that fades out toward the bottom */
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(18, 60, 156, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 70%);
  opacity: 0.7;
}

/* drifting blurred blobs (gradient mesh) */
.hero-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.hero-bg__blob--1 {
  width: clamp(260px, 45vw, 620px);
  aspect-ratio: 1;
  top: -18%;
  right: -10%;
  background: radial-gradient(circle at 30% 30%, #1F6FE5, rgba(31, 111, 229, 0) 70%);
  animation: blob-drift-1 22s var(--ease-in-out) infinite alternate;
}
.hero-bg__blob--2 {
  width: clamp(220px, 38vw, 520px);
  aspect-ratio: 1;
  bottom: -22%;
  left: -12%;
  background: radial-gradient(circle at 60% 40%, #14B88A, rgba(20, 184, 138, 0) 70%);
  animation: blob-drift-2 26s var(--ease-in-out) infinite alternate;
}
.hero-bg__blob--3 {
  width: clamp(160px, 26vw, 380px);
  aspect-ratio: 1;
  top: 30%;
  left: 42%;
  opacity: 0.35;
  background: radial-gradient(circle, #2EE6B0, rgba(46, 230, 176, 0) 70%);
  animation: blob-drift-3 30s var(--ease-in-out) infinite alternate;
}

/* SVG circuit traces that draw in (paths use pathLength="1") */
.circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.circuit__path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
  animation: circuit-draw 2.4s var(--ease) forwards;
}
.circuit__path--teal { stroke: var(--teal); }
.circuit__path:nth-of-type(2) { animation-delay: 0.3s; }
.circuit__path:nth-of-type(3) { animation-delay: 0.6s; }
.circuit__path:nth-of-type(4) { animation-delay: 0.9s; }
.circuit__path:nth-of-type(5) { animation-delay: 1.2s; }
.circuit__path:nth-of-type(6) { animation-delay: 1.5s; }

.circuit__node {
  fill: #F7FAFE;
  stroke: var(--teal);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    node-in 0.5s var(--ease) forwards 2s,
    node-pulse 3.2s var(--ease-in-out) infinite 2.6s;
}
.circuit__node--blue { stroke: var(--blue); }
.circuit__node:nth-of-type(2n) { animation-delay: 2.3s, 3.2s; }
.circuit__node:nth-of-type(3n) { animation-delay: 2.6s, 3.8s; }

/* The circuit sits to one side on small screens so text stays clean */
@media (max-width: 899.98px) {
  .circuit { opacity: 0.55; }
}

/* 8. Hero (home) =========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6rem));
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
}
.hero > .container { position: relative; z-index: 1; }

.hero__layout { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) {
  .hero__layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-8); }
}

.hero__content > * + * { margin-top: var(--space-5); }

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero__title-line { display: block; }
.hero__title-accent {
  display: block;
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-pan 8s var(--ease-in-out) infinite alternate;
}

.hero__lead {
  max-width: 60ch;
  font-size: var(--fs-md);
  color: var(--muted);
}

.hero__actions { padding-top: var(--space-2); }

/* Entrance animation (pure CSS, so it also works if JS fails) */
.hero__content > * { animation: rise-in 900ms var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: 100ms; }
.hero__content > *:nth-child(2) { animation-delay: 220ms; }
.hero__content > *:nth-child(3) { animation-delay: 360ms; }
.hero__content > *:nth-child(4) { animation-delay: 500ms; }

/* Visual: logo mark on a glass card with orbiting rings */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 1 / 0.82;
  animation: rise-in 1100ms var(--ease) 300ms both;
}
.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(18, 60, 156, 0.18);
  inset: 2%;
  animation: spin 60s linear infinite;
}
.hero__visual::after {
  inset: 14%;
  border-style: solid;
  border-color: rgba(20, 184, 138, 0.22);
  animation-duration: 40s;
  animation-direction: reverse;
}
.hero__card {
  position: relative;
  z-index: 1;
  width: 78%;
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: float 7s var(--ease-in-out) infinite;
}
.hero__card img { width: 100%; height: auto; }
.hero__orbit-node {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 6px rgba(20, 184, 138, 0.15);
  animation: node-pulse 3s var(--ease-in-out) infinite;
}
.hero__orbit-node--1 { top: 9%; left: 22%; }
.hero__orbit-node--2 { bottom: 12%; right: 14%; border-color: var(--blue); box-shadow: 0 0 0 6px rgba(31, 111, 229, 0.15); animation-delay: 1s; }
.hero__orbit-node--3 { top: 46%; right: 1%; width: 10px; height: 10px; animation-delay: 2s; }

@media (max-width: 599.98px) {
  .hero__visual { max-width: 340px; }
}

/* scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(10, 26, 74, 0.3);
  border-radius: 14px;
  display: none;
}
.hero__scroll::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue);
  animation: scroll-cue 1.8s var(--ease-in-out) infinite;
}
@media (min-width: 900px) and (min-height: 760px) {
  .hero__scroll { display: block; }
}

/* 9. Page hero (inner pages) =============================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(2.75rem, 1.5rem + 4vw, 5rem);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__content { max-width: 820px; }
.page-hero__content > * + * { margin-top: var(--space-4); }
.page-hero__content > * { animation: rise-in 900ms var(--ease) both; }
.page-hero__content > *:nth-child(2) { animation-delay: 120ms; }
.page-hero__content > *:nth-child(3) { animation-delay: 240ms; }
.page-hero__content > *:nth-child(4) { animation-delay: 360ms; }
.page-hero__title { font-size: var(--fs-h1); }
.page-hero__lead { font-size: var(--fs-md); color: var(--muted); max-width: 64ch; }
.page-hero--center .page-hero__content { margin-inline: auto; text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .actions { justify-content: center; }
.page-hero--fill {
  min-height: min(78svh, 760px);
  display: flex;
  align-items: center;
}
.page-hero--fill > .container { width: 100%; }
main:has(> .page-hero--fill) { display: flex; flex-direction: column; }
main > .page-hero--fill { flex: 1 0 auto; }
.page-hero .hero-bg__blob--1 { top: -45%; }
.page-hero .hero-bg__blob--2 { bottom: -60%; }

/* 10. Section headings & dividers ========================================== */
.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.section-heading > * + * { margin-top: var(--space-4); }
.section-heading__title { font-size: var(--fs-h2); }
.section-heading__lead { font-size: var(--fs-md); color: var(--muted); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section--dark .section-heading__lead { color: var(--on-dark-muted); }

/* Circuit divider: thin gradient line ending in a ring node */
.circuit-divider {
  position: relative;
  height: 14px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.circuit-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--gutter);
  right: calc(var(--gutter) + 13px);
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(31, 111, 229, 0), rgba(31, 111, 229, 0.5) 30%, var(--teal));
  transform-origin: left center;
}
.circuit-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--gutter);
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2.5px solid var(--teal);
  background: var(--white);
}
html.reveal-ready .circuit-divider[data-reveal]::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
html.reveal-ready .circuit-divider[data-reveal].is-visible::before { transform: scaleX(1); }
html.reveal-ready .circuit-divider[data-reveal] { opacity: 1; transform: none; }

/* 11. Cards ================================================================ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
/* gradient border glow (masked ring) */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -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);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card--interactive:hover,
a.card:hover,
.card--interactive:focus-within {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(31, 111, 229, 0.06), 0 18px 40px -12px rgba(20, 184, 138, 0.35);
}
.card--interactive:hover::before,
a.card:hover::before,
.card--interactive:focus-within::before,
a.card:focus-visible::before { opacity: 1; }
a.card { text-decoration: none; }
a.card:focus-visible { border-radius: var(--radius); box-shadow: var(--focus-ring), var(--shadow-lg); }

.card__title { font-size: var(--fs-h3); }
.card__text { color: var(--muted); margin-top: var(--space-3); }
.card__footer { margin-top: auto; padding-top: var(--space-4); }

/* Icon badge (shared by service cards and vision/mission cards) */
.icon-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--blue-deep);
  background: linear-gradient(135deg, rgba(31, 111, 229, 0.12), rgba(20, 184, 138, 0.14));
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .icon-badge,
.card:focus-within .icon-badge,
a.card:focus-visible .icon-badge {
  color: var(--white);
  background: var(--gradient);
  transform: rotate(-6deg) scale(1.06);
}
.card:hover .icon-badge svg,
a.card:focus-visible .icon-badge svg { animation: icon-wiggle 600ms var(--ease); }

/* Service card — full (services page) */
.service-card { gap: var(--space-4); }
.service-card__title { font-size: var(--fs-h3); }
.service-card__text { color: var(--muted); }
.service-card__num {
  position: absolute;
  top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  right: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Service card — compact link card (home teaser) */
.service-card--compact {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon arrow"
    "title title";
  align-items: center;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-5);
}
.service-card--compact .icon-badge { grid-area: icon; width: 52px; height: 52px; border-radius: 14px; }
.service-card--compact .service-card__arrow { grid-area: arrow; justify-self: end; }
.service-card--compact .service-card__title {
  grid-area: title;
  font-size: var(--fs-h4);
  color: var(--navy);
}
.service-card__arrow {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--blue-deep);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.card:hover .service-card__arrow,
a.card:focus-visible .service-card__arrow { transform: translateX(4px); color: var(--teal-text); }

/* Service card — wide row layout on the services page */
@media (min-width: 900px) {
  .service-card--row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .service-card--row .service-card__body > * + * { margin-top: var(--space-3); }
}
.service-card__body > * + * { margin-top: var(--space-3); }

/* Value card */
.value-card { gap: var(--space-3); padding-top: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.value-card__index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-text);
}
.value-card__index::after {
  content: "";
  width: 34px;
  height: 10px;
  background:
    radial-gradient(circle at calc(100% - 5px) 50%, transparent 2px, var(--teal) 2.2px, var(--teal) 3.6px, transparent 3.8px),
    linear-gradient(90deg, var(--blue), var(--teal)) left center / calc(100% - 9px) 2px no-repeat;
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.value-card:hover .value-card__index::after { transform: scaleX(1.35); }
.value-card__title { font-size: var(--fs-h4); }
.value-card__text { color: var(--muted); }
/* gradient bar on top */
.value-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  width: 48px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--gradient);
  transition: width var(--dur) var(--ease);
}
.value-card:hover::after { width: 96px; }

/* Vision / mission card */
.vm-card { gap: var(--space-4); }
.vm-card__head { display: flex; align-items: center; gap: var(--space-4); }
.vm-card__title { font-size: var(--fs-h3); }
.vm-card__text { color: var(--muted); font-size: var(--fs-md); }

/* 12. Process strip ========================================================
   <ol class="process" data-process> with six .process__step items.
   JS adds .is-active to each step in sequence, then .is-complete to the list. */
.process {
  position: relative;
  display: grid;
  gap: var(--space-3);
  counter-reset: step;
  margin: 0;
}
.process__step {
  --step-color: var(--border);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease),
    background-color var(--dur-slow) var(--ease);
}
.process__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
  border: 2px solid var(--border);
  transition: color var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.process__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--muted);
  transition: color var(--dur-slow) var(--ease);
}
/* connector (vertical on mobile) */
.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--space-4) + 21px);
  top: 100%;
  width: 2px;
  height: var(--space-3);
  background: var(--border);
  transition: background var(--dur-slow) var(--ease);
}

.process__step.is-active {
  border-color: rgba(20, 184, 138, 0.45);
  box-shadow: var(--shadow), 0 0 0 4px rgba(20, 184, 138, 0.08);
}
.process__step.is-active .process__num {
  color: var(--white);
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(20, 184, 138, 0.16);
  animation: node-pop 600ms var(--ease);
}
.process__step.is-active .process__label { color: var(--navy); }
.process__step.is-active:not(:last-child)::after { background: linear-gradient(180deg, var(--blue), var(--teal)); }

/* Without JS the steps are shown fully lit */
html:not(.js) .process__step .process__num { color: var(--white); background: var(--gradient); border-color: transparent; }
html:not(.js) .process__step .process__label { color: var(--navy); }

@media (min-width: 600px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .process__step::after { display: none; }
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
  .process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-3);
  }
  .process__label { font-size: var(--fs-base); }
  .process__step.is-active { transform: translateY(-6px); }
  /* horizontal connector between steps */
  .process__step:not(:last-child)::after {
    display: block;
    left: 100%;
    top: calc(var(--space-5) + 21px);
    width: var(--space-3);
    height: 2px;
  }
  .process__step.is-active:not(:last-child)::after { background: linear-gradient(90deg, var(--blue), var(--teal)); }
}

/* 13. Philosophy band ====================================================== */
.philosophy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--gradient-dark);
  color: var(--on-dark);
}
.philosophy::before,
.philosophy::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}
.philosophy::before {
  width: 520px; height: 520px;
  top: -260px; right: -120px;
  background: radial-gradient(circle, #1F6FE5, transparent 70%);
  animation: blob-drift-1 24s var(--ease-in-out) infinite alternate;
}
.philosophy::after {
  width: 420px; height: 420px;
  bottom: -220px; left: -120px;
  background: radial-gradient(circle, #14B88A, transparent 70%);
  animation: blob-drift-2 28s var(--ease-in-out) infinite alternate;
}
.philosophy__inner { max-width: 900px; }
.philosophy__inner > * + * { margin-top: var(--space-5); }
.philosophy--center .philosophy__inner { margin-inline: auto; text-align: center; }
.philosophy__statement {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.philosophy__statement .accent {
  background: linear-gradient(120deg, #6FA8FF, #2EE6B0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.philosophy__text { font-size: var(--fs-md); color: var(--on-dark-muted); max-width: 70ch; }
.philosophy--center .philosophy__text { margin-inline: auto; }
.philosophy__closing {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--white);
  max-width: 60ch;
}
.philosophy--center .philosophy__closing { margin-inline: auto; }
.philosophy__closing::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: var(--space-4);
  border-radius: 3px;
  background: linear-gradient(90deg, #6FA8FF, #2EE6B0);
}
.philosophy--center .philosophy__closing::before { margin-inline: auto; }

/* Split layout (About page): heading left, text right, using the full width. */
.philosophy--split .philosophy__head > * + *,
.philosophy--split .philosophy__body > * + * { margin-top: var(--space-5); }
@media (min-width: 900px) {
  .philosophy--split .philosophy__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: center;
    max-width: none;
  }
  .philosophy--split .philosophy__inner > * + * { margin-top: 0; }
  .philosophy--split .philosophy__text,
  .philosophy--split .philosophy__closing { max-width: none; }
}

/* 14. CTA band ============================================================= */
.cta-band { padding-block: var(--section-y); }
.cta-band__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--space-5);
  padding: clamp(2rem, 1.2rem + 4vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-dark);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(31, 111, 229, 0.55), transparent 70%),
    radial-gradient(420px 280px at 0% 100%, rgba(20, 184, 138, 0.45), transparent 70%);
  background-size: 140% 140%;
  animation: gradient-pan 14s var(--ease-in-out) infinite alternate;
}
/* circuit trace accent in the corner */
.cta-band__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  width: clamp(120px, 22vw, 260px);
  height: 16px;
  opacity: 0.55;
  background:
    radial-gradient(circle at calc(100% - 8px) 50%, transparent 3.5px, var(--mint) 4px, var(--mint) 6px, transparent 6.5px),
    linear-gradient(90deg, rgba(46, 230, 176, 0), var(--mint)) left center / calc(100% - 14px) 2px no-repeat;
}
.cta-band__title { color: var(--white); font-size: var(--fs-h2); }
.cta-band__text { color: var(--on-dark-muted); font-size: var(--fs-md); max-width: 56ch; }
.cta-band__content > * + * { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-7); }
}

/* 15. Forms ================================================================ */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: var(--space-2); }
.field__label {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.field__req { color: var(--blue-deep); }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #C6D1E3;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-size: 1rem; /* 16px avoids iOS zoom */
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field__input::placeholder { color: #8591AC; }
.field__input:hover { border-color: #9FB0CE; }
.field__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 229, 0.15);
}
textarea.field__input { min-height: 170px; resize: vertical; }

.field__error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #B42318;
}
.field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #B42318;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.field.is-invalid .field__input {
  border-color: #D92D20;
  background: #FFFBFA;
}
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.15); }
.field.is-invalid .field__error:not(:empty) { display: flex; animation: shake 360ms var(--ease); }
.field.is-valid .field__input { border-color: var(--teal); }

/* honeypot — hidden from people, present for bots */
.form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__note { font-size: var(--fs-sm); color: var(--muted); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
@media (max-width: 599.98px) {
  .form__actions .btn { width: 100%; }
}

/* status message (aria-live region) */
.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid transparent;
}
.form-status:not(:empty) { display: flex; animation: rise-in 500ms var(--ease) both; }
.form-status::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}
.form-status--success {
  color: #05603A;
  background: #ECFDF5;
  border-color: #A6F4C5;
}
.form-status--success::before {
  background-color: var(--teal-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.form-status--error {
  color: #912018;
  background: #FEF3F2;
  border-color: #FECDCA;
}
.form-status--error::before {
  background-color: #B42318;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18h.01'/%3E%3C/svg%3E");
}

/* No-JS result notices: contact.php redirects to contact.html?sent=1#form-sent
   (or ?error=1#form-error). The matching .form-notice shows via :target.
   With JS on, main.js shows the message in [data-form-status] instead. */
.form-status.form-notice { display: none; }
.form-status.form-notice:target { display: flex; }
html.js .form-notice { display: none !important; }

/* 16. Footer =============================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark-muted);
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-size: var(--fs-sm);
}
/* gradient hairline across the top */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-6);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.site-footer__brand > * + * { margin-top: var(--space-4); }
/* the logo mark has navy parts, so it sits on a white badge */
.site-footer__logo {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur) var(--ease);
}
.site-footer__logo:hover { transform: translateY(-2px); }
.site-footer__logo img { width: 132px; height: auto; }
.site-footer__tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--white);
}
.site-footer__bottom {
  padding-block: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__bottom p { color: var(--on-dark-muted); }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--mint); }

/* 17. Scroll reveal ========================================================
   Only hidden when <html class="js"> is present, so content shows without JS.
   data-reveal="" | "up" (default) | "fade" | "left" | "right" | "zoom"
   data-delay="150" (ms) on an element, or data-reveal-stagger on a parent
   to stagger its [data-reveal] children automatically. */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.reveal-ready [data-reveal="fade"] { transform: none; }
html.reveal-ready [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
html.reveal-ready [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
html.reveal-ready [data-reveal="zoom"] { transform: scale(0.94); }
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* once revealed, cards return to their own fast hover transitions */
html.reveal-ready .card[data-reveal].is-visible {
  transition:
    opacity var(--dur-slow) var(--ease) var(--reveal-delay, 0ms),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
html.reveal-ready .card--interactive[data-reveal].is-visible:hover,
html.reveal-ready a.card[data-reveal].is-visible:hover { transform: translateY(-6px); }

/* 18. Keyframes ============================================================ */
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes nav-item-in {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes blob-drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 8%, 0) scale(1.08); }
  100% { transform: translate3d(4%, 14%, 0) scale(0.96); }
}
@keyframes blob-drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10%, -8%, 0) scale(1.1); }
  100% { transform: translate3d(18%, -2%, 0) scale(1); }
}
@keyframes blob-drift-3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(-20%, -12%, 0) scale(1.1); }
  100% { transform: translate3d(12%, 10%, 0) scale(1); }
}
@keyframes circuit-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes node-in {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@keyframes node-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes gradient-pan {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(8deg) scale(1.05); }
  60% { transform: rotate(-6deg); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* 19. Reduced motion ======================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
  html.reveal-ready .circuit-divider[data-reveal]::before { transform: none; }
  .hero-bg__blob,
  .philosophy::before,
  .philosophy::after { animation: none !important; }
  .card:hover,
  a.card:hover,
  .btn:hover,
  .process__step.is-active { transform: none !important; }
}

/* === page partials are appended below === */

/* --- partials/about.css --- */
/* About page ============================================================== */

/* About Us: heading beside the copy from 900px; heading stays in view while reading */
.about-intro__heading { margin-bottom: 0; }
.about-intro__copy { max-width: 68ch; }
@media (min-width: 900px) {
  .about-us-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .about-intro__heading {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* Core values: wider intro, icon + index row on each card */
.values__heading { max-width: 880px; }
.value-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.icon-badge--sm { width: 46px; height: 46px; border-radius: 13px; }
.icon-badge--sm svg { width: 23px; height: 23px; }

/* Seven cards: centre the last one instead of leaving it alone on the left */
@media (min-width: 600px) and (max-width: 899.98px) {
  .values-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5 * clamp(1rem, 0.6rem + 1.5vw, 1.75rem));
  }
}
@media (min-width: 900px) {
  .values-grid > li:last-child:nth-child(3n + 1) { grid-column: 2; }
}

/* --- partials/contact.css --- */
/* Contact page ============================================================= */
/* No-JS result notices sit above the form card; give them breathing room
   when :target shows one. */
.form-notice:target { margin-bottom: var(--space-5); }

/* --- partials/services.css --- */
/* === services.html === */
/* Keep the service title/text clear of the absolutely positioned number (top right). */
@media (min-width: 900px) {
  .services-list .service-card__body { padding-right: 2.25rem; }
}
.services-list .service-card__text { max-width: 75ch; }

/* --- Clients ribbon (home) --- */
.clients {
  position: relative;
  padding-block: clamp(1.75rem, 1.25rem + 3vw, 3.75rem);
  background:
    linear-gradient(90deg, transparent, rgba(31, 111, 229, 0.35), rgba(20, 184, 138, 0.35), transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(31, 111, 229, 0.35), rgba(20, 184, 138, 0.35), transparent) bottom / 100% 1px no-repeat,
    var(--surface);
  overflow: hidden;
}
.clients__head {
  margin-bottom: var(--space-6);
  text-align: center;
}
.clients__head .eyebrow { justify-content: center; }
.clients__marquee {
  --clients-gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: var(--space-3); /* room for the hover lift and shadows */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients__track {
  display: flex;
  flex: none;
  gap: var(--clients-gap);
  animation: clients-scroll 36s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.clients__set {
  display: flex;
  flex: none;
  gap: var(--clients-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients__chip {
  display: grid;
  place-items: center;
  width: clamp(168px, 140px + 8vw, 220px);
  height: clamp(84px, 72px + 3vw, 104px);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.clients__chip:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 229, 0.35);
  box-shadow: var(--shadow);
}
.client-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(56px, 48px + 2vw, 72px);
  object-fit: contain;
}
.client-logo--svg { height: clamp(34px, 30px + 1vw, 42px); }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--clients-gap) / 2)); }
}

/* Still row for reduced motion: show each client once, centred */
@media (prefers-reduced-motion: reduce) {
  .clients__marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .clients__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .clients__set { flex-wrap: wrap; justify-content: center; }
  .clients__set[aria-hidden="true"],
  .clients__item[aria-hidden="true"] { display: none; }
  .clients__chip:hover { transform: none; }
}
.clients__chip--lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: auto;
  min-width: clamp(168px, 140px + 8vw, 220px);
  padding-inline: var(--space-5);
  white-space: nowrap;
}
.client-logo--badge {
  flex: none;
  height: clamp(60px, 52px + 2vw, 76px);
}
.client-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.client-name small {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.client-name--wb { color: #3B5A80; }
.client-name--wb small { color: #5A7394; }

