/* ==========================================================================
   Illumexa — Base styles (shared by every page)
   1. Fonts  2. Variables  3. Reset  4. Typography  5. Layout
   6. Buttons & UI  7. Header  8. Footer  9. Search  10. Motion  11. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Variables ------------------------------------------------------------ */
:root {
  /* Colour */
  --c-lime: #cdf200;
  --c-lime-bright: #d4ff00;
  --c-lime-soft: #f5fec6;
  --c-lime-wash: #f9fce6;
  --c-lime-ink: #587000; /* small lime text on white/grey: 5.6:1 on white, 4.5:1 on #e7e7e7 */
  --c-cream: #fcfeee;
  --c-olive: #5a5622;
  --c-olive-ink: #6b7c00;
  --c-black: #000;
  --c-ink: #0b0b0b;
  --c-night: #0b0f08; /* the dark ground of the header and the dark homepage sections */
  --c-mist: #f5f7dd; /* their light text, and the pale ground of "Why choose" */
  --c-text: #141414;
  --c-text-soft: #3d3d3d;
  --c-white: #fff;
  --c-grey-100: #f2f2f2;
  --c-grey-300: #d9d9d9;
  --c-grey-500: #8c8c8c;
  --c-blue: #3b68ff;
  --c-blue-soft: #dce3fc;
  --c-blue-line: #cbd5fb;

  /* Type */
  --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1312px;
  --gutter: clamp(20px, 4.45vw, 64px);
  --header-inset: 0px;
  --header-h: 72px;
  --header-h-full: 88px; /* the bar at the top of the page; it eases down to --header-h once scrolled.
                            .page-top and scroll-padding-top stay on --header-h on purpose. */

  /* Shape */
  --radius-xs: 4px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Motion: quick to respond, long soft landing. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur: 350ms;
  --dur-slow: 800ms;
  --stagger: 90ms;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

/* Zero specificity so component classes can still set their own padding. */
:where(ul[role="list"], ol[role="list"]),
.nav-list {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
}

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

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

em {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.why :focus-visible,
.services :focus-visible,
.faq :focus-visible,
.cta :focus-visible {
  outline-color: var(--c-ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute !important; /* utility must always win */
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  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: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-lime);
  color: var(--c-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--c-ink);
}

/* 4. Typography ----------------------------------------------------------- */
.text-lime {
  color: var(--c-lime);
}

/* Brand lime on white is very light; a 1px olive edge keeps large lime words
   legible without changing their flat neon look. */
.text-lime--on-light {
  text-shadow:
    0 0 1px rgba(86, 104, 0, 0.9),
    0 0 1px rgba(86, 104, 0, 0.9);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-lime);
}

/* A short lime dash leads the label ("— HOW IT WORKS"). */
.eyebrow--dash {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
}

.eyebrow--dash::before {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 1px;
  background: var(--c-lime);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.1rem + 2.2vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.037em;
  color: var(--c-black);
}

/* 5. Layout --------------------------------------------------------------- */
/* Content sliding in from the side must never widen the page, even for a frame.
   (clip, unlike hidden, doesn't make main a scroll container.) */
main {
  overflow-x: clip;
}

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

.container--wide {
  --container: 1360px;
  --gutter: clamp(20px, 2.8vw, 40px);
}

/* Inner pages that open on white: clear the bar at its resting (full) height. */
.page-top {
  padding-top: calc(var(--header-h-full) + var(--page-top-gap, 78px));
}

/* 6. Buttons & UI --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur-fast) linear;
}

.btn--lime {
  background: var(--c-lime);
  color: var(--c-ink);
}

.btn--lime:hover {
  background: var(--c-lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(190, 230, 0, 0.75);
}

.btn--lime:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--sm {
  height: 36px;
  padding-inline: 24px;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.btn--md {
  height: 44px;
  padding-inline: 33px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.btn--lg {
  height: 72px;
  padding-inline: 48px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn--xl {
  height: 60px;
  padding-inline: 38px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.btn--outline {
  border: 1px solid #dcdcdc;
  background: var(--c-white);
  color: var(--c-ink);
}

.btn--outline:hover {
  border-color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
}

/* Olive gradient label ("FAQ", "Our Story", "Governance"). */
.pill {
  display: inline-grid;
  place-items: center;
  min-width: 140px;
  height: 28px;
  padding-inline: 16px;
  border: 1px solid #8a8650;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #8f8a5e 0%, #d9d7a0 100%);
  color: var(--c-lime);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(40, 40, 0, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(205, 242, 0, 0.55);
  border-radius: var(--radius-pill);
  background: rgba(88, 88, 90, 0.6);
  color: var(--c-lime);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #1f1f1f;
  border-radius: 50%;
  background: #0a0a0a;
  color: var(--c-white);
  font-size: 18px;
  transition:
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.icon-btn:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
  transform: translateY(-2px);
}

/* Dark gradient card with a faint lime glow (Services grid, service details). */
.dark-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(150, 175, 20, 0.2) 0%, rgba(150, 175, 20, 0) 34%),
    linear-gradient(140deg, #0a0a0a 0%, #151515 45%, #2c2c2c 100%);
  color: var(--c-white);
}

.dark-card__icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: -2px 0 0 -2px;
  color: var(--c-lime);
}

/* World map with pins (About, Contact). The canvas is sized and offset per use so the
   visible crop matches the design; pins sit at their geographic positions on the map. */
.world-map {
  position: relative;
  overflow: hidden;
}

.world-map__canvas {
  position: relative;
  width: var(--map-width, 100%);
  margin-left: var(--map-left, 0%);
  margin-top: var(--map-top, 0%);
}

.world-map__land {
  width: 100%;
  height: auto;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}

/* Positions on world-map.svg (Mercator, 170°W–190°E, 84°N–58°S). */
.map-pin--usa { --x: 20.28%; --y: 53.14%; }
.map-pin--europe { --x: 50.56%; --y: 42.02%; }
.map-pin--india { --x: 69.17%; --y: 60.42%; }

.map-pin__marker {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: clamp(30px, 3.9vw, 56px);
  max-width: none; /* the pin's anchor is zero-width, so the global 100% cap would hide it */
  height: auto;
  translate: -50% 0;
  filter: drop-shadow(0 6px 8px rgba(110, 140, 0, 0.3));
}

.map-pin::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(40px, 5vw, 72px);
  height: clamp(12px, 1.4vw, 20px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 215, 0, 0.35), rgba(170, 215, 0, 0));
  translate: -50% -50%;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ccc00;
  box-shadow: 0 0 0 4px rgba(156, 204, 0, 0.18);
  translate: -50% -50%;
}

.map-pin__label {
  position: absolute;
  left: 0;
  top: clamp(16px, 1.8vw, 26px);
  translate: -50% 0;
  padding: 0.55em 1.35em;
  border-radius: 10px;
  background: var(--c-white);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.3);
  color: var(--c-black);
  font-family: var(--font-body);
  font-size: clamp(0.6875rem, 0.45rem + 0.95vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 7. Header --------------------------------------------------------------- */
/* At the top of the page the header is a transparent stage over the whole viewport with the
   bar resting, a little taller, at its top edge; once the page has moved (.is-scrolled, set by
   main.js) the stage collapses onto the bar and the bar eases down to --header-h. The stage
   never takes clicks: only the bar does, so the hero beneath stays usable. */
.site-header {
  position: fixed;
  inset: var(--header-inset);
  z-index: 100;
  pointer-events: none;
  animation: header-in 700ms var(--ease-out) both;
}

.site-header.is-scrolled {
  bottom: auto;
}

/* A flat near-black band the full width of the page, as in the homepage design: the
   content sits 106px in from the left and 118px from the right at 1440. */
.site-nav {
  --c-lime: #c6e70b;
  --c-lime-bright: #d7f23e;
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h-full);
  padding: 0 118px 0 106px;
  background: var(--c-night);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--c-mist);
  pointer-events: auto;
  transition:
    height 520ms var(--ease-expo),
    background-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Scrolled: the bar eases down to --header-h and turns translucent. */
.site-header.is-scrolled .site-nav {
  height: var(--header-h);
  background: rgba(10, 15, 7, 0.86);
  box-shadow:
    0 14px 40px -18px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(245, 247, 221, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 8px;
}

/* The supplied mark is a little narrower than its slot; it sits centred in it, so the
   wordmark and everything after it keep their positions. */
.brand__mark {
  width: 34px;
  height: 44px;
  object-fit: contain;
}

.brand__word {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-display);
  color: var(--c-white);
  line-height: 1;
}

.brand__name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.brand__sub {
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav__menu {
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: 98px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  font-size: 1.0625rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(245, 247, 221, 0.74);
  transition: color var(--dur-fast) linear;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.12em;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav-link:hover {
  color: var(--c-mist);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-lime);
}

.nav-list__cta {
  display: none;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}

/* Search is a round outlined button with a lime lens; its old text label is gone. */
.nav-search {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 247, 221, 0.12);
  border-radius: 50%;
  color: rgba(245, 247, 221, 0.85);
  transition:
    color var(--dur-fast) linear,
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.nav-search .icon {
  width: 18px;
  height: 18px;
}

.nav-search__label {
  display: none;
}

.nav-search:hover {
  border-color: rgba(198, 231, 11, 0.6);
  background: rgba(198, 231, 11, 0.08);
  color: var(--c-lime);
}

/* "Pitch to us →": a 48px lime pill in sentence case. */
.site-nav__pitch {
  height: 48px;
  padding-inline: 24px;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav__pitch .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav__pitch:hover .icon {
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) linear;
}

.nav-toggle__bar {
  top: 21px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  left: 0;
}

.nav-toggle__bar::before {
  transform: translateY(-7px);
}

.nav-toggle__bar::after {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: rotate(-45deg);
}

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 85px;
  padding-bottom: clamp(48px, 14vw, 200px);
  background: var(--c-black);
  color: var(--c-white);
}

.site-footer__outline {
  position: absolute;
  top: 88px;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(64px, 19.3vw, 278px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(170, 200, 0, 0.42);
  pointer-events: none;
  user-select: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 51% 25.5% 1fr;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.07em;
}

.site-footer__about {
  max-width: 390px;
  margin-top: 33px;
  color: #bdbdbd;
  font-size: 0.97rem;
  line-height: 1.5;
}

.site-footer__social {
  display: flex;
  gap: 16px;
  margin-top: 23px;
}

.site-footer__heading {
  padding-top: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.site-footer__links {
  display: grid;
  gap: 12px;
  margin-top: 21px;
}

.site-footer__links a {
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #d6d6d6;
  transition: color var(--dur-fast) linear, transform var(--dur) var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--c-lime);
  transform: translateX(3px);
}

.site-footer__bottom {
  margin-top: 80px;
  border-top: 1px solid #161616;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 32px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-grey-500);
}

.site-footer__meta {
  display: flex;
  gap: 30px;
}

/* Staff link to the deals app (deals.illumexasolutions.com), in the footer's bottom bar. */
.site-footer__meta {
  align-items: center;
  flex-wrap: wrap;
}

.site-footer__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(205, 242, 0, 0.45);
  border-radius: 999px;
  color: var(--c-lime);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.site-footer__login .icon {
  width: 14px;
  height: 14px;
  transition: transform 450ms var(--ease-expo);
}

.site-footer__login:hover,
.site-footer__login:focus-visible {
  border-color: var(--c-lime);
  background: var(--c-lime);
  color: var(--c-black);
}

.site-footer__login:hover .icon {
  transform: translateX(3px);
}

.site-footer__login:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .site-footer__login { min-height: 44px; }
}

/* 9. Search dialog -------------------------------------------------------- */
.search {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100svh - 120px);
  margin: 96px auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(205, 242, 0, 0.25);
  border-radius: var(--radius-xl);
  background: rgba(36, 35, 14, 0.97);
  color: var(--c-white);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
}

.search[open] {
  display: flex;
  flex-direction: column;
  animation: search-in 320ms var(--ease-out);
}

.search::backdrop {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.search__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--dur) var(--ease-out);
}

.search__form:focus-within {
  box-shadow: inset 0 -2px 0 var(--c-lime);
}

/* The brand mark heads the field. It keeps the 20px slot the lens had, so the field and
   the Esc key stay exactly where they were. */
.search__icon {
  flex-shrink: 0;
  width: 20px;
  height: 26px;
  object-fit: contain;
}

.search__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  outline: none;
}

.search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__close {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--dur-fast) linear, color var(--dur-fast) linear;
}

.search__close:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
}

.search__results {
  margin: 0;
  padding: 8px;
  overflow-y: auto;
}

.search__result {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background-color var(--dur-fast) linear;
}

.search__result:hover,
.search__result:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.search__type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.search__label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.search__empty {
  padding: 18px 14px;
  color: rgba(255, 255, 255, 0.65);
}

@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

/* 10. Motion -------------------------------------------------------------- */
@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
}

/* Reveal system ------------------------------------------------------------
   One motion language for every page. Content starts hidden (only once JS runs) and
   settles into place the first time it enters the viewport; main.js adds .is-visible once
   and never removes it, so nothing replays.

   Self-triggered   .reveal (fade) · .reveal-up · .reveal-down · .reveal-left · .reveal-right
                    · .scale-reveal (large media) · .card-reveal (cards: rise + settle in scale)
                    · .image-reveal (a wipe up over the image while it settles from 1.12×)
                    · .line-reveal (a rule that draws out from its centre)
                    · [data-reveal] = .reveal-up, [data-reveal="fade"|"scale"] likewise
   Group-triggered  .reveal-item inside a .reveal-group; data-from="left|right" sets the
                    direction and [data-stagger] numbers siblings
   Text             .word-reveal (words rise out of a mask) · .char-reveal (letters rise,
                    sharpen and close their spacing) — both split by main.js
                    · .text-reveal (a soft wipe down the paragraph, blur to sharp)
   Line art         svg[data-draw]: every stroke draws itself, fills fade in after
   Timing           --reveal-delay offsets an element or a whole group (inherited),
                    --i × --stagger staggers siblings, --reveal-shift sets the travel.

   Reveals run as one-shot CSS animations (backwards fill only), so once an element has
   arrived its own hover transitions are untouched. */
.js :is([data-reveal], .reveal, .reveal-up, .reveal-down, .reveal-left, .reveal-right, .scale-reveal, .card-reveal, .text-reveal):not(.is-visible),
.js .reveal-group:not(.is-visible) .reveal-item,
.js :is(.word-reveal, .char-reveal):not(.is-split):not(.is-visible) {
  opacity: 0;
}

/* Hidden with opacity, not clip-path: a fully clipped element has no visible area, so the
   observer would never report it arriving. The wipe itself starts fully clipped. */
.js .image-reveal:not(.is-visible) {
  opacity: 0;
}

.js :is([data-reveal], .reveal, .reveal-up, .reveal-down, .reveal-left, .reveal-right, .scale-reveal, .card-reveal).is-visible,
.js .reveal-group.is-visible .reveal-item,
.js :is(.word-reveal, .char-reveal):not(.is-split).is-visible {
  animation-name: reveal-up;
  animation-duration: 1000ms;
  animation-timing-function: var(--ease-expo);
  animation-fill-mode: backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger));
}

.js :is(.reveal, [data-reveal="fade"]).is-visible,
.js :is(.word-reveal, .char-reveal):not(.is-split).is-visible {
  animation-name: reveal-fade;
}

.js .reveal-down.is-visible {
  animation-name: reveal-down;
}

.js .reveal-left.is-visible,
.js .reveal-group.is-visible .reveal-item[data-from="left"] {
  animation-name: reveal-left;
}

.js .reveal-right.is-visible,
.js .reveal-group.is-visible .reveal-item[data-from="right"] {
  animation-name: reveal-right;
}

.js :is(.scale-reveal, [data-reveal="scale"]).is-visible {
  animation-name: reveal-scale;
  animation-duration: 1400ms;
}

.js .card-reveal.is-visible {
  animation-name: reveal-card;
  animation-duration: 1100ms;
}

.js .image-reveal.is-visible {
  animation: reveal-image 1400ms var(--ease-expo) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger));
}

.js .image-reveal.is-visible > img {
  animation: image-settle 1800ms var(--ease-expo) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger));
}

/* Used to show a link target instantly, so its reveal can't offset the jump. */
.js :is([data-reveal], .reveal, .reveal-up, .reveal-down, .reveal-left, .reveal-right, .scale-reveal, .card-reveal, .image-reveal).is-instant {
  animation: none;
}

.js .line-reveal:not(.is-visible) {
  transform: scaleX(0);
}

.js .line-reveal.is-visible {
  animation: reveal-line 1600ms var(--ease-expo) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Labels (eyebrows, pills): wiped in from the left behind a mask, travelling a little. */
.js .wipe-reveal:not(.is-visible) {
  opacity: 0;
}

.js .wipe-reveal.is-visible {
  animation: reveal-wipe-x 1100ms var(--ease-expo) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger));
}

@keyframes reveal-wipe-x {
  from { opacity: 1; clip-path: inset(0 100% 0 0); transform: translate3d(-10px, 0, 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}

.js .text-reveal.is-visible {
  animation: reveal-wipe 1500ms var(--ease-out) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger));
}

/* Split text. Words sit in a clipping box so each rises out of its own line. */
.split-word {
  display: inline-block;
  vertical-align: top;
}

.split-word__inner,
.split-char {
  display: inline-block;
}

.word-reveal .split-word {
  /* Clip only top and bottom (the words rise out of this mask). Clipping the sides sliced off
     the last letter of tightly spaced headings, e.g. the "s" in "Kerala's". */
  overflow-x: visible;
  overflow-y: clip;
  padding-bottom: 0.14em; /* room for descenders inside the clip */
  margin-bottom: -0.14em;
}

.js .word-reveal:not(.is-visible) .split-word__inner,
.js .char-reveal:not(.is-visible) .split-char {
  opacity: 0;
}

.js .word-reveal.is-visible .split-word__inner {
  animation: word-rise 1200ms var(--ease-expo) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger) + var(--wi, 0) * var(--word-step, 90ms));
}

/* (A lime "highlight sweep" over lime words on light backgrounds was removed on 20 Nov 2026:
   its hard-edged band looked like a glitch behind the letters.) */
.js .word-reveal.is-visible .text-lime.text-lime--on-light .split-word__inner {
  animation: word-rise 1200ms var(--ease-expo) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger) + var(--wi, 0) * var(--word-step, 90ms));
}

/* A lime word lands, then briefly lights up. */
.js .word-reveal.is-visible .text-lime .split-word__inner {
  animation:
    word-rise 1200ms var(--ease-expo) backwards,
    accent-glow 1800ms var(--ease-out) backwards;
  animation-delay:
    calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger) + var(--wi, 0) * var(--word-step, 90ms)),
    calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger) + var(--wi, 0) * var(--word-step, 90ms) + 450ms);
}

.js .char-reveal.is-visible .split-char {
  animation: char-settle 1000ms var(--ease-expo) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * var(--stagger) + var(--ci, 0) * var(--char-step, 24ms));
}

@keyframes reveal-fade {
  from { opacity: 0; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translate3d(0, var(--reveal-shift, 28px), 0); }
}

@keyframes reveal-left {
  from { opacity: 0; transform: translate3d(calc(var(--reveal-shift, 28px) * -1.5), 0, 0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translate3d(calc(var(--reveal-shift, 28px) * 1.5), 0, 0); }
}

@keyframes reveal-scale {
  from { opacity: 0; transform: translate3d(0, var(--reveal-shift, 24px), 0) scale(0.965); }
}

@keyframes reveal-line {
  from { transform: scaleX(0); }
}

@keyframes reveal-down {
  from { opacity: 0; transform: translate3d(0, calc(var(--reveal-shift, 28px) * -1), 0); }
}

@keyframes reveal-card {
  from { opacity: 0; transform: translate3d(0, calc(var(--reveal-shift, 28px) * 1.3), 0) scale(0.96); }
}

@keyframes reveal-image {
  from { opacity: 1; clip-path: inset(100% 0 0 0 round var(--image-radius, 0px)); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round var(--image-radius, 0px)); }
}

@keyframes image-settle {
  from { transform: scale(var(--image-zoom, 1.12)); }
}

@keyframes reveal-wipe {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(var(--reveal-blur, 6px));
    -webkit-mask-image: linear-gradient(#000 40%, transparent 60%);
    mask-image: linear-gradient(#000 40%, transparent 60%);
    -webkit-mask-size: 100% 250%;
    mask-size: 100% 250%;
    -webkit-mask-position: 0 100%;
    mask-position: 0 100%;
  }
  to {
    -webkit-mask-image: linear-gradient(#000 40%, transparent 60%);
    mask-image: linear-gradient(#000 40%, transparent 60%);
    -webkit-mask-size: 100% 250%;
    mask-size: 100% 250%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

@keyframes word-rise {
  from { opacity: 0; transform: translate3d(0, 105%, 0); filter: blur(var(--word-blur, 4px)); }
  40% { opacity: 1; }
  70% { filter: blur(0); }
}

/* Letters start a touch apart and blurred, then close to the set spacing as they land. */
@keyframes char-settle {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--spread, 0) * 1em), 0.45em, 0);
    filter: blur(var(--reveal-blur, 6px));
  }
}

@keyframes accent-glow {
  0% { text-shadow: 0 0 0 rgba(205, 242, 0, 0); }
  35% { text-shadow: 0 0 26px rgba(205, 242, 0, 0.55); }
  100% { text-shadow: 0 0 0 rgba(205, 242, 0, 0); }
}

/* A band of light that crosses a button (used on hover and while working). */
@keyframes shine-pass {
  from { transform: translateX(-160%) skewX(-18deg); }
  to { transform: translateX(360%) skewX(-18deg); }
}

/* Siblings inside a [data-stagger] group reveal one after another. */
[data-stagger] > :nth-child(2) { --i: 1; }
[data-stagger] > :nth-child(3) { --i: 2; }
[data-stagger] > :nth-child(4) { --i: 3; }
[data-stagger] > :nth-child(5) { --i: 4; }
[data-stagger] > :nth-child(6) { --i: 5; }
[data-stagger] > :nth-child(7) { --i: 6; }
[data-stagger] > :nth-child(8) { --i: 7; }

/* Lighter travel and blur as screens get smaller. */
@media (max-width: 1023px) {
  main,
  .site-footer {
    --reveal-shift: 22px;
  }
}

@media (max-width: 767px) {
  main,
  .site-footer {
    --reveal-shift: 16px;
    --reveal-blur: 2px;
  }
}

/* Pointer light for [data-glow] panels (added by main.js on fine pointers only).
   The light is moved with transform, so following the cursor never triggers layout.
   It isn't clipped to the panel, so on a dark page it fades out past the panel's edge
   instead of stopping at a hard line. */
[data-glow] {
  position: relative;
  isolation: isolate;
}

.pointer-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.pointer-glow__light {
  position: absolute;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(205, 242, 0, 0.1), rgba(205, 242, 0, 0.035) 55%, rgba(205, 242, 0, 0));
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  will-change: transform;
}

.is-lit > .pointer-glow .pointer-glow__light {
  opacity: 1;
}

/* Header motion (every page's header carries data-motion) -------------------
   After the page veil lifts (--page-delay) the bar settles, then the brand, the links one
   by one, search, and Pitch to us last. Entrance only (backwards fill), so hover and
   scroll states keep full control afterwards. */
.site-header[data-motion] {
  animation: none;
}

.site-header[data-motion] .site-nav {
  animation: intro-bar 1000ms var(--ease-expo) var(--page-delay, 0ms) backwards;
}

.site-header[data-motion] .brand {
  animation: intro-left 1000ms var(--ease-expo) calc(var(--page-delay, 0ms) + 180ms) backwards;
}

.site-header[data-motion] .nav-search,
.site-header[data-motion] .nav-toggle {
  animation: intro-fade 900ms var(--ease-out) calc(var(--page-delay, 0ms) + 640ms) backwards;
}

.site-header[data-motion] .site-nav__pitch {
  animation: intro-pop 1000ms var(--ease-expo) calc(var(--page-delay, 0ms) + 780ms) backwards;
}

@media (min-width: 1024px) {
  .site-header[data-motion] .nav-list > li {
    animation: intro-drop 900ms var(--ease-expo) backwards;
    animation-delay: calc(var(--page-delay, 0ms) + 280ms + var(--n, 0) * 55ms);
  }

  .site-header[data-motion] .nav-list > li:nth-child(2) { --n: 1; }
  .site-header[data-motion] .nav-list > li:nth-child(3) { --n: 2; }
  .site-header[data-motion] .nav-list > li:nth-child(4) { --n: 3; }
  .site-header[data-motion] .nav-list > li:nth-child(5) { --n: 4; }
  .site-header[data-motion] .nav-list > li:nth-child(6) { --n: 5; }
}

/* Scrolled: the bar thins its fill and picks up a hairline edge. */
.site-header[data-motion].is-scrolled .site-nav {
  background: rgba(10, 15, 7, 0.84);
  box-shadow:
    0 14px 40px -18px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(245, 247, 221, 0.06);
}

/* Links underline in lime from their centre; search tilts its lens. */
.site-header[data-motion] .nav-link::after {
  right: 0;
  height: 1.5px;
  background: var(--c-lime);
  transform-origin: center;
}

.site-header[data-motion] .nav-search .icon {
  transition: transform var(--dur) var(--ease-expo);
}

.site-header[data-motion] .nav-search:hover {
  color: var(--c-lime);
}

.site-header[data-motion] .nav-search:hover .icon {
  transform: rotate(-12deg) scale(1.1);
}

/* Buttons: one language everywhere. Hover lifts with a faint scale, a lime glow and a
   single band of light; a press sinks a little and springs back. */
.btn {
  transition:
    transform 400ms var(--ease-expo),
    box-shadow 400ms var(--ease-out),
    border-color var(--dur-fast) linear,
    background-color var(--dur-fast) linear;
}

.btn--lime {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn--lime::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}

.btn--lime:hover::after {
  animation: shine-pass 900ms var(--ease-in-out);
}

.btn--lime:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 12px 28px -12px rgba(190, 230, 0, 0.8),
    0 0 26px -6px rgba(205, 242, 0, 0.45);
}

.btn--outline:hover {
  transform: translateY(-2px) scale(1.015);
}

.btn:active,
.btn--lime:active,
.btn--outline:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
  transition-duration: 120ms;
}

/* Keyboard focus: the outline plus a soft lime halo, on every surface. */
.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(205, 242, 0, 0.22);
}

/* Loading: the button that started a page change keeps its light running until it goes. */
.btn.is-pending {
  cursor: progress;
}

.btn--lime.is-pending::after {
  animation: shine-pass 800ms linear infinite;
}

/* Cards: one hover language (add .fx-card). A small lift with the faintest scale; each
   card family adds its brighter edge and lime light. Lift, [data-tilt] depth and scale
   compose in a single transform so they never fight. */
.fx-card {
  --lift: 0px;
  --grow: 1;
  transform: perspective(1000px) translate3d(0, var(--lift), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--grow));
  transition:
    transform 450ms var(--ease-expo),
    box-shadow 450ms var(--ease-out),
    border-color 350ms var(--ease-out),
    background-color 350ms var(--ease-out);
}

.fx-card:hover {
  --lift: -6px;
  --grow: 1.012;
}

/* Cards with .fx-sheen: a soft band of light crosses the card once per hover. */
.fx-sheen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fx-sheen::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(236, 255, 150, 0.28) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-160%) skewX(-16deg);
  pointer-events: none;
}

.fx-sheen:hover::after {
  animation: shine-pass 1100ms var(--ease-in-out);
}

/* Section seams ([data-seam]): as a section arrives, one line of light crosses its top edge
   and is gone, marking the change of section in motion without adding a line to the design. */
[data-seam] {
  position: relative;
}

[data-seam]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 242, 0, 0), rgba(205, 242, 0, 0.95) 50%, rgba(205, 242, 0, 0));
  box-shadow: 0 0 14px rgba(205, 242, 0, 0.6);
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

[data-seam].is-visible::after {
  animation: seam-sweep 1700ms var(--ease-in-out) 100ms backwards;
}

@keyframes seam-sweep {
  0% { opacity: 0; transform: translateX(-100%); }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(250%); }
}

/* Stroke icons inside cards redraw themselves once on hover. */
.fx-card:hover .fx-icon {
  animation: icon-redraw 900ms var(--ease-out);
}

@keyframes icon-redraw {
  from { stroke-dasharray: 90; stroke-dashoffset: 90; }
  to { stroke-dasharray: 90; stroke-dashoffset: 0; }
}

/* Line art: main.js measures each stroke of an svg[data-draw] (setting --len) and marks it
   .draw-stroke; strokes then trace themselves in order and filled shapes fade in after. */
.js .draw-stroke {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}

.js .draw-fill {
  opacity: 0;
}

.js [data-draw].is-visible .draw-stroke {
  animation: stroke-draw var(--draw-dur, 1600ms) var(--ease-in-out) forwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--draw-i, 0) * var(--draw-step, 80ms));
}

.js [data-draw].is-visible .draw-fill {
  animation: fill-in 800ms var(--ease-out) forwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--draw-fill-delay, 1200ms) + var(--draw-i, 0) * 60ms);
}

@keyframes stroke-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fill-in {
  to { opacity: 1; }
}

/* Page veil ------------------------------------------------------------------
   Drawn with the root's own pseudo-elements, so no page needs extra markup. The head
   script sets one class before first paint (never with reduced motion):
     .is-intro     first page of a visit: black, the Illumexa mark and wordmark rise over
                   a lime rule, then the page is revealed (~1s)
     .is-arriving  any later page: it opens out of black through a fading lime line
     .is-leaving   set by main.js on an internal link: black closes in over a lime line,
                   and the next page opens from exactly that frame
   --page-delay holds entrances (header, hero, first reveals) until the page is shown. */
html.is-intro {
  --page-delay: 720ms;
}

html.is-arriving {
  --page-delay: 160ms;
}

html:is(.is-intro, .is-arriving, .is-leaving)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--c-black);
  pointer-events: none;
}

html:is(.is-intro, .is-arriving, .is-leaving)::before {
  content: "";
  position: fixed;
  z-index: 2001;
  pointer-events: none;
}

html.is-intro::after {
  animation: veil-lift 1050ms var(--ease-in-out) forwards;
}

html.is-intro::before {
  content: "ILLUMEXA SOLUTIONS";
  top: 50%;
  left: 50%;
  padding: 76px 0 18px 0.5em;
  background:
    url("../assets/images/logo/illumexa-mark.png") top center / 38px auto no-repeat,
    linear-gradient(90deg, rgba(205, 242, 0, 0), var(--c-lime) 50%, rgba(205, 242, 0, 0)) bottom center / 0% 1px no-repeat;
  color: var(--c-white);
  font: 600 0.8125rem/1 var(--font-display);
  letter-spacing: 0.5em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: veil-brand 1050ms var(--ease-out) forwards;
}

/* A lime line across the middle of the screen, carried from one page to the next. */
html:is(.is-arriving, .is-leaving)::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 242, 0, 0), var(--c-lime) 50%, rgba(205, 242, 0, 0));
  box-shadow: 0 0 14px rgba(205, 242, 0, 0.7);
}

html.is-arriving::after {
  animation: veil-open 480ms var(--ease-out) 60ms forwards;
}

html.is-arriving::before {
  animation: line-out 480ms var(--ease-out) forwards;
}

html.is-leaving::after {
  animation: veil-close 320ms var(--ease-in-out) forwards;
}

html.is-leaving::before {
  animation: line-in 320ms var(--ease-expo) forwards;
}

@keyframes veil-lift {
  0%, 64% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes veil-brand {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%);
    background-size: 38px auto, 0% 1px;
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -50%);
    background-size: 38px auto, 100% 1px;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
    background-size: 38px auto, 100% 1px;
    visibility: hidden;
  }
}

@keyframes veil-open {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes veil-close {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes line-out {
  from { opacity: 1; transform: scaleX(1); }
  to { opacity: 0; transform: scaleX(0.6); visibility: hidden; }
}

@keyframes line-in {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes intro-bar {
  from { opacity: 0; transform: translate3d(0, -18px, 0) scale(0.985); }
}

@keyframes intro-left {
  from { opacity: 0; transform: translate3d(-18px, 0, 0); }
}

@keyframes intro-drop {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
}

@keyframes intro-fade {
  from { opacity: 0; }
}

@keyframes intro-pop {
  from { opacity: 0; transform: scale(0.88); }
}

/* Footer motion (pages that opt in with data-motion) -----------------------
   The ILLUMEXA outline is SVG text there, so it can be drawn: every letter traces its
   own outline as the footer scrolls into view, a single light then passes through it,
   and the word drifts a little against the scroll. */
.site-footer[data-motion] .site-footer__outline {
  width: 4.606em; /* the word's width in Poppins 600, measured */
  height: 1em;
  overflow: visible;
}

.site-footer__outline-text {
  --outline-dash: calc(3.8 * clamp(64px, 19.3vw, 278px)); /* about the longest letter outline, on screen */
  font-family: var(--font-display);
  font-size: 1000px;
  font-weight: 600;
  letter-spacing: -0.015em;
  fill: none;
  stroke: rgba(170, 200, 0, 0.42);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke; /* 1.2px at every size; dash lengths are then on-screen px */
}

.site-footer__outline-text--light {
  stroke: rgba(225, 255, 70, 0.95);
}

.js .site-footer[data-motion] .site-footer__outline-text {
  stroke-dasharray: var(--outline-dash);
  stroke-dashoffset: var(--outline-dash);
}

.site-footer[data-motion].is-visible .site-footer__sweep {
  animation: outline-sweep 3400ms var(--ease-in-out) 1200ms both;
}

.site-footer[data-motion] .site-footer__social .icon {
  transition: transform var(--dur) var(--ease-expo);
}

.site-footer[data-motion] .icon-btn:hover .icon {
  transform: rotate(-14deg) scale(1.08);
}

.site-footer[data-motion] .site-footer__bottom {
  position: relative;
}

/* A lime rule draws out from the centre over the footer's base line. */
.site-footer__rule {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 242, 0, 0), rgba(205, 242, 0, 0.45) 50%, rgba(205, 242, 0, 0));
  --reveal-delay: 150ms;
}

@keyframes outline-draw {
  from { stroke-dashoffset: var(--outline-dash); }
  to { stroke-dashoffset: 0; }
}

@keyframes outline-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(6006px); }
}

@keyframes outline-drift {
  from { translate: -1.5% 0; }
  to { translate: 1.5% 0; }
}

/* With scroll-driven animation the drawing follows the scroll itself: it completes as the
   footer finishes arriving. The footer clips its overflow, which would make it the scroller
   for a view() timeline on the wordmark, so the footer's own timeline is used. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-footer[data-motion] {
      view-timeline-name: --footer;
    }

    .site-footer[data-motion] .site-footer__outline {
      animation: outline-drift linear both;
      animation-timeline: --footer;
      animation-range: entry 0% exit 100%;
    }

    .js .site-footer[data-motion] .site-footer__outline-text {
      animation: outline-draw linear both;
      animation-timeline: --footer;
      animation-range: entry 0% entry 95%;
    }
  }
}

/* Without it, the outline draws once when the footer arrives. */
@supports not (animation-timeline: view()) {
  .js .site-footer[data-motion].is-visible .site-footer__outline-text {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2800ms var(--ease-in-out) 200ms;
  }
}

/* Scroll-linked depth (desktop, and only where the browser can tie animation to scroll).
   A section marked [data-parallax-scope] publishes its passage through the viewport as
   --scope; inside it:
     .parallax     drifts against the scroll by ±--depth (default 60px) — backgrounds and
                   decorations, never content
     .scroll-grow  a large heading settles from 96% as its section arrives
   and .hero-exit lifts a page's opening content away as the page scrolls past it.
   All of them move with translate/scale only, so they compose with reveals and hovers. */
@keyframes parallax-shift {
  from { translate: 0 calc(var(--depth, 60px) * -1); }
  to { translate: 0 var(--depth, 60px); }
}

@keyframes scroll-grow {
  from { scale: 0.96; }
  to { scale: 1; }
}

@keyframes hero-exit {
  to { translate: 0 calc(var(--exit, 90px) * -1); opacity: var(--exit-fade, 0.25); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    [data-parallax-scope] {
      view-timeline-name: --scope;
    }

    .parallax {
      animation: parallax-shift linear both;
      animation-timeline: --scope;
    }

    .scroll-grow {
      transform-origin: 50% 100%;
      animation: scroll-grow linear both;
      animation-timeline: --scope;
      animation-range: entry 0% cover 40%;
    }

    .hero-exit {
      animation: hero-exit linear both;
      animation-timeline: scroll(root);
      animation-range: 0 85vh;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important; /* honour user preference over component motion */
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    transform: none;
  }

  /* Text isn't split and outlines aren't drawn: everything simply appears. */
  .js .site-footer[data-motion] .site-footer__outline-text {
    stroke-dasharray: none;
  }
}

/* 11. Responsive ---------------------------------------------------------- */
/* The full-size nav needs the 1440px design width; laptops get tighter tiers. */
@media (max-width: 1439px) {
  .site-nav {
    padding: 0 40px;
  }

  .site-nav__menu {
    margin-left: 48px;
  }

  .nav-list {
    gap: 24px;
  }

  .nav-link {
    font-size: 0.9375rem;
  }
}

@media (max-width: 1179px) {
  .site-nav {
    padding: 0 24px;
  }

  .site-nav__menu {
    margin-left: 28px;
  }

  .nav-list {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .site-nav__actions {
    gap: 10px;
  }

  .site-nav__pitch {
    padding-inline: 18px;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
    --header-h-full: 72px;
  }

  .site-nav {
    padding: 0 12px 0 20px;
  }

  .brand__mark {
    width: 28px;
    height: 36px;
  }

  .brand__name {
    font-size: 24px;
  }

  .brand__sub {
    font-size: 9.5px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(11, 15, 8, 0.97);
    box-shadow:
      0 24px 50px -20px rgba(0, 0, 0, 0.6),
      inset 0 0 0 1px rgba(245, 247, 221, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }

  .site-header.is-menu-open .site-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav__actions {
    gap: 8px;
  }

  .nav-search {
    width: 44px;
    height: 44px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 56px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .site-nav__pitch {
    display: none;
  }

  .nav-list__cta {
    display: block;
    padding: 10px 16px 6px;
  }

  .nav-list__cta .btn {
    width: 100%;
    height: 48px;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .nav-list__cta .icon {
    width: 14px;
    height: 14px;
  }

  .site-footer {
    padding-top: 64px;
  }

  .site-footer__outline {
    top: auto;
    bottom: 96px;
  }

  .site-footer__name {
    font-size: 1.5rem;
  }

  .site-footer__about {
    margin-top: 20px;
  }

  .site-footer__bottom {
    margin-top: 56px;
  }

  .site-footer__bar {
    flex-direction: column;
    font-size: 0.75rem;
  }
}

@media (max-width: 379px) {
  .brand__name {
    font-size: 23px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}

/* Phone comfort pass: readable small labels and finger-sized tap targets (about 44px),
   without changing how anything looks on larger screens. `:root` lifts these above the
   page stylesheets (home.css, service.css) that load after this file. */
@media (max-width: 767px) {
  :root .eyebrow,
  :root .stat__label,
  :root .hero__scroll,
  :root .about-hero__caption {
    font-size: 0.75rem; /* 12px, up from 11px */
  }

  /* Carousel dots: the visible dot stays the same, the tappable area grows. */
  :root .carousel__dot {
    width: 40px;
    height: 40px;
  }

  :root .site-footer__links a,
  :root .svc__crumbs a,
  :root .svc__back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Footer contact column (address, email, phone, WhatsApp), added 20 Nov 2026. */
.site-footer__grid {
  grid-template-columns: 34% 18% 14% 1fr;
  column-gap: 24px;
}

.site-footer__address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #d6d6d6;
}

.site-footer__wa {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--c-lime) !important;
}

.btn .icon:first-child {
  margin-right: 2px;
}

@media (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
  }
}
