/* =====================================================================
   RASTEK Technologies — 2026 refined-corporate design system
   Self-hosted type, tokenised colour/space/shadow scales, restrained motion.
   No external dependencies: everything loads from assets/.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TYPEFACE  (Inter variable, SIL OFL, self-hosted)
   --------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../webfonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------
   2. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
  /* Brand scale, built around the unchanged RASTEK blue (--brand-500) */
  --brand-50:  #F0F9FF;
  --brand-100: #E8F5FD;
  --brand-200: #CCE6F7;
  --brand-300: #8ED2F0;
  --brand-400: #38B2E8;
  --brand-500: #0093dd;   /* RASTEK blue — unchanged */
  --brand-600: #007AB8;
  --brand-700: #016397;
  --brand-800: #014E77;
  --brand-900: #013A6B;
  --brand-950: #071A2F;

  /* Neutrals — cool slate, warmer and softer than pure greys */
  --n-0:   #FFFFFF;
  --n-25:  #FBFCFE;
  --n-50:  #F6F9FC;
  --n-100: #EEF3F8;
  --n-200: #E2E9F0;
  --n-300: #CBD5E1;
  --n-400: #94A3B8;
  --n-500: #64748B;
  --n-600: #475569;
  --n-700: #334155;
  --n-800: #1E293B;
  --n-900: #0F172A;
  --n-950: #0B1220;

  /* Semantic */
  --ink:        var(--n-900);
  --ink-muted:  var(--n-600);
  --ink-subtle: var(--n-500);
  --surface:    var(--n-0);
  --surface-2:  var(--n-50);
  --surface-3:  var(--n-100);
  --line:       var(--n-200);
  --line-soft:  var(--n-100);
  --accent:     var(--brand-500);

  /* Legacy aliases kept so any stray rule still resolves */
  --brand-blue:  var(--brand-500);
  --brand-dark:  var(--n-900);
  --brand-light: var(--n-50);
  --brand-gray:  var(--n-500);

  /* Type scale — fluid */
  --fs-eyebrow: 0.78rem;
  --fs-sm:      0.875rem;
  --fs-base:    1rem;
  --fs-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3:      clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h2:      clamp(1.875rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-h1:      clamp(2.125rem, 1.55rem + 2.3vw, 3.25rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --section-y: clamp(4.5rem, 3rem + 5.5vw, 7.5rem);

  /* Radii */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;
  --r-xl: 20px; --r-2xl: 28px; --r-full: 999px;

  /* Shadows — layered, low alpha */
  --sh-xs: 0 1px 2px rgba(15,23,42,0.04);
  --sh-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --sh-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 2px 6px -2px rgba(15,23,42,0.05);
  --sh-lg: 0 12px 32px -8px rgba(15,23,42,0.12), 0 4px 12px -4px rgba(15,23,42,0.06);
  --sh-xl: 0 24px 64px -16px rgba(15,23,42,0.18), 0 8px 24px -8px rgba(15,23,42,0.08);
  --sh-brand: 0 12px 28px -10px rgba(0,147,221,0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 420ms;

  --nav-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  letter-spacing: -0.005em;
}

img, svg { vertical-align: middle; }

::selection { background: var(--brand-200); color: var(--brand-900); }

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

/* Bootstrap's container, retuned */
.container { max-width: 1280px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) { .container { padding-left: 20px; padding-right: 20px; } }

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ---------------------------------------------------------------
   4. MOTION — scroll reveal
   Elements are only hidden when JS is running (html.js), so the page
   is fully visible with JavaScript disabled.
   --------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

/* ---------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------- */
.btn-brand,
.btn-brand-outline,
.btn-brand-nav,
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--r-full);
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.btn-brand {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-brand:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0,147,221,0.55);
}
.btn-brand:active { transform: translateY(0); }

.btn-brand-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-brand-outline:hover {
  background: var(--surface);
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.btn-cta-white {
  background: #fff;
  color: var(--brand-700);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.5);
}
.btn-cta-white:hover {
  background: #fff;
  color: var(--brand-800);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.55);
}

/* ---------------------------------------------------------------
   6. HEADER — utility bar + main nav
   --------------------------------------------------------------- */
.topbar {
  background: var(--brand-950);
  color: rgba(255,255,255,0.62);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar-contact { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.66);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
a.topbar-link:hover { color: #fff; }
.topbar-link i { color: var(--brand-400); font-size: 0.75rem; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.16); flex-shrink: 0; }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.topbar-social-btn:hover { background: var(--brand-500); color: #fff; }

/* The utility bar scrolls away; the main bar stays pinned. */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.site-navbar.is-scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 30px rgba(15,23,42,0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-navbar { background: #fff; }
}

/* The header carries nine top-level items plus the profile button, which does
   not fit the site's 1280px content container. The header alone runs the full
   viewport width with its own gutters; page content below stays centred. */
.topbar .container,
.site-navbar .container {
  max-width: none;
  padding-left: clamp(24px, 2.4vw, 52px);
  padding-right: clamp(24px, 2.4vw, 52px);
}
.site-navbar .container {
  min-height: var(--nav-h);
  transition: min-height var(--t-base) var(--ease);
}
.site-navbar.is-scrolled .container { min-height: 66px; }

.site-navbar .navbar-brand { padding: 10px 0; margin: 0; }
.site-navbar .navbar-brand img {
  height: 42px;
  width: auto;
  transition: height var(--t-base) var(--ease);
}
.site-navbar.is-scrolled .navbar-brand img { height: 34px; }

.site-navbar .navbar-nav { gap: 2px; }
.site-navbar .nav-link {
  position: relative;
  color: var(--ink-muted) !important;
  font-weight: 550;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  padding: 0.55rem 0.95rem !important;
  border-radius: var(--r-full);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-navbar .nav-link::after { content: none; }
.site-navbar .nav-link:hover { color: var(--ink) !important; background: var(--surface-3); }
.site-navbar .nav-link.active {
  color: var(--brand-700) !important;
  background: var(--brand-100);
  font-weight: 650;
}

.btn-brand-nav {
  white-space: nowrap;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.6875rem 1.3rem;
  box-shadow: var(--sh-brand);
}
/* The file glyph sits on a white tile: PDF red is illegible directly on the
   brand blue, and the tile reads as a document chip. */
.btn-brand-nav i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fff;
  color: #E12D28;
  font-size: 0.82rem;
}
.btn-brand-nav:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(0,147,221,0.6);
}

.navbar-toggler { padding: 6px 10px; border-radius: var(--r-md); color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }

/* ----- About dropdown -----
   Bootstrap's dropdown (click + keyboard) stays the accessible path. On a
   desktop pointer it also opens on hover, which is what corporate-site
   visitors expect from a menu with children. */
/* `content` must be restated: `.site-navbar .nav-link::after { content: none }`
   (which removes the old underline) has equal specificity and also matches
   this toggle, since it is a .nav-link too. Coming later, this rule wins. */
.site-navbar .dropdown-toggle::after {
  content: '';
  display: inline-block;
  border: 0;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  vertical-align: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-base) var(--ease);
}
.site-navbar .dropdown-toggle.show::after { transform: rotate(225deg) translate(-2px, -2px); }

.site-navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 8px;
  min-width: 228px;
  margin-top: 10px;
  font-size: 0.9rem;
}
.site-navbar .dropdown-item {
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
  font-weight: 550;
  color: var(--ink-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus { background: var(--surface-3); color: var(--ink); }
.site-navbar .dropdown-item.active,
.site-navbar .dropdown-item:active { background: var(--brand-100); color: var(--brand-700); }
/* Grouped menus (Divisions): indented children, small group headings,
   and a marker on links that leave the site. */
.site-navbar .dropdown-item-sub { padding-left: 1.85rem; position: relative; }
.site-navbar .dropdown-item-sub::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--n-300);
}
.site-navbar .dropdown-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding: 0.75rem 0.85rem 0.35rem;
}
.site-navbar .dropdown-divider { margin: 6px 4px; border-color: var(--line); }
.site-navbar .dropdown-ext { font-size: 0.62rem; margin-left: 5px; color: var(--n-400); vertical-align: 1px; }

@media (min-width: 1200px) and (hover: hover) {
  .site-navbar .dropdown:hover > .dropdown-menu {
    display: block;
    top: 100%;
    left: 0;
  }
  /* Invisible bridge across the 10px gap so the pointer can travel from the
     toggle to the menu without the hover dropping. */
  .site-navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: -12px;
    height: 12px;
  }
  .site-navbar .dropdown:hover > .dropdown-toggle::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }
}

/* Nine top-level items, two with dropdown chevrons, plus the profile button.
   At 1200px the header is viewport-bound and every pixel counts; by 1400px
   there is room to breathe. Scale the link padding fluidly between those two
   anchors (0.34rem -> 0.85rem) so the row never breaks onto a second line. */
@media (min-width: 1200px) {
  .site-navbar .navbar-nav { gap: 0; }
  .site-navbar .nav-link {
    font-size: 0.86rem;
    padding: 0.5rem clamp(0.34rem, -2.72rem + 4.08vw, 0.85rem) !important;
  }
}

/* ---------------------------------------------------------------
   7. HERO — one continuous composition

   The source photos are 1920x800 (2.4:1) group shots: subjects run the full
   width, faces sit in the top third. Two constraints follow.

   1. Height cannot come from the image. `cover` on a taller box crops the
      sides — at 780px that is ~30% of the width, which cuts the outermost
      people out of slides 2 and 3. So the image band is pinned to 41.6vw,
      which *is* the photos' own ratio, giving zero crop at any width.
   2. Copy cannot sit on the faces. So the photo dissolves into the same navy
      the section is painted in, and the copy sits inside that dissolve —
      over near-solid colour, with no seam between image and text.
   --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--hero-navy);
  overflow: hidden;
}

:root { --hero-navy: #071A2F; --hero-img-h: clamp(300px, 41.6vw, 780px); }

.hero-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--hero-img-h);
  z-index: 0;
}
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Bias upward: faces live in the top third of every frame. */
  background-position: center 28%;
  background-repeat: no-repeat;
}
.carousel-item.active .hero-media { animation: heroDrift 16s ease-out both; }
@keyframes heroDrift {
  from { transform: scale(1.055); }
  to   { transform: scale(1); }
}

/* The dissolve. The last stop is opaque --hero-navy, identical to the section
   background, so the photo's bottom edge is invisible. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(7,26,47,0.30) 0%,
    rgba(7,26,47,0.12) 26%,
    rgba(7,26,47,0.52) 50%,
    rgba(7,26,47,0.88) 71%,
    rgba(7,26,47,0.985) 88%,
    var(--hero-navy) 100%
  );
}
/* Faint brand glow from the lower left, tying panel and photo together */
.hero::before {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 70%;
  height: 90%;
  z-index: 1;
  background: radial-gradient(closest-side, rgba(0,147,221,0.20), transparent 70%);
  pointer-events: none;
}

/* Copy begins 68% of the way down the photo, where the scrim is ~85% opaque,
   and runs on past the photo's bottom edge into the flat navy. */
.hero-body {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--hero-img-h) * 0.68);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.hero-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.hero-copy { display: grid; }
/* All slides share one grid cell, so the tallest sets the height and nothing
   shifts when the copy changes. */
.hero-copy-item {
  grid-area: 1 / 1;
  max-width: 44rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  pointer-events: none;
}
.hero-copy-item.is-active { opacity: 1; transform: none; pointer-events: auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(0,147,221,0.18);
  border: 1px solid rgba(0,147,221,0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #8FD8F9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 10px var(--brand-400);
}

.hero-title {
  color: #fff;
  font-size: clamp(1.875rem, 1.1rem + 3.1vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.036em;
  margin: 0 0 16px;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-text {
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-lead);
  line-height: 1.65;
  margin: 0;
  max-width: 38rem;
  text-shadow: 0 1px 18px rgba(0,0,0,0.35);
}

.hero-actions {
  grid-area: 2 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--r-full);
  padding: 0.8125rem 1.5rem;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.46);
  color: #fff;
  transform: translateY(-2px);
}

/* ----- Slide navigation column ----- */
.hero-nav { display: flex; flex-direction: column; gap: 16px; width: 300px; }
.hero-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.hero-counter-current { color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.hero-counter-rule { width: 26px; height: 1px; background: rgba(255,255,255,0.35); }

.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.hero-arrow:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  transform: translateY(-2px);
}

.hero-thumbs { display: flex; flex-direction: column; gap: 8px; }
.hero-thumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.hero-thumb:hover { background: rgba(255,255,255,0.11); transform: translateX(3px); }
.hero-thumb.is-active {
  background: rgba(0,147,221,0.18);
  border-color: rgba(0,147,221,0.55);
}
.hero-thumb-img {
  width: 62px;
  height: 42px;
  border-radius: 7px;
  background-size: cover;
  background-position: center 28%;
  flex-shrink: 0;
  filter: grayscale(65%);
  transition: filter var(--t-base) var(--ease);
}
.hero-thumb.is-active .hero-thumb-img,
.hero-thumb:hover .hero-thumb-img { filter: grayscale(0%); }
.hero-thumb-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-thumb-num {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-400);
  font-variant-numeric: tabular-nums;
}
.hero-thumb-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.3;
}

/* Autoplay timer, drawn under the active thumbnail. The animation restarts by
   itself because the rule only applies while `.is-active` is present. */
.hero-thumb-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.10);
  opacity: 0;
}
.hero-thumb.is-active .hero-thumb-bar { opacity: 1; }
.hero-thumb-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
  box-shadow: 0 0 10px rgba(0,147,221,0.8);
}
.hero-thumb.is-active .hero-thumb-bar > span { animation: heroTimer 6500ms linear forwards; }
.hero.is-paused .hero-thumb.is-active .hero-thumb-bar > span { animation-play-state: paused; }
@keyframes heroTimer { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hero-thumb.is-active .hero-thumb-bar > span { animation: none; width: 100%; }
  .carousel-item.active .hero-media { animation: none; }
}

/* ---------------------------------------------------------------
   8. SECTION PRIMITIVES
   --------------------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  flex-shrink: 0;
}
.text-center .section-label { justify-content: center; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.section-divider {
  width: 44px;
  height: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  margin-bottom: 22px;
}

/* ---------------------------------------------------------------
   9. HIGHLIGHT / WELCOME
   --------------------------------------------------------------- */
.highlight-section {
  background: var(--surface);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.highlight-copy {
  color: var(--ink-muted);
  font-size: var(--fs-lead);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 56ch;
}
.highlight-copy:last-of-type { margin-bottom: 32px; }

.highlight-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  isolation: isolate;
}
.highlight-img-wrap::before { content: none; }
/* Inner hairline keeps the image crisp against light backgrounds */
.highlight-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.08);
  pointer-events: none;
  z-index: 5;
}

/* NOTE: qualified with .highlight-img-wrap on purpose — a bare
   .highlight-slide rule (0,1,0) would lose to any `.wrap img` rule (0,1,1)
   and leave every slide stacked in normal flow. */
.highlight-img-wrap .highlight-slide {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 900ms var(--ease-out), transform 1400ms var(--ease-out);
  border-radius: 0;
}
.highlight-img-wrap .highlight-slide:first-child { position: relative; }
.highlight-img-wrap .highlight-slide.is-active { opacity: 1; transform: scale(1); }

.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(11,18,32,0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.highlight-img-wrap:hover .hs-nav,
.hs-nav:focus-visible { opacity: 1; }
.hs-nav:hover { background: rgba(11,18,32,0.68); }
.hs-nav i { font-size: 0.8rem; }
.hs-prev { left: 14px; }
.hs-next { right: 14px; }
.highlight-img-wrap:hover .hs-prev { transform: translateY(-50%) translateX(2px); }
.highlight-img-wrap:hover .hs-next { transform: translateY(-50%) translateX(-2px); }

.hs-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

/* Shared pill dots */
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.hs-dots .slider-dot { background: rgba(255,255,255,0.5); }
.hs-dots .slider-dot:hover { background: rgba(255,255,255,0.8); }
.hs-dots .slider-dot.is-active { width: 26px; background: #fff; }
.news-dots .slider-dot { background: var(--brand-200); }
.news-dots .slider-dot:hover { background: var(--brand-300); }
.news-dots .slider-dot.is-active { width: 26px; background: var(--brand-500); }

/* ---------------------------------------------------------------
   10. PRINCIPAL BRAND CARDS
   --------------------------------------------------------------- */
.rastek-section {
  padding: var(--section-y) 0;
  background: var(--surface);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
/* Soft brand wash that fades in on hover */
.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--brand-50) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-lg);
}
.brand-card:hover::before { opacity: 1; }

.brand-card-logo {
  margin-bottom: 22px;
  height: 42px;
  display: flex;
  align-items: center;
}
/* Full colour on purpose: these are the principals' own brand marks, shown as
   supplied. Grey-to-colour is reserved for the logo walls below. */
.brand-card-logo img {
  height: 34px;
  max-width: 160px;
  object-fit: contain;
  object-position: left;
  transition: transform var(--t-base) var(--ease);
}
.brand-card:hover .brand-card-logo img { transform: scale(1.03); }


.brand-card-title {
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.32;
  text-wrap: balance;
}

.brand-card-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 18px;
}

.brand-card-link {
  font-size: 0.85rem;
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
  max-width: 88%;
  transition: color var(--t-fast) var(--ease);
}
.brand-card-link:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }

.brand-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.brand-card-arrow i { font-size: 0.72rem; }
.brand-card:hover .brand-card-arrow {
  background: var(--brand-500);
  color: #fff;
  transform: translateX(3px);
  box-shadow: var(--sh-brand);
}

/* ---------------------------------------------------------------
   11. NEWS
   --------------------------------------------------------------- */
.news-section {
  padding: var(--section-y) 0;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--brand-50) 0%, transparent 60%),
    var(--surface-2);
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-lg);
}
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.news-card:hover img { transform: scale(1.05); }

.news-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card-date {
  font-size: 0.78rem;
  color: var(--ink-subtle);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  text-transform: none;
}

.news-card-title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.38;
  text-wrap: balance;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.68;
  flex: 1;
  margin-bottom: 18px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--brand-600);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  transition: gap var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.news-read-more:hover { gap: 12px; color: var(--brand-700); }

/* Hides cards outside the visible window. !important is required: the cards
   carry Bootstrap's .d-flex (display: flex !important). */
.news-card-hidden { display: none !important; }

.news-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
  transition: all var(--t-base) var(--ease);
}
.news-nav-btn i { font-size: 0.8rem; }
.news-nav-btn:hover:not(:disabled) {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}
.news-nav-btn:disabled {
  background: var(--surface-2);
  color: var(--n-300);
  border-color: var(--line-soft);
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------
   12. NEWS DETAIL
   --------------------------------------------------------------- */
.news-detail-page { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 var(--section-y); }
.news-detail-container { max-width: 760px; }

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-weight: 550;
  font-size: 0.9rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 28px;
  transition: gap var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.news-detail-back:hover { gap: 13px; color: var(--brand-600); }

.news-detail-badge {
  display: inline-flex;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-detail-date { color: var(--ink-subtle); font-size: 0.875rem; }

.news-detail-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  text-wrap: balance;
}

.news-detail-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
  margin-bottom: 40px;
}

.news-detail-body {
  font-size: 1.0625rem;
  color: var(--n-700);
  line-height: 1.82;
}
.news-detail-body p { margin-bottom: 24px; }
.news-detail-body p:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink);
}

.news-detail-share {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 44px;
}
.news-detail-share-label {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.social-icon-btn:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}

/* ---------------------------------------------------------------
   13. MARQUEES — principals
   --------------------------------------------------------------- */
.clients-section { padding: var(--section-y) 0 calc(var(--section-y) - 1rem); background: var(--surface); }

.principals-rows { display: flex; flex-direction: column; gap: 18px; overflow: hidden; }

.principals-track-wrap { overflow: hidden; position: relative; }
.principals-track-wrap::before, .principals-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 12vw, 180px);
  z-index: 2;
  pointer-events: none;
}
.principals-track-wrap::before { left: 0;  background: linear-gradient(to right, var(--surface), transparent); }
.principals-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--surface), transparent); }

.principals-track { display: flex; gap: 18px; width: max-content; padding: 8px 0; }
.principals-track--right { animation: scrollRight 48s linear infinite; }
.principals-track--left  { animation: scrollLeft2 48s linear infinite; }
.principals-track:hover { animation-play-state: paused; }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes scrollLeft2 { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.principal-logo-item {
  flex-shrink: 0;
  width: 190px;
  height: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.principal-logo-item:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.principal-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.62;
  transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.principal-logo-item:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------------------------------------------------------------
   14. TESTIMONIALS
   --------------------------------------------------------------- */
.testimonials-section { padding: var(--section-y) 0; background: var(--surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card-new {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
/* Oversized quote mark, very low contrast */
.testimonial-card-new::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  right: 10px;
  font-size: 7rem;
  line-height: 1;
  font-weight: 700;
  color: var(--brand-500);
  opacity: 0.07;
  pointer-events: none;
}
.testimonial-card-new:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-lg);
}

.testimonial-card-top { display: flex; flex-direction: column; gap: 14px; }
.testimonial-stars-new { display: flex; gap: 3px; }
.testimonial-text-new {
  font-size: 0.9rem;
  color: var(--n-700);
  line-height: 1.72;
  margin: 0;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.testimonial-avatar-new {
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-100);
}
.testimonial-avatar-initials {
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-100);
}
.testimonial-name-new {
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.testimonial-role-new { font-size: 0.78rem; color: var(--ink-subtle); line-height: 1.4; }

/* ---------------------------------------------------------------
   15. ASSOCIATIONS + CLOSING CTA
   --------------------------------------------------------------- */
.tech-section { padding: var(--section-y) 0; background: var(--surface-2); }
.tech-lead {
  color: var(--ink-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: var(--fs-lead);
}

/* Four memberships, four equal cards. The previous bento had eight slots for
   four logos, so each appeared twice; the grid now matches the real count. */
.assoc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.assoc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 34px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.assoc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.assoc-card:hover::before { opacity: 1; }
.assoc-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-lg);
}

.assoc-card-logo {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assoc-card-logo img {
  max-width: 152px;
  max-height: 74px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Accreditation marks are evidence, not decoration — kept clearly legible
     at rest, with colour on hover to match the logo walls above. */
  filter: grayscale(100%);
  opacity: 0.82;
  transition: filter var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.assoc-card:hover .assoc-card-logo img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

.assoc-card-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.assoc-card-full {
  font-size: 0.78rem;
  color: var(--ink-subtle);
  line-height: 1.5;
  max-width: 22ch;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl) !important;
  background:
    radial-gradient(120% 140% at 12% 0%, var(--brand-600) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-950) 100%);
  box-shadow: var(--sh-xl);
}
/* Faint grid, adds texture without noise */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 80% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 100% at 80% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 10px;
  text-wrap: balance;
}
.cta-band p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--n-950);
  color: rgba(255,255,255,0.62);
  padding: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 0 0;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,147,221,0.5), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 56px;
}

/* logo-white.png is already white artwork on transparency, so unlike the old
   asset it needs no brightness/invert filter. */
.footer-logo-img {
  height: 40px;
  width: auto;
  opacity: 0.95;
  margin-bottom: 20px;
  display: block;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
  max-width: 300px;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  width: fit-content;
  transition: color var(--t-fast) var(--ease);
}
.footer-contact-line:hover { color: #fff; }
.footer-contact-line i { color: var(--brand-500); width: 14px; font-size: 0.8rem; flex-shrink: 0; }

.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.footer-social-btn:hover {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
  transform: translateY(-2px);
}

.footer-col-heading {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-nav-list a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  width: fit-content;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-nav-list a:hover { color: #fff; transform: translateX(3px); }

.footer-newsletter-col { max-width: 340px; }
.footer-newsletter-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 18px; }

.footer-subscribe-row {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 4px;
  transition: border-color var(--t-base) var(--ease);
}
.footer-subscribe-row:focus-within { border-color: var(--brand-500); }
.footer-subscribe-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  border-radius: var(--r-full);
}
.footer-subscribe-input::placeholder { color: rgba(255,255,255,0.32); }
.footer-subscribe-btn {
  background: var(--brand-500);
  border: none;
  border-radius: var(--r-full);
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.footer-subscribe-btn:hover { background: var(--brand-600); transform: scale(1.05); }

.footer-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cert-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 11px;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ---------------------------------------------------------------
   16b. INNER PAGES — banner + placeholder body
   Used by mission-vision, services, divisions, members, video-gallery and
   resources. Replace a page's .page-placeholder block with its real content.
   --------------------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 160% at 8% 0%, var(--brand-800) 0%, transparent 60%),
    linear-gradient(120deg, var(--brand-950) 0%, #06192F 55%, var(--brand-950) 100%);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 120% at 85% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(110% 120% at 85% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }

.page-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
}
.page-crumbs a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.page-crumbs a:hover { color: #fff; }
.page-crumbs [aria-current] { color: #8FD8F9; font-weight: 600; }
.page-crumbs-sep { color: rgba(255,255,255,0.35); }

.page-banner-title {
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.page-body { padding: var(--section-y) 0; background: var(--surface-2); }

.page-placeholder {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-sm);
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 1rem + 3vw, 3rem);
}
.page-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.page-placeholder-text {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0 0 28px;
}
.page-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ----- Vision & Mission page -----
   Editorial rows: heading block left, text right. Stacks under 992px. */
.mv-section { padding: var(--section-y) 0; background: var(--surface); }

.mv-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.mv-row:first-child { border-top: 0; padding-top: 0; }

.mv-head { position: relative; }
.mv-num {
  position: absolute;
  top: -0.35em;
  right: 0;
  font-size: clamp(4.5rem, 3rem + 5vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--brand-500);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.mv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--sh-brand);
  margin-bottom: 22px;
}
.mv-head .section-label { display: flex; }
.mv-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.mv-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--n-700);
  margin: 0 0 18px;
}
.mv-body p:last-child { margin-bottom: 0; }
.mv-body .mv-lead {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-left: 20px;
  border-left: 3px solid var(--brand-500);
  margin-bottom: 24px;
}

.mv-cta { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.mv-cta h3 { margin-bottom: 0; }
.btn-cta-white i { font-size: 0.75rem; }

@media (max-width: 991.98px) {
  .mv-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mv-num { top: -0.2em; }
}

/* ----- About Us page ----- */

/* Quaid's Vision: navy card holding the portrait and the quote */
.about-quaid { padding: var(--section-y) 0 0; background: var(--surface); }
.about-quaid-inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(90% 140% at 100% 0%, var(--brand-800) 0%, transparent 60%),
    linear-gradient(135deg, var(--brand-950) 0%, #06192F 100%);
  box-shadow: var(--sh-xl);
}
.about-quaid-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 100% at 90% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 100% at 90% 20%, #000 0%, transparent 70%);
}

.about-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
}
/* Anchored to the top so any crop trims the shoulders, never the cap */
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-portrait--empty { border-style: dashed; border-color: rgba(255,255,255,0.22); }
.about-portrait-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.about-portrait-empty i { font-size: 2.25rem; color: rgba(255,255,255,0.35); }

/* Light eyebrow for the navy card (the default brand-600 is too dark here) */
.about-quaid .section-label { color: #8FD8F9; }
/* The decorative quote mark lives in the card's top-right corner. Placed
   before the quote it collided with the eyebrow label above it. */
.about-quote-wrap { position: relative; }
.about-quote-wrap::after {
  content: '\201D';
  position: absolute;
  top: -0.32em;
  right: -0.02em;
  font-size: clamp(7rem, 5rem + 6vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-400);
  opacity: 0.14;
  pointer-events: none;
}
.about-quote { position: relative; margin: 0; }
.about-quote p {
  position: relative;
  color: #fff;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.about-attrib {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 16px;
  border-left: 3px solid var(--brand-400);
}
.about-attrib-name { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.about-attrib-role { color: rgba(255,255,255,0.62); font-size: 0.875rem; }

/* CEO message extras (rows reuse the .mv-row editorial layout) */
.ceo-pull {
  margin: 6px 0 24px;
  padding: 22px 26px;
  background: var(--surface-2);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.mv-body .ceo-pull p { color: var(--ink); font-weight: 500; margin: 0; }
.ceo-sign {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ceo-sign-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; color: var(--ink); }

/* Presence strip under the introduction */
.presence {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.presence li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.presence i { color: var(--brand-500); margin-top: 3px; }

/* Core values */
.values-section { padding: var(--section-y) 0; background: var(--surface-2); }
.values-intro {
  max-width: 760px;
  margin: 0 auto 44px;
  color: var(--ink-muted);
  font-size: var(--fs-lead);
  line-height: 1.75;
}
/* Flex-wrap (not grid) so an incomplete last row stays centred */
.values-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.value-card {
  position: relative;
  flex: 0 1 calc(20% - 13px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 18px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--sh-lg); }
.value-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--n-400);
  font-variant-numeric: tabular-nums;
}
.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--r-lg);
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 1.35rem;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.value-card:hover .value-icon { background: var(--brand-500); color: #fff; }
.value-name { font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }

/* "Continue reading" link to the next page */
.page-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.page-next:hover { border-color: var(--brand-200); box-shadow: var(--sh-md); }
.page-next-text { display: flex; flex-direction: column; gap: 2px; }
.page-next-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); }
.page-next-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.page-next-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--brand-500);
  color: #fff;
  transition: transform var(--t-base) var(--ease);
}
.page-next:hover .page-next-arrow { transform: translateX(4px); }

@media (max-width: 1199.98px) {
  .value-card { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 991.98px) {
  .about-quaid-inner { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { width: 100%; max-width: 300px; margin: 0 auto; }
  .presence { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .value-card { flex-basis: calc(50% - 8px); padding: 28px 12px 24px; }
  .about-portrait { max-width: 240px; }
}

/* ----- Associate Partners: procurement-to-installation flow ----- */
.ap-flow { padding: var(--section-y) 0; background: var(--surface-2); }
.ap-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
/* Connector running behind the icons (single-row layout only) */
.ap-steps::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-200), var(--brand-400), var(--brand-200));
}
.ap-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 6px;
}
.ap-step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}
.ap-step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 2px solid var(--brand-200);
  color: var(--brand-600);
  font-size: 1.35rem;
  box-shadow: var(--sh-md);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.ap-step:hover .ap-step-icon {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  transform: translateY(-3px);
}
.ap-step-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

@media (max-width: 1199.98px) {
  .ap-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .ap-steps::before { display: none; }
}
@media (max-width: 575.98px) {
  .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
}

/* ----- Principals directory -----
   One card per principal, linking to its website. Category membership is
   shown by coloured tags, so brands in several categories are never
   duplicated; the chips filter the single grid. */
:root {
  --cat-tte: #0B6FB0;  --cat-tte-tint: #E7F2FA;   /* Teaching & Training Equipment */
  --cat-tme: #0B7A6C;  --cat-tme-tint: #E2F4F1;   /* Testing & Measurement Equipment */
  --cat-see: #B4500B;  --cat-see-tint: #FDF0E3;   /* Specialised Electrical & Electronic */
  --cat-tt:  #6B46C9;  --cat-tt-tint:  #F0EBFC;   /* Testing & Training */
  --cat-csmt: #A61E4D; --cat-csmt-tint: #FBE9F0;  /* Chip Design / SMT */
}
.pr-tag--tte, [data-pr-filter="tte"] { --c: var(--cat-tte); --t: var(--cat-tte-tint); }
.pr-tag--tme, [data-pr-filter="tme"] { --c: var(--cat-tme); --t: var(--cat-tme-tint); }
.pr-tag--see, [data-pr-filter="see"] { --c: var(--cat-see); --t: var(--cat-see-tint); }
.pr-tag--tt,  [data-pr-filter="tt"]  { --c: var(--cat-tt);  --t: var(--cat-tt-tint); }
.pr-tag--csmt, [data-pr-filter="csmt"] { --c: var(--cat-csmt); --t: var(--cat-csmt-tint); }
[data-pr-filter="all"] { --c: var(--ink); }

.pr-section { padding: var(--section-y) 0; background: var(--surface-2); }

.pr-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.pr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 10px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease), transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.pr-chip:hover { border-color: var(--n-300); color: var(--ink); transform: translateY(-1px); }
.pr-chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.pr-chip-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.pr-chip.is-active {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
  box-shadow: 0 10px 22px -12px var(--c);
}
.pr-chip.is-active .pr-chip-dot { background: #fff; }
.pr-chip.is-active .pr-chip-count { background: rgba(255,255,255,0.22); color: #fff; }
.pr-status { margin: 0; font-size: 0.85rem; color: var(--ink-subtle); }

.pr-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.pr-card {
  position: relative;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.pr-card:hover,
.pr-card:focus-within { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--sh-lg); }
/* The whole card is the link */
.pr-card-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 14px 16px;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.pr-card-link:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.pr-ext {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 0.66rem;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.pr-card:hover .pr-ext,
.pr-card:focus-within .pr-ext { opacity: 1; transform: none; }
/* Touch screens have no hover, so show the hint permanently */
@media (hover: none) { .pr-ext { opacity: 1; transform: none; } }
.pr-logo { width: 100%; height: 72px; display: flex; align-items: center; justify-content: center; }
.pr-logo img {
  max-width: min(100%, 170px);
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pr-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; }
.pr-tag {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: var(--t);
  color: var(--c);
  white-space: nowrap;
}
.pr-card.is-hidden { display: none; }
.pr-card.is-entering { animation: prIn 360ms var(--ease-out) both; }
@keyframes prIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1199.98px) { .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pr-chip { font-size: 0.8rem; padding: 9px 12px 9px 13px; flex-shrink: 0; }
  .pr-tag { white-space: normal; text-align: center; }
  /* One swipeable row instead of five stacked lines. The next chip is left
     half-visible at the edge, which signals that the row scrolls. */
  .pr-toolbar { align-items: stretch; }
  .pr-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 2px 20px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .pr-chips::-webkit-scrollbar { display: none; }
  .pr-chip { scroll-snap-align: start; }
  .pr-status { text-align: center; }
}

/* ----- Services page: step flow + feature cards sit under their text row ----- */
.svc-list { margin: 8px 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.svc-section .values-grid.svc-list { margin-bottom: 0; }

/* ----- Divisions overview ----- */
.div-section { padding: var(--section-y) 0; background: var(--surface-2); }
.div-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.div-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 30px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.div-card:hover,
.div-card:focus-within { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--sh-lg); }
.div-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--sh-brand);
  margin-bottom: 8px;
}
.div-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.div-name {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.div-main { color: inherit; text-decoration: none; }
/* Stretched link: the whole card opens the division */
.div-main::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.div-main:focus-visible { outline: none; }
.div-card:has(.div-main:focus-visible) { outline: 2px solid var(--brand-500); outline-offset: 3px; }
.div-related { position: relative; z-index: 1; margin: 0; font-size: 0.875rem; color: var(--ink-subtle); }
.div-related a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
.div-related a:hover { text-decoration: underline; text-underline-offset: 3px; }
.div-related i { font-size: 0.65rem; margin-left: 2px; }
.div-cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-600);
}
.div-cta i { font-size: 0.72rem; transition: transform var(--t-base) var(--ease); }
.div-card:hover .div-cta i { transform: translateX(3px); }

/* Group card: its own list of links instead of one card-wide link */
.div-links { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.div-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.div-links a > i:first-child { color: var(--brand-500); width: 18px; text-align: center; }
.div-links a > span { flex: 1; }
.div-links a > i:last-child { font-size: 0.72rem; color: var(--n-400); transition: transform var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.div-links a:hover { border-color: var(--brand-200); background: var(--brand-50); }
.div-links a:hover > i:last-child { transform: translateX(3px); color: var(--brand-600); }
.div-card--group:hover { transform: none; }

@media (max-width: 767.98px) {
  .div-grid { grid-template-columns: minmax(0, 1fr); }
  .div-card { padding: 24px 22px 22px; }
}

/* ----- AIOT Automation & Control page ----- */
.aiot-intro { padding: var(--section-y) 0; background: var(--surface); }
.aiot-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.aiot-intro-media { margin: 0; }
.aiot-intro-media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
  display: block;
}
.aiot-intro-title {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}
.aiot-intro-text { font-size: var(--fs-lead); line-height: 1.75; color: var(--ink-muted); margin: 0 0 26px; }

.aiot-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.aiot-contact-label { font-size: 0.9rem; color: var(--ink-muted); }
.aiot-contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.aiot-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--brand-700);
  text-decoration: none;
}
.aiot-contact-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aiot-contact-links i { color: var(--brand-500); font-size: 0.85rem; }

.aiot-download { margin-top: 18px; }

.aiot-section { padding: var(--section-y) 0; background: var(--surface); }
.aiot-section--alt { background: var(--surface-2); }

/* Brand logo bar above each supplier's products */
.aiot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 24px;
}
.aiot-brand::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.aiot-brand img { max-height: 46px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.aiot-brand:first-of-type { margin-top: 0; }

.aiot-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.aiot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.aiot-section--alt .aiot-card { background: var(--surface); }
.aiot-card:hover { border-color: var(--brand-200); box-shadow: var(--sh-md); }
.aiot-card p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--n-700); }

.aiot-shot { margin: 0; }
.aiot-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  display: block;
}

/* Product rows: image one side, text the other, alternating */
.prod-row {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) 0;
  border-top: 1px solid var(--line-soft);
}
.aiot-brand + .prod-row { border-top: 0; padding-top: 4px; }
.prod-row--flip .prod-media { order: 2; }
.prod-media { margin: 0; }
.prod-media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  display: block;
}
.prod-title {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.prod-body p { font-size: 0.9375rem; line-height: 1.75; color: var(--ink-muted); margin: 0 0 14px; }
.prod-body p:last-child { margin-bottom: 0; }
.prod-list { margin: 0; padding-left: 20px; }
.prod-list li { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-muted); margin-bottom: 6px; }

.prod-steps-label { font-weight: 700; color: var(--ink); margin-bottom: 10px !important; }
.prod-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 8px;
}
.prod-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.prod-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991.98px) {
  .aiot-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .aiot-intro-media { max-width: 320px; }
  .prod-row { grid-template-columns: minmax(0, 1fr); }
  .prod-row--flip .prod-media { order: 0; }
}
@media (max-width: 767.98px) {
  .aiot-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ----- Rastek Ambassador Program ----- */
.amb-section { padding: 0 0 var(--section-y); background: var(--surface); }
.amb-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.amb-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.amb-card:hover { border-color: var(--brand-200); box-shadow: var(--sh-md); transform: translateY(-2px); }
.amb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 0.95rem;
}
.amb-text { font-size: 0.9375rem; line-height: 1.65; color: var(--n-700); }

.amb-apply {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(90% 160% at 10% 0%, var(--brand-800) 0%, transparent 60%),
    linear-gradient(135deg, var(--brand-950) 0%, #06192F 100%);
  box-shadow: var(--sh-xl);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.amb-apply-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1.05rem;
}
.amb-apply-text {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: var(--fs-lead);
  line-height: 1.7;
}
.amb-email,
.amb-subject {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 650;
  white-space: nowrap;
}
.amb-subject { white-space: normal; }

@media (max-width: 767.98px) {
  .amb-grid { grid-template-columns: minmax(0, 1fr); }
  .amb-apply { flex-direction: column; gap: 16px; }
}

/* ----- Members & Partners ----- */
.mem-section { padding: var(--section-y) 0; background: var(--surface-2); }
.mem-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.mem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.mem-card:hover,
.mem-card:focus-within { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--sh-lg); }
.mem-logo {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mem-logo img {
  max-width: 155px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mem-name {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.mem-link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--brand-600);
  text-decoration: none;
}
.mem-link i { font-size: 0.66rem; transition: transform var(--t-base) var(--ease); }
.mem-link:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.mem-card:hover .mem-link i { transform: translate(2px, -2px); }

@media (max-width: 1199.98px) { .mem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .mem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 479.98px)  { .mem-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----- News & Events / Video Gallery listings ----- */
.post-list-section { padding: var(--section-y) 0; background: var(--surface-2); }

.news-card-media { display: block; overflow: hidden; }
.news-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--brand-700); }

/* Video cards: thumbnail with a play badge */
.vid-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.vid-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.vid-card:hover,
.vid-card:focus-within { transform: translateY(-5px); border-color: var(--brand-200); box-shadow: var(--sh-lg); }
.vid-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--n-900);
}
.vid-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform 600ms var(--ease-out), opacity var(--t-base) var(--ease);
}
.vid-card:hover .vid-media img { transform: scale(1.04); opacity: 0.85; }
.vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.92);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.vid-card:hover .vid-play { transform: translate(-50%, -50%) scale(1.08); background: var(--brand-500); color: #fff; }
.vid-kind {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: rgba(11,18,32,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vid-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.vid-title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.38;
  margin: 0 0 4px;
  text-wrap: balance;
}
.vid-title a { color: var(--ink); text-decoration: none; }
.vid-title a:hover { color: var(--brand-700); }

/* ----- Post detail: player + rich-text body ----- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 40px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--n-950);
  box-shadow: var(--sh-lg);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Images, lists and links inside post content (the rich-text editor output) */
.news-detail-body img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  margin: 8px 0 24px;
  display: block;
}
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
  margin: 32px 0 14px;
}
.news-detail-body h2 { font-size: 1.5rem; }
.news-detail-body h3 { font-size: 1.25rem; }
.news-detail-body h4 { font-size: 1.1rem; }
.news-detail-body ul,
.news-detail-body ol { margin: 0 0 24px; padding-left: 22px; }
.news-detail-body li { margin-bottom: 8px; line-height: 1.75; }
.news-detail-body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.news-detail-body blockquote {
  margin: 0 0 24px;
  padding: 18px 24px;
  border-left: 3px solid var(--brand-500);
  background: var(--surface-2);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.news-detail-body blockquote p:last-child { margin-bottom: 0; }

@media (max-width: 767.98px) {
  .vid-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .vid-play { width: 54px; height: 54px; font-size: 1rem; }
}

/* ----- Pagination + empty states (dynamic listings) ----- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pager-item {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-muted);
  font-weight: 650; font-size: 0.9rem; text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.pager-item:hover { border-color: var(--brand-300); color: var(--brand-700); }
.pager-item.is-current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: var(--sh-brand); }
.empty-note {
  padding: 48px 32px; text-align: center; color: var(--ink-subtle);
  background: var(--surface); border: 1px dashed var(--n-300); border-radius: var(--r-xl);
}

/* ---------------------------------------------------------------
   17. TIMELINE  (timeline.php)
   A centre spine that fills as you scroll, milestones alternating either
   side of it, and a sticky year rail that reads out where you are.
   Below 992px the spine moves to the left edge and every card stacks.
   --------------------------------------------------------------- */
.tl-banner-lead {
  color: rgba(255,255,255,0.78);
  font-size: var(--fs-lead);
  line-height: 1.65;
  max-width: 62ch;
  margin: 18px 0 0;
}

/* Stat strip, sitting inside the dark banner */
.tl-stats {
  list-style: none;
  margin: 40px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.tl-stat { display: flex; flex-direction: column; gap: 4px; }
.tl-stat-num {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tl-stat-plus { color: var(--brand-400); }
.tl-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.tl-section { padding: var(--section-y) 0; background: var(--surface-2); }

.tl-layout {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---- sticky year rail ---- */
.tl-rail { position: sticky; top: calc(var(--nav-h) + 28px); padding-left: 4px; }
.tl-rail-cap {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--brand-500);
  margin-bottom: 18px;
}
.tl-rail-list { list-style: none; margin: 0; padding: 0; }
.tl-rail-year {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-subtle);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.tl-rail-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--n-300);
  flex-shrink: 0;
  transition: background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.tl-rail-year:hover { color: var(--brand-700); }
.tl-rail-year.is-active { color: var(--brand-700); }
.tl-rail-year.is-active .tl-rail-dot { background: var(--brand-500); transform: scale(1.6); }

/* ---- the stream + spine ---- */
.tl-stream { position: relative; padding: 4px 0 0; }
.tl-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
}
/* Height is written by initTimeline() as a percentage of scroll progress. */
.tl-spine-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-600) 100%);
  border-radius: var(--r-full);
}

/* ---- era chapter heading ---- */
.tl-era {
  position: relative;
  text-align: center;
  padding: 26px 0 44px;
  margin-top: 26px;
}
.tl-era:first-child { margin-top: 0; }
/* Oversized ghost year behind the chapter title */
.tl-era-ghost {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4.5rem, 3rem + 8vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--brand-900);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.tl-era-text { position: relative; z-index: 1; }
.tl-era-span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--surface);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-full);
  padding: 5px 14px;
  margin-bottom: 12px;
}
.tl-era-name {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 10px;
}
.tl-era-blurb {
  color: var(--ink-muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
  max-width: 54ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---- a milestone ---- */
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 104px;
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.tl-item--left  .tl-card { grid-column: 1; }
.tl-item--right .tl-card { grid-column: 2; }

/* Year badge sitting on the spine */
.tl-node {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  z-index: 2;
}
.tl-node-year {
  display: block;
  min-width: 64px;
  text-align: center;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--ink-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  box-shadow: var(--sh-sm);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.tl-item.is-passed .tl-node-year {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.tl-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 14px 14px 22px;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.tl-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-lg);
}
/* Little connector from the card to the spine */
.tl-card::after {
  content: '';
  position: absolute;
  top: 40px;
  width: 36px;
  height: 2px;
  background: var(--line);
}
.tl-item--left  .tl-card::after { right: -37px; }
.tl-item--right .tl-card::after { left:  -37px; }

/* ---- archival photo treatment ---- */
.tl-photo {
  margin: 0 0 18px;
  position: relative;
}
.tl-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--surface-3);
  /* Faintly aged, so mixed-era photographs sit together */
  filter: saturate(0.92) contrast(1.02);
  transition: filter var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.tl-card:hover .tl-photo img { filter: none; transform: scale(1.015); }
/* Upright photographs of documents (award boards, printed profiles): a 4/3
   crop would cut the text in half, so show the whole thing instead. */
.tl-photo--doc img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--surface-3);
}
.tl-photo figcaption {
  margin-top: 9px;
  padding-left: 2px;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--ink-subtle);
  letter-spacing: -0.005em;
}

.tl-body { padding: 0 8px; }
.tl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.tl-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: var(--r-full);
  padding: 4px 10px;
}
.tl-date { font-size: 0.78rem; color: var(--ink-subtle); font-weight: 500; }
.tl-title {
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.35;
}
.tl-text { font-size: 0.9rem; line-height: 1.72; color: var(--ink-muted); margin: 0; }

/* ---- closing marker ---- */
.tl-end {
  position: relative;
  text-align: center;
  padding: 18px 0 0;
  max-width: 48ch;
  margin: 0 auto;
}
.tl-end-node {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border-radius: var(--r-full);
  background: var(--brand-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-brand);
  position: relative;
  z-index: 2;
}
.tl-end-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.tl-end-text { color: var(--ink-muted); line-height: 1.7; margin: 0 0 24px; }
.tl-end-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: var(--sh-brand);
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.tl-end-btn:hover { background: var(--brand-600); transform: translateY(-2px); color: #fff; }

/* ---------------------------------------------------------------
   18. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1199.98px) {
  /* No room for the year rail beside the stream. */
  .tl-rail { display: none; }
  .tl-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl-item { column-gap: 72px; }
}

@media (max-width: 1199.98px) {
  .hero-nav { width: 258px; }
  .hero-thumb-img { width: 54px; height: 38px; }
}

/* Collapsed menu. The navbar now expands at xl (nine items do not fit at lg),
   so the panel styling applies below 1200px. */
@media (max-width: 1199.98px) {
  .site-navbar .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 12px;
    margin: 8px 0 16px;
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
  }
  .site-navbar .navbar-nav { gap: 2px; margin-bottom: 10px; }
  .site-navbar .nav-link { padding: 0.7rem 0.9rem !important; }
  .site-navbar .dropdown-toggle { display: flex; align-items: center; justify-content: space-between; }
  /* Inside the panel the sub-menu is an indented group, not a floating card */
  .site-navbar .dropdown-menu {
    border: 0;
    box-shadow: none;
    margin: 2px 0 6px;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--brand-100);
    border-radius: 0;
    background: transparent;
  }
  .navbar-actions { flex-wrap: wrap; gap: 10px; padding: 4px 6px 2px; }
  .btn-brand-nav { width: 100%; }
}

@media (max-width: 991.98px) {
  /* Spine moves to the left edge and every milestone stacks beside it. */
  .tl-spine { left: 19px; transform: none; }
  .tl-item {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding-left: 62px;
    margin-bottom: 40px;
  }
  .tl-item--left .tl-card,
  .tl-item--right .tl-card { grid-column: 1; }
  .tl-node { left: 20px; transform: translateX(-50%); top: 22px; }
  .tl-node-year { min-width: 58px; font-size: 0.74rem; padding: 4px 9px; }
  .tl-card::after { display: none; }
  .tl-era { padding: 18px 0 32px; text-align: left; padding-left: 62px; }
  .tl-era-ghost { left: 62px; transform: none; }
  .tl-era-blurb { margin: 0; }
  .tl-end { padding-left: 62px; text-align: left; max-width: none; }
  .tl-end-node { margin-left: 0; margin-right: auto; }

  :root { --nav-h: 68px; }

  /* Utility bar: keep the contact details, drop the decoration */
  .topbar-locations, .topbar-sep--wide, .topbar-social { display: none; }
  .topbar-inner { justify-content: center; }

  /* Copy first, slide navigation as a row beneath it — still one section. */
  .hero-body-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-nav { width: auto; }
  .hero-nav-top { justify-content: flex-start; gap: 20px; }
  .hero-thumbs { flex-direction: row; gap: 10px; }
  .hero-thumb { flex: 1 1 0; min-width: 0; }
  .hero-thumb-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* A shorter photo band needs the copy to start proportionally lower. */
  .hero-body { padding-top: calc(var(--hero-img-h) * 0.62); }
  .assoc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-newsletter-col { max-width: none; }
}

@media (max-width: 767.98px) {
  .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; }
  /* Below ~768px the photo's own ratio is too short to read, so the band is
     given a taller minimum and cropped tighter — acceptable here, since a
     phone shows a tighter framing of a group shot anyway. */
  :root { --hero-img-h: clamp(320px, 62vw, 460px); }
  .hero-body { padding-top: calc(var(--hero-img-h) * 0.58); }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-counter-current { font-size: 1.25rem; }
  .hero-thumb-img { display: none; }
  .hero-thumb { justify-content: center; padding: 10px 8px; }
  .hero-thumb-meta { align-items: center; text-align: center; }
  .highlight-copy { font-size: 1rem; }
  .news-card-body { padding: 20px; }
  .cta-band { text-align: center; }
}

@media (max-width: 575.98px) {
  .tl-item { padding-left: 48px; }
  .tl-era, .tl-end { padding-left: 48px; }
  .tl-era-ghost { left: 48px; }
  .tl-spine { left: 15px; }
  .tl-node { left: 16px; }
  .tl-card { padding: 12px 12px 18px; }
  .tl-body { padding: 0 4px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .assoc-grid { grid-template-columns: 1fr; }
  .assoc-card { flex-direction: row; text-align: left; gap: 20px; padding: 20px 22px; }
  .assoc-card-logo { height: 56px; flex-shrink: 0; }
  .assoc-card-logo img { max-width: 104px; max-height: 54px; }
  .assoc-card-full { max-width: none; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .footer-bottom-links { gap: 18px; justify-content: center; }
  .principal-logo-item { width: 150px; height: 88px; }
  .topbar { font-size: 0.75rem; }
  .topbar-contact { gap: 10px; }
  /* Three abreast on a phone leaves ~94px per label, so let them wrap
     rather than truncate mid-word. */
  .hero-thumb-label {
    font-size: 0.66rem;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
  }
  .hero-thumb { padding: 9px 6px 11px; }
  .hero-nav-top { justify-content: space-between; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn-brand, .hero-actions .btn-hero-ghost { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------
   Quick links — used on the 404 page under the "page not found"
   card to offer the sections people most often land here looking for.
   --------------------------------------------------------------- */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.link-card:hover,
.link-card:focus-visible {
  color: var(--brand-700);
  border-color: var(--brand-300);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.link-card i {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 1rem;
}

/* ---------------------------------------------------------------
   CONTACT US (contact.php)
   --------------------------------------------------------------- */
.contact-banner-lead {
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-lead);
  max-width: 40rem;
  margin: 14px 0 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-sm);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  height: 100%;
}
.contact-card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.contact-card--brand {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--brand-700) 0%, transparent 60%),
    linear-gradient(150deg, var(--brand-900) 0%, var(--brand-950) 100%);
  border-color: transparent;
  color: rgba(255,255,255,0.82);
}
.contact-card--brand .contact-card-title { color: #fff; }
.contact-card--brand a { color: #fff; }
.contact-card--brand .contact-lines i { color: var(--brand-300); background: rgba(255,255,255,0.08); }
.contact-card--brand .contact-kicker { color: var(--brand-300); }

.contact-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 6px;
}
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  line-height: 1.55;
}
.contact-lines i {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: .85rem;
}
.contact-lines a { color: inherit; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-map-link {
  display: inline-block;
  margin-top: 4px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline !important;
}
.contact-hours {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.contact-hours i { font-size: 1.2rem; margin-top: 3px; color: var(--brand-300); }
.contact-hours strong { color: #fff; }

/* form */
.contact-form .form-label { font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.contact-form .req { color: #c0392b; }
.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--r-md);
  border-color: var(--line);
  padding: .7rem .9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 .2rem rgba(0,147,221,0.15);
}
.contact-form .btn-brand { border: 0; cursor: pointer; }
/* Honeypot: present for bots, invisible and unreachable for people. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-success,
.contact-error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .95rem;
}
.contact-success { background: #eefbf3; border: 1px solid #bfe8cf; color: #14532d; }
.contact-success i { font-size: 1.3rem; color: #16a34a; margin-top: 2px; }
.contact-success p { margin: 2px 0 0; }
.contact-error { background: #fdf0f0; border: 1px solid #f3c9cb; color: #8a1c22; }

.contact-map {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  aspect-ratio: 16 / 7;
  min-height: 320px;
  background: var(--surface-2);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* footer newsletter feedback */
.footer-subscribe-msg {
  margin: 10px 0 0;
  font-size: .85rem;
  min-height: 1.2em;
}
.footer-subscribe-msg.is-ok    { color: #86efac; }
.footer-subscribe-msg.is-error { color: #fca5a5; }

/* ---------------------------------------------------------------
   19. PRINT
   --------------------------------------------------------------- */
@media print {
  .topbar, .site-navbar, .hero, .hs-nav, .hs-dots,
  .news-nav-btn, .news-dots, .site-footer { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}

/* Contact page: named contacts under the head office address */
.contact-person { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-person .contact-kicker { margin-bottom: 2px; }
.contact-person-name { color: #fff; font-weight: 700; margin-bottom: 2px; }
.contact-person .contact-lines li { padding: 6px 0; }
