/* =====================================================================
   HALDROY PVT. LTD. — Design System
   Simple · Light · Premium · Technical · Corporate
   ---------------------------------------------------------------------
   1.  Design tokens (color, type, spacing, radius, shadow)
   2.  Base / reset
   3.  Blueprint background system
   4.  Typography
   5.  Layout primitives (container, section, grid)
   6.  Buttons
   7.  Navbar
   8.  Hero
   9.  Cards (glass, trust, service, value, cert, partner)
   10. Editorial "Why" / numbered layout
   11. Process timeline
   12. CTA band
   13. Contact / forms
   14. Footer
   15. Scroll-reveal animation utilities
   16. Responsive
   17. Reduced-motion
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. DESIGN TOKENS                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Surfaces */
  --bg: #f6f7f9;
  --bg-alt: #eef1f5;
  --surface: #ffffff;

  /* Ink */
  --ink-900: #0d131c;   /* almost black */
  --ink-700: #1d2733;   /* charcoal */
  --ink-500: #4a566a;   /* muted body */
  --ink-400: #6b7688;   /* faint */

  /* Accent — deep navy / steel blue */
  --navy-900: #0c2036;
  --navy-800: #10304f;
  --navy-700: #17456f;
  --steel-600: #23608f;
  --steel-500: #2c74a8;
  --steel-300: #7fa9c9;

  /* Lines & borders */
  --line: rgba(12, 32, 54, 0.10);
  --line-strong: rgba(12, 32, 54, 0.16);
  --blueprint: rgba(23, 69, 111, 0.055);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.60);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-ring: rgba(23, 69, 111, 0.10);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12, 32, 54, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(12, 32, 54, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(12, 32, 54, 0.28);
  --shadow-glass: 0 12px 40px -18px rgba(12, 32, 54, 0.22);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --container-narrow: 900px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);   /* fast out, settles quickly */
  --ease-back: cubic-bezier(0.34, 1.36, 0.64, 1); /* slight overshoot */
  --dur: 0.45s;
  --dur-fx: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background-color: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--steel-600); text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--steel-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  top: 8px;
  z-index: 2000;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

.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;
}

/* ------------------------------------------------------------------ */
/* 3. BACKGROUND SYSTEM                                                */
/* ------------------------------------------------------------------ */
/* Fixed layer stack (back -> front):
   .bg-logo    : the Haldroy logo watermark (brand image)
   .bg-frost   : frosted glass layer (blurs the logo softly)
   .bg-glow    : soft radial washes for depth
   All content and cards render above these layers.
   (No grid pattern — it read like a whiteboard.)                      */

/* Brand logo watermark */
.bg-logo {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-color: var(--bg);
  background-image: url("../assets/haldroy-logo-1.jpg");
  background-repeat: no-repeat;
  background-position: center 26%;
  background-size: min(78vmin, 720px);
}

/* Frosted glass over the logo — the "glass" layer.
   Kept light enough that the logo reads as a soft watermark. */
.bg-frost {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: rgba(247, 248, 250, 0.30);
  -webkit-backdrop-filter: saturate(120%) blur(13px);
  backdrop-filter: saturate(120%) blur(13px);
}

/* Grid layer disabled — no more whiteboard look. Kept as a no-op so the
   markup can stay consistent across pages. */
.bg-blueprint { display: none; }

/* soft radial washes to add depth without color noise */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 0%, rgba(44, 116, 168, 0.09), transparent 70%),
    radial-gradient(50% 40% at 0% 15%, rgba(23, 69, 111, 0.06), transparent 70%),
    radial-gradient(70% 60% at 50% 120%, rgba(12, 32, 54, 0.05), transparent 70%);
}
/* Fallback for browsers without backdrop-filter: keep the logo faint & readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bg-logo { opacity: 0.08; }
  .bg-frost { background: rgba(247, 248, 250, 0.5); }
}

/* ------------------------------------------------------------------ */
/* 4. TYPOGRAPHY                                                       */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-500);
  line-height: 1.7;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--steel-500);
  display: inline-block;
}

.text-balance { text-wrap: balance; }
.accent-ink { color: var(--navy-800); }

/* ------------------------------------------------------------------ */
/* 5. LAYOUT PRIMITIVES                                                */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: linear-gradient(180deg, rgba(238, 241, 245, 0.7), rgba(238, 241, 245, 0)); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: ""; width: 26px; height: 1.5px; background: var(--steel-500); display: inline-block;
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------------ */
/* 6. BUTTONS                                                          */
/* ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(12, 32, 54, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(12, 32, 54, 0.6); }
.btn--ghost {
  background: var(--glass-bg-strong);
  color: var(--navy-800);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--steel-500); box-shadow: var(--shadow-md); }
.btn--light {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--light:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---- 6b. MOTION BUTTON --------------------------------------------- */
/* Circle on the left holds the arrow and expands across the whole pill
   on hover, while the label flips to the contrasting ink.
   Palette mapped to Haldroy navy instead of a generic "primary".      */
.btn--motion {
  --mb-size: 48px;                 /* circle diameter */
  --mb-pad: 5px;                   /* track padding around the circle */
  --mb-fill: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  --mb-ink: var(--navy-800);       /* label at rest */
  --mb-ink-hover: #ffffff;         /* label once flooded */
  --mb-icon: #ffffff;              /* arrow inside the circle */

  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-start;
  gap: 0;
  padding: var(--mb-pad) 30px var(--mb-pad) var(--mb-pad);
  min-height: calc(var(--mb-size) + var(--mb-pad) * 2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--mb-ink);
  box-shadow: var(--shadow-sm);
}
.btn--motion:hover,
.btn--motion:focus-visible { border-color: var(--navy-800); box-shadow: var(--shadow-md); }

.btn__circle {
  position: absolute;
  z-index: -1;                     /* above the track, below icon + label */
  left: var(--mb-pad);
  top: var(--mb-pad);
  width: var(--mb-size);
  height: var(--mb-size);
  border-radius: var(--r-pill);
  background: var(--mb-fill);
  transition: width 0.5s var(--ease);
}
.btn--motion:hover .btn__circle,
.btn--motion:focus-visible .btn__circle { width: calc(100% - var(--mb-pad) * 2); }

.btn__icon {
  flex: none;
  width: var(--mb-size);
  height: var(--mb-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mb-icon);
  transition: transform 0.5s var(--ease);
}
.btn--motion .btn__icon svg { width: 20px; height: 20px; }
.btn--motion:hover .btn__icon,
.btn--motion:focus-visible .btn__icon { transform: translateX(6px); }

.btn__label {
  margin-left: 14px;
  color: var(--mb-ink);
  white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.btn--motion:hover .btn__label,
.btn--motion:focus-visible .btn__label { color: var(--mb-ink-hover); }

/* on dark surfaces (CTA band) — white fill, navy ink */
.btn--motion.btn--motion-invert {
  --mb-fill: linear-gradient(180deg, #ffffff, #e6edf4);
  --mb-ink: #ffffff;
  --mb-ink-hover: var(--navy-900);
  --mb-icon: var(--navy-900);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: none;
}
.btn--motion.btn--motion-invert:hover,
.btn--motion.btn--motion-invert:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

/* full-width — label optically centred, as in the source component */
.btn--motion.btn--block {
  padding-right: var(--mb-pad);
  justify-content: flex-start;
}
.btn--motion.btn--block .btn__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-left: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--steel-600);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--navy-800); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------------ */
/* 7. NAVBAR                                                           */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  background: rgba(246, 247, 249, 0.55);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nav.scrolled {
  background: rgba(248, 249, 251, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(12, 32, 54, 0.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  font-size: 1.28rem;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { line-height: 1; }
.brand__name small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--steel-600);
  margin-top: 3px;
}

/* Desktop: lay out links + CTA inline within the menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover { color: var(--navy-900); background: rgba(23, 69, 111, 0.07); }
/* No persistent "selected" highlight on nav items — hover/focus only.
   aria-current is still set in JS for screen-reader context, but carries
   no distinct visual styling by request. */

.nav__cta { margin-left: 8px; }
.nav__cta .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg-strong);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* 8. HERO                                                             */
/* ------------------------------------------------------------------ */
.hero { position: relative; padding-top: clamp(120px, 16vw, 168px); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__title { margin-bottom: 22px; }
.hero__statement {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--steel-500);
  background: linear-gradient(90deg, rgba(44,116,168,0.07), transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 500;
  color: var(--ink-700);
}
.hero__cta { margin-top: 32px; }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(12,32,54,0.16)); }

.page-hero { padding-top: clamp(116px, 15vw, 156px); padding-bottom: clamp(28px, 4vw, 40px); }
.page-hero .lead { margin-top: 14px; }

/* ------------------------------------------------------------------ */
/* 9. CARDS                                                            */
/* ------------------------------------------------------------------ */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--r-lg);
  position: relative;
  isolation: isolate;
}
/* subtle inner ring so glass reads on light bg */
.glass::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--glass-ring);
  pointer-events: none;
}

.card {
  padding: clamp(22px, 2.4vw, 30px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.95);
}
.card--hover:hover .card__ring { box-shadow: inset 0 0 0 1px rgba(44,116,168,0.35); }

.card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eaf0f6);
  border: 1px solid var(--line);
  color: var(--steel-600);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 0.98rem; }

/* eyebrow numbering on service cards */
.card__index {
  position: absolute; top: 20px; right: 22px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--steel-300);
}

/* ---- 9b. INTERACTIVE FILL CARD (expanding dot → full-bleed navy) --- */
/* Ported from the "interactive hover button" pattern: a small accent dot
   grows to flood the whole surface while the label + arrow slide in.
   Colors mapped to the Haldroy navy/steel palette.                     */
.card--fx {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform;
  /* transform stays short so the cursor tilt tracks the pointer without lag */
  transition: transform 0.16s var(--ease-snap),
              box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
/* children are flex items / absolute, so z-index alone lifts them above the fill */
.card--fx > * { z-index: 1; }
.card--fx .card__icon { align-self: flex-start; }
.card--fx p { margin-bottom: 0; }

.card--fx h3,
.card--fx p,
.card--fx .card__index {
  transition: color 0.35s var(--ease), transform 0.42s var(--ease-back);
}
.card--fx .card__icon {
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              transform 0.45s var(--ease-back);
}

/* bottom action row — pinned to the card base */
.card__go {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-600);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-back),
              color 0.35s var(--ease);
}
.card__go svg { width: 16px; height: 16px; transition: transform 0.42s var(--ease-back); }
.card--fx .card__go { margin-top: auto; padding-top: 18px; }

@media (hover: hover) and (pointer: fine) {
  /* the dot: sits bottom-left, 10px, steel */
  .card--fx::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 26px;
    top: calc(100% - 36px);
    width: 10px;
    height: 10px;
    border-radius: var(--r-pill);
    background-color: var(--steel-500);
    background-image: none;
    box-shadow: 0 0 0 4px rgba(44, 116, 168, 0.14);
    pointer-events: none;
    transition: left var(--dur-fx) var(--ease), top var(--dur-fx) var(--ease),
                width var(--dur-fx) var(--ease), height var(--dur-fx) var(--ease),
                border-radius var(--dur-fx) var(--ease),
                background-color 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                transform var(--dur-fx) var(--ease);
  }

  /* fill floods the card, blooming from wherever the pointer is
     (--fx-px / --fx-py are updated live by js/main.js) */
  .card--fx:hover::before,
  .card--fx:focus-within::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--r-lg);
    transform: scale(1.04);
    box-shadow: none;
    background-color: var(--navy-900);
    background-image:
      radial-gradient(85% 85% at var(--fx-px, 12%) var(--fx-py, 104%),
                      var(--steel-500) 0%, rgba(23, 69, 111, 0) 62%),
      linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 100%);
  }

  /* inner ring flips to a light hairline over the dark fill */
  .card--fx:hover::after,
  .card--fx:focus-within::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }

  /* lift + tilt toward the cursor (--fx-rx / --fx-ry set by js) */
  .card--fx.card--hover:hover {
    transform: perspective(900px)
               translateY(-8px)
               rotateX(var(--fx-rx, 0deg))
               rotateY(var(--fx-ry, 0deg));
    border-color: rgba(12, 32, 54, 0.55);
    box-shadow: var(--shadow-lg);
  }
  .card--fx.card--hover:active {
    transform: perspective(900px) translateY(-3px) scale(0.994);
    transition-duration: 0.08s;
  }

  /* content cascade — tiny stagger in, instant out */
  .card--fx:hover h3,
  .card--fx:focus-within h3 { color: #ffffff; transition-delay: 0.03s; }
  .card--fx:hover p,
  .card--fx:focus-within p { color: rgba(226, 236, 245, 0.80); transition-delay: 0.06s; }
  .card--fx:hover .card__index,
  .card--fx:focus-within .card__index {
    color: rgba(255, 255, 255, 0.42);
    transform: translateY(-2px);
  }

  .card--fx:hover .card__icon,
  .card--fx:focus-within .card__icon {
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    border-color: rgba(255, 255, 255, 0.26);
    color: #d8e8f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-3px) scale(1.06);
  }

  /* label + arrow snap in from the left, mirroring the source effect */
  .card--fx .card__go { opacity: 0; transform: translateX(-16px); }
  .card--fx:hover .card__go,
  .card--fx:focus-within .card__go {
    opacity: 1;
    transform: translateX(0);
    color: #ffffff;
    transition-delay: 0.05s;
  }
  .card--fx:hover .card__go svg,
  .card--fx:focus-within .card__go svg { transform: translateX(3px); }
  .card--fx:active .card__go svg { transform: translateX(7px); }
}

/* Value cards — compact */
.value-card { padding: 22px; }
.value-card .card__icon { width: 44px; height: 44px; margin-bottom: 14px; }
.value-card .card__icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.08rem; }
.value-card p { font-size: 0.92rem; }

/* ------------------------------------------------------------------ */
/* 10. EDITORIAL "WHY" NUMBERED LAYOUT                                 */
/* ------------------------------------------------------------------ */
.why-list { display: grid; gap: 0; }
.why-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item__num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, var(--steel-500), var(--navy-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-item__body h3 { margin-bottom: 8px; }
.why-item__body p { color: var(--ink-500); max-width: 62ch; margin: 0; }

/* ------------------------------------------------------------------ */
/* 11. PROCESS TIMELINE                                                */
/* ------------------------------------------------------------------ */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding-top: 4px; }
.step__dot {
  width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--navy-800);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--ink-500); }

/* ------------------------------------------------------------------ */
/* 12. CTA BAND                                                        */
/* ------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); color: #fff; }
.cta-band__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 120% at 90% 10%, rgba(44,116,168,0.55), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
}
.cta-band__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(70% 100% at 30% 0%, #000, transparent);
  mask-image: radial-gradient(70% 100% at 30% 0%, #000, transparent);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 56ch; }
.cta-band .eyebrow { color: var(--steel-300); }
.cta-band .eyebrow::before { background: var(--steel-300); }

/* ------------------------------------------------------------------ */
/* 13. CONTACT / FORMS                                                 */
/* ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 52px); align-items: start; }

.info-list { display: grid; gap: 16px; margin-top: 26px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
}
.info-item .card__icon { margin-bottom: 0; width: 46px; height: 46px; flex: none; }
.info-item__label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-400); font-weight: 600; }
.info-item a, .info-item p { font-weight: 600; color: var(--ink-900); word-break: break-word; margin: 2px 0 0; }
.info-item a:hover { color: var(--steel-600); }

.form { padding: clamp(24px, 3vw, 38px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink-900);
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.85);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--steel-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44,116,168,0.14);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid,
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #c0392b;
}
.field__error {
  font-size: 0.8rem; color: #c0392b; margin-top: 6px; min-height: 0;
  opacity: 0; transform: translateY(-3px); transition: opacity 0.2s, transform 0.2s;
}
.field.has-error .field__error { opacity: 1; transform: translateY(0); }

.form__note { font-size: 0.85rem; color: var(--ink-400); margin-top: 6px; }
.form__status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md);
  font-size: 0.92rem; font-weight: 500; display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-success { background: rgba(39,174,96,0.12); color: #1e7a45; border: 1px solid rgba(39,174,96,0.3); }
.form__status.is-error { background: rgba(192,57,43,0.1); color: #a5281c; border: 1px solid rgba(192,57,43,0.3); }

/* ------------------------------------------------------------------ */
/* 14. FOOTER                                                          */
/* ------------------------------------------------------------------ */
.footer { position: relative; color: rgba(255,255,255,0.72); margin-top: clamp(40px, 6vw, 72px); }
.footer__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--navy-900), #081726); }
.footer__inner { padding-block: clamp(48px, 6vw, 72px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer .brand { color: #fff; }
.footer__tag { color: rgba(255,255,255,0.62); font-size: 0.95rem; max-width: 44ch; margin-top: 16px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__contact a, .footer__contact p { color: rgba(255,255,255,0.72); font-size: 0.95rem; display: block; margin-bottom: 10px; word-break: break-word; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.86rem; color: rgba(255,255,255,0.55);
}

/* ------------------------------------------------------------------ */
/* PARTNER / CERT SPECIFIC                                             */
/* ------------------------------------------------------------------ */
.logo-slot {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.5);
  color: var(--ink-400);
  padding: 16px;
}
.logo-slot span { font-size: 0.82rem; }
.logo-slot strong { display: block; font-size: 0.9rem; color: var(--ink-500); margin-bottom: 4px; }

.cert-card { padding: 0; overflow: hidden; }
.cert-card__badge {
  padding: 34px; text-align: center;
  background: linear-gradient(160deg, rgba(23,69,111,0.06), rgba(44,116,168,0.02));
  border-bottom: 1px solid var(--line);
}
.cert-card__seal {
  width: 84px; height: 84px; margin: 0 auto 16px;
  color: var(--navy-800);
}
.cert-card__body { padding: 26px 28px 30px; }
.cert-card__body h3 { margin-bottom: 8px; }
.cert-card__body p { color: var(--ink-500); font-size: 0.96rem; }
.doc-slot {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px dashed var(--line-strong); background: rgba(255,255,255,0.5);
  font-size: 0.85rem; color: var(--ink-400);
  display: flex; align-items: center; gap: 10px;
}

/* ------------------------------------------------------------------ */
/* MISC BLOCKS                                                         */
/* ------------------------------------------------------------------ */
.reach {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.reach__visual svg { width: 100%; height: auto; }

.statement-band {
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.statement-band .big {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto 18px;
  letter-spacing: -0.02em;
}

.mission-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mission-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 500; color: var(--ink-700);
}
.mission-list li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(160deg, var(--steel-500), var(--navy-800));
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  font-weight: 500; font-size: 0.92rem; color: var(--ink-700);
}
.chip svg { width: 16px; height: 16px; color: var(--steel-600); }

/* Detailed service rows (services page) */
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: clamp(24px, 3vw, 34px); }
.svc .card__icon { margin-bottom: 0; }
.svc__body h3 { margin-bottom: 8px; }
.svc__body p { color: var(--ink-500); margin: 0; }

/* Careers list note */
.note-card { padding: 22px 26px; border-left: 3px solid var(--steel-500); }
.note-card em { color: var(--ink-500); }

/* ------------------------------------------------------------------ */
/* 15. SCROLL-REVEAL                                                   */
/* ------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ------------------------------------------------------------------ */
/* 16. RESPONSIVE                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .timeline::before { display: none; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .nav__inner { height: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  /* Mobile menu panel */
  .nav__menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(248,249,251,0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px clamp(20px, 5vw, 40px) 26px;
    display: block;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .nav.menu-open .nav__menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav__menu .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  }
  .nav__menu .nav__links a { padding: 13px 16px; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav__menu .nav__cta { display: block; margin: 16px 0 0; }
  .nav__menu .nav__cta .btn { width: 100%; padding: 14px; font-size: 1rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .reach { grid-template-columns: 1fr; }
  .reach__visual { order: -1; max-width: 460px; }
  .why-item { grid-template-columns: 1fr; gap: 6px; }
  .why-item__num { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .mission-list { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .btn-row .btn--motion { padding-right: var(--mb-pad); }
  .btn-row .btn--motion .btn__label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 12px;
  }
  .footer__bottom { flex-direction: column; }
  .cta-band { border-radius: var(--r-lg); }
}

/* ------------------------------------------------------------------ */
/* 17. REDUCED MOTION                                                  */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card--hover:hover { transform: none !important; }
}
