/* ============================================
   Components — Tracks C, D, E, F, G, J
   ============================================ */

/* --- Skip Link (C5) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: var(--z-toast);
  font-weight: 600;
  transition: top var(--duration-micro) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--text-inverse);
}

/* --- Header / Navigation (C1) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--grey-3);
  z-index: var(--z-sticky);
  transition: box-shadow var(--duration-state) var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-medium);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0;
}

.header__logo:hover {
  opacity: 0.92;
}

.header__logo img {
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Logo emblem container (plain, no chevron) */
.header__logo__mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo__emblem { height: 84px; }

.header__logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-left: 18px;
}
.header__logo__wordmark { height: 32px; width: auto; }
.header__logo__sub { height: 50px; width: auto; margin-left: 10px; }

/* Bottom accent strip — red on left, dark navy on right */
.header { border-bottom: none; }
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #d11e1e 0% 22%, #16a1b8 22% 100%);
  pointer-events: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.header__menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
  margin: 0;
  padding: 0;
}

.header__menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.header__menu a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-micro) var(--ease-out);
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-state) var(--ease-out);
}

.header__menu a:hover,
.header__menu a.active {
  color: var(--color-primary);
}

.header__menu a:hover::after,
.header__menu a.active::after {
  width: 100%;
}

/* Dropdown (C2) */
.header__dropdown {
  position: relative;
}

.header__dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  vertical-align: baseline;
}

.header__dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--duration-micro) var(--ease-out);
}

.header__dropdown:hover .header__dropdown-trigger svg {
  transform: rotate(180deg);
}

.header__mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pronounced);
  padding: var(--space-6) var(--space-4);
  min-width: 920px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--duration-state) var(--ease-out);
  z-index: var(--z-dropdown);
}

.header__dropdown:hover .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* After a link is clicked, force the mega menu hidden until mouse leaves */
.header__dropdown--closed .header__mega-menu,
.header__dropdown:hover.header__dropdown--closed .header__mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
}

.mega-menu__category {
  padding: 0 var(--space-5);
  border-left: 1px solid var(--grey-2);
}
.mega-menu__category:first-child { border-left: none; }
.mega-menu__group {
  margin: 4px 0 6px;
  padding-left: 10px;
  border-left: 2px solid var(--grey-2);
}
.mega-menu__subhead {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 4px 0 4px 8px;
}
.mega-menu__group .mega-menu__link {
  margin-left: 0;
  margin-right: -8px;
}

.header__mega-menu h4 {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 0 0 var(--space-4);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  line-height: 1.2;
}

.mega-menu__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background var(--duration-micro) var(--ease-out);
}
.mega-menu__link:hover {
  background: var(--bg-light);
  color: inherit;
}
.mega-menu__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eaf0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-menu__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  fill: none;
}
.mega-menu__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mega-menu__body strong {
  font-size: 14px;
  font-weight: 700;
  color: #0c1c3c;
  line-height: 1.3;
}
.mega-menu__body small {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Header actions (CTA + hamburger) */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: var(--space-8);
  flex-shrink: 0;
}

/* Mobile hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.header__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration-state) var(--ease-out);
}

/* Mobile drawer (C4) */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-white);
  z-index: var(--z-modal);
  transition: right var(--duration-entrance) var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pronounced);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--grey-3);
}

.mobile-nav__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  font-size: var(--text-xl);
  color: var(--text-secondary);
}

.mobile-nav__menu {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
  list-style: none;
}

.mobile-nav__menu a {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
  border-bottom: 1px solid var(--grey-2);
}

.mobile-nav__menu a:hover { color: var(--color-primary); }

.mobile-nav__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--grey-3);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-state) var(--ease-out);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 921px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__hamburger { display: flex; }
}

/* --- Buttons (D5, J3) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-micro) var(--ease-out);
  line-height: 1;
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary */
.btn--primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--text-inverse);
}

/* Secondary */
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

/* Tertiary */
.btn--tertiary {
  background: transparent;
  border: none;
  color: var(--color-primary);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.btn--tertiary:hover {
  color: var(--color-primary-dark);
}

.btn--tertiary .arrow {
  transition: transform var(--duration-micro) var(--ease-out);
}

.btn--tertiary:hover .arrow {
  transform: translateX(4px);
}

/* Light variant for dark backgrounds */
.btn--light {
  background: var(--bg-white);
  color: var(--color-primary);
  border-color: var(--bg-white);
}

.btn--light:hover {
  background: var(--grey-1);
  color: var(--color-primary-dark);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  min-height: 52px;
}

/* Disabled */
.btn:disabled, .btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Hero (D1) --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
video.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,0,80,0.45) 0%, rgba(6,0,151,0.30) 100%);
  z-index: 1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,0,80,0.88) 0%, rgba(6,0,151,0.65) 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
}

/* Grid variant: static wireframe overlay positioned to the right, masked off the headline area */
.hero__bg--grid {
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 60%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 60%, #000 100%);
}
.hero__bg--grid::after { display: none; }

/* Floating accent orbs on homepage hero */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 60%);
  animation: floatShape 10s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg::after { animation: none; }
  .hero::before { animation: none; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-hero) var(--space-6);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.85fr);
  gap: var(--space-12);
  align-items: center;
}

.hero__text {
  min-width: 0;
}

.hero__content h1 {
  color: var(--text-inverse);
  font-size: var(--text-7xl);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: var(--space-4);
}

/* Lede variant: the headline is a full sentence, sized between H1 and subtitle. */
.hero__content h1.hero__h1--lede {
  font-size: var(--text-5xl);
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: var(--space-6);
}
@media (max-width: 921px) {
  .hero__content h1.hero__h1--lede { font-size: var(--text-4xl); }
}
@media (max-width: 544px) {
  .hero__content h1.hero__h1--lede { font-size: var(--text-3xl); }
}

/* Decorated eyebrow above the hero headline: gold text + line + dot */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
}
.hero__eyebrow-text {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__eyebrow-line {
  display: block;
  width: 72px;
  height: 1.5px;
  background: var(--color-accent);
}
.hero__eyebrow-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__subtitle {
  color: rgba(255,255,255,0.95);
  font-size: var(--text-xl);
  max-width: 52ch;
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.hero__proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  font-weight: 500;
}

.hero__proof-item strong {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

/* --- Right-side credibility panel (homepage hero) --- */
.hero__panel {
  position: relative;
  background: linear-gradient(155deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
  z-index: 2;
}

.hero__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255,205,87,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.hero__panel > * {
  position: relative;
  z-index: 1;
}

.hero__panel-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero__panel-title {
  color: white;
  font-size: var(--text-xl);
  margin: 0 0 var(--space-6) 0;
  line-height: 1.35;
  font-weight: 700;
}

.hero__big-stat {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero__big-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 6.5vw, 88px);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 0.95;
  letter-spacing: -2px;
}

.hero__big-stat__num sup {
  font-size: 0.45em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 4px;
}

.hero__big-stat__label {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.hero__sub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero__sub-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.hero__sub-stat span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hero__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero__cert {
  background: rgba(255,205,87,0.08);
  border: 1px solid rgba(255,205,87,0.35);
  color: var(--color-accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Tablet & below: stack panel below content */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero__panel {
    max-width: 540px;
    width: 100%;
  }
  .hero__content h1 {
    max-width: none;
  }
}

@media (max-width: 544px) {
  .hero { min-height: 100vh; }
  .hero__content h1 { font-size: var(--text-5xl); }
  .hero__subtitle { font-size: var(--text-lg); }
  .hero__panel { padding: var(--space-5); }
  .hero__panel-title { font-size: var(--text-lg); }
  .hero__big-stat__num { font-size: 48px; }
  .hero__sub-stat strong { font-size: var(--text-xl); }
}

/* --- Inner Page Hero --- */
/* --- Inner Page Hero — animated gradient + floating shapes --- */
.page-hero {
  background: linear-gradient(135deg, #060097 0%, #1a0a4e 40%, #0a0040 70%, #060097 100%);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
  padding: calc(100px + var(--space-16)) var(--space-6) var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  animation: floatShape 8s ease-in-out infinite;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,87,0.08) 0%, transparent 70%);
  animation: floatShape 10s ease-in-out infinite reverse;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.page-hero h1 {
  color: var(--text-inverse);
  font-size: var(--text-5xl);
  line-height: 1.2;
  max-width: var(--container-max);
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
}
@media (max-width: 921px) {
  .page-hero h1 { font-size: var(--text-4xl); }
}
@media (max-width: 544px) {
  .page-hero h1 { font-size: var(--text-3xl); }
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .label {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero { animation: none; background-size: 100% 100%; }
  .page-hero::before, .page-hero::after { animation: none; }
}

/* --- Breadcrumb (E11) --- */
.breadcrumb {
  background: var(--grey-1);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--grey-3);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.breadcrumb__list a {
  color: var(--text-tertiary);
}

.breadcrumb__list a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  color: var(--grey-5);
  font-size: var(--text-xs);
}

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Stats Section (D2, E3) --- */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  text-align: center;
}

.stat {
  padding: var(--space-6);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

@media (max-width: 544px) {
  .stats { flex-wrap: wrap; gap: var(--space-4); }
  .stat__number { font-size: var(--text-5xl); }
}

/* --- Cards (E1, E2, E4) --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow var(--duration-state) var(--ease-out),
              transform var(--duration-state) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f5f7fa;
  padding: var(--space-3);
  flex-shrink: 0;
}

.card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card__body p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex: 1;
}

.card__body .btn--tertiary {
  margin-top: auto;
  align-self: flex-start;
}

/* Industry card */
.card--industry {
  position: relative;
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.card--industry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 60%);
  border-radius: var(--radius-md);
}

.card--industry .card__body {
  position: relative;
  z-index: 1;
  width: 100%;
}

.card--industry h3 {
  color: var(--text-inverse);
  font-size: var(--text-2xl);
}

.card--industry .btn--tertiary {
  color: var(--color-accent);
}

/* Success story card (E4) */
.card--story .card__result {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* --- Badge (E9) --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.badge--cert {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.badge--industry {
  background: var(--grey-2);
  color: var(--text-secondary);
}

.badge--accent {
  background: rgba(255, 205, 87, 0.25);
  color: #b38600;
}

/* --- Logo Slider (E5) — Two rows, opposite directions --- */
.logo-slider {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.logo-slider::before,
.logo-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 1;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-white) 0%, transparent 100%);
}

.logo-slider__row {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  width: max-content;
}

.logo-slider__row--left {
  animation: slideLeft 60s linear infinite;
}

.logo-slider__row--right {
  animation: slideRight 60s linear infinite;
}

.logo-slider__row img {
  height: 44px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.logo-slider__row img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-slider__row--left,
  .logo-slider__row--right {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Quote (E6) --- */
.quote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.quote__attribution {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 600;
}

/* --- Form (E10) --- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-group label .required {
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--grey-4);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 0, 151, 0.1);
}

.form-textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

/* --- Footer (F1, F2, F3) --- */
.trust-bar {
  background: var(--grey-1);
  border-top: 1px solid var(--grey-3);
  border-bottom: 1px solid var(--grey-3);
  padding: var(--space-6) 0;
}

.trust-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  row-gap: var(--space-4);
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-bar__item svg,
.trust-bar__item .icon {
  color: var(--color-primary);
}

.trust-bar__logo {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter var(--duration-state) var(--ease-out);
}
.trust-bar__logo:hover {
  filter: grayscale(0) opacity(1);
}

@media (max-width: 544px) {
  .trust-bar__logo { height: 40px; max-width: 100px; }
}

.footer {
  background: linear-gradient(180deg, #0f0a2e 0%, #060097 120%);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 3px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer__col h4 {
  color: var(--text-inverse);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.footer__col p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.85);
}

.footer__links {
  list-style: none;
}

.footer__links a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  transition: color var(--duration-micro) var(--ease-out);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  transition: background var(--duration-micro) var(--ease-out);
  font-size: var(--text-sm);
  font-weight: 700;
}

.footer__social a:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0;
  margin-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
}

.footer__bottom a {
  color: rgba(255,255,255,0.75);
}

.footer__bottom a:hover {
  color: var(--color-accent);
}

@media (max-width: 921px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 544px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* --- Defence/Aerospace Section (G3) --- */
.defence-cred {
  position: relative;
  overflow: hidden;
}

.defence-cred__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.defence-cred__badges {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* Right-side visual: plant cutout floating on the section background, no chrome */
.defence-cred__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.defence-cred__plant {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  /* PNG ships with a baked stippled background (RGB, no alpha). Lift
     near-white pixels to pure white so the dot pattern blends into the
     section background. */
  filter: brightness(1.06) contrast(1.04);
  mix-blend-mode: multiply;
}

@media (max-width: 544px) {
  .defence-cred__inner { grid-template-columns: 1fr; }
  .defence-cred__visual { min-height: 240px; }
}

/* --- Spec Table (E7) --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.spec-table th,
.spec-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--grey-3);
}

.spec-table th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--grey-1);
}

.spec-table tr:nth-child(even) {
  background: var(--grey-1);
}

.spec-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-3);
}

/* --- Scroll Animations (J1) --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-entrance) var(--ease-out),
              transform var(--duration-entrance) var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }

/* Page content wrapper */
main {
  margin-top: 100px;
}

/* Hero as first child of main cancels the main margin since hero handles its own offset */
main > .hero:first-child {
  margin-top: -100px;
}

/* --- Road Map Journey --- */
.journey {
  background: #fff;
  padding: var(--space-16) 0 var(--space-8);
  overflow: hidden;
}
.journey__header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.journey__roadmap {
  position: relative;
  max-width: 860px;
  margin: 0 auto var(--space-10);
}
.journey__roadmap > img {
  width: 100%;
  display: block;
}
.journey__pin {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.2s ease;
  z-index: 2;
}
.journey__pin:hover {
  transform: translate(-50%, -100%) scale(1.2);
  z-index: 5;
}
.journey__pin-icon {
  width: 36px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}
.journey__pin-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #e53e3e;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  font-family: var(--font-display);
}
.journey__pin.active .journey__pin-label {
  background: var(--color-primary);
}
.journey__tooltip {
  display: none;
  position: absolute;
  background: rgba(10, 10, 10, 0.95);
  color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  width: 520px;
  max-height: none;
  overflow: visible;
  z-index: 20;
  line-height: 1.6;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  pointer-events: none;
}
.journey__tooltip.show { display: block; }
.journey__tooltip h5 {
  color: white;
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.journey__tooltip ul {
  padding-left: var(--space-5);
  margin: 0;
  color: rgba(255,255,255,0.85);
}
.journey__tooltip ul li {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.journey__detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-10);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  min-height: 320px;
}
.journey__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey__illustration img {
  max-width: 280px;
  width: 100%;
}
.journey__content {
  padding-top: var(--space-4);
}
.journey__content .label {
  color: #e53e3e;
  font-size: var(--text-xs);
  margin-bottom: var(--space-2);
  display: block;
}
.journey__content h3 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}
.journey__content ul {
  padding-left: var(--space-5);
  color: var(--text-secondary);
  line-height: 1.8;
}
.journey__content ul li {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}
.journey__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  font-family: var(--font-display);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}
.journey__pagination-bar {
  width: 60px;
  height: 2px;
  background: var(--grey-3);
  position: relative;
}
.journey__pagination-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--text-primary);
  transition: width 0.3s ease;
}
.journey__nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-3);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.journey__nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .journey__detail {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .journey__illustration { display: none; }
  .journey__roadmap { display: none; }
  .journey__content h3 { font-size: var(--text-2xl); }
}

/* --- Long-form policy / legal pages (Privacy Policy, Terms & Conditions) ---
   Always visible (no scroll-fade gating), smaller section headings, and
   prose-friendly line height. The default h2/h3 sizes are tuned for hero
   sections, which is way too large for a page that has 10+ numbered sections. */
.policy-content {
  /* Override the global p.max-width so list/paragraph wrap matches the container */
  color: var(--color-text, #111);
}
.policy-content h2 {
  font-size: var(--text-3xl);          /* 28px — was 48px (text-6xl) */
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.policy-content h2:first-child {
  margin-top: 0;
}
.policy-content h3 {
  font-size: var(--text-xl);           /* 20px — was 28px (text-3xl) */
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  line-height: 1.4;
  color: var(--color-text, #111);
}
.policy-content p {
  line-height: 1.7;
  margin-bottom: var(--space-3);
  max-width: none;                     /* allow full container width */
}
.policy-content ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.5rem;
}
.policy-content li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}
.policy-content strong { font-weight: 600; }

@media (max-width: 768px) {
  .policy-content h2 { font-size: var(--text-2xl); }
  .policy-content h3 { font-size: var(--text-lg, 1.125rem); }
}

/* Footer tagline image — appears below the description, no backdrop.
   Bigger and tighter against the surrounding copy. */
.footer__tagline {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 0 var(--space-4);
}

/* Homepage hero — rotating chakra ornament.
   Lives inside .hero__visual which wraps the credibility panel, so the chakra
   center is the panel center. The chakra is sized larger than the panel to
   create a halo effect around it. */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hero__visual .hero__panel {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__chakra {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  height: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  animation: heroChakraSpin 60s linear infinite;
}

@keyframes heroChakraSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__chakra { animation: none; }
}

/* Chairman / leader identity card */
.leader-card {
  background: linear-gradient(160deg, #080050 0%, #12087a 50%, #1a0fa0 100%);
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.leader-card__orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.leader-card__orb--tr {
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
}
.leader-card__orb--bl {
  bottom: -60px;
  left: -30px;
  width: 250px;
  height: 250px;
  border-color: rgba(255, 255, 255, 0.06);
}
.leader-card__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  border: 3px solid rgba(255, 205, 87, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}
.leader-card__avatar span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  color: #ffffff;
  letter-spacing: 0.02em;
}
.leader-card__name {
  color: #ffffff;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}
.leader-card__role {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}
.leader-card__rule {
  width: 50px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}
.leader-card__bio {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}
.leader-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: background var(--duration-state) var(--ease-out),
              border-color var(--duration-state) var(--ease-out),
              transform var(--duration-state) var(--ease-out),
              box-shadow var(--duration-state) var(--ease-out);
}
.leader-card__linkedin svg {
  width: 18px;
  height: 18px;
}
.leader-card__linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.45);
}
.leader-card__linkedin:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 921px) {
  .leader-card {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-10);
  }
}


/* --- Brochure Lead-Capture Modal --- */
.brochure-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.brochure-modal.open { display: flex; }
.brochure-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 80, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.brochure-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8) var(--space-6);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-pronounced);
}
.brochure-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--grey-2);
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-micro) var(--ease-out);
}
.brochure-modal__close:hover { background: var(--grey-3); }
.brochure-modal__title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
  padding-right: var(--space-8);
}
.brochure-modal__intro {
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}
.brochure-modal__intro strong {
  color: var(--color-primary);
  font-weight: 700;
}
.brochure-modal__form label {
  display: block;
  margin-bottom: var(--space-4);
}
.brochure-modal__form label span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.brochure-modal__form input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--grey-4);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}
.brochure-modal__form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 0, 151, 0.1);
}
.brochure-modal__submit {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: 2px solid var(--grey-4);
  background: var(--grey-2);
  color: var(--text-tertiary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: background var(--duration-state) var(--ease-out),
              border-color var(--duration-state) var(--ease-out),
              color var(--duration-state) var(--ease-out),
              box-shadow var(--duration-state) var(--ease-out);
  margin-top: var(--space-2);
}
.brochure-modal__submit--ready {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--text-inverse);
  box-shadow: 0 6px 18px rgba(15, 157, 88, 0.30);
}
.brochure-modal__submit--ready:hover {
  background: #0a7b45;
  border-color: #0a7b45;
}
.brochure-modal__submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.brochure-modal__status {
  font-size: var(--text-sm);
  margin: var(--space-3) 0 0;
  min-height: 1.2em;
  color: var(--text-secondary);
}
.brochure-modal__status--error { color: var(--color-error); }
.brochure-modal__success {
  text-align: center;
  padding: var(--space-4) 0 var(--space-2);
}
.brochure-modal__tick {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brochure-modal__success-title {
  color: var(--color-success);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-3);
}
.brochure-modal__success-message {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Footer Google Maps embed (appears after the SANPAR address) */
.footer__map {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  filter: grayscale(20%);
  transition: filter var(--duration-state) var(--ease-out);
}
.footer__map:hover { filter: grayscale(0%); }
@media (max-width: 921px) {
  .footer__map { height: 160px; }
}

/* Footer social: tooltip on hover showing the platform name (from aria-label) */
.footer__social a {
  position: relative;
}
.footer__social a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 10, 30, 0.92);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.footer__social a::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(10, 10, 30, 0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.footer__social a:hover::after,
.footer__social a:focus-visible::after,
.footer__social a:hover::before,
.footer__social a:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Support page: Service Request form --- */
.support-form-card {
  background: var(--bg-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--grey-3);
}
.support-form label {
  display: block;
  margin-bottom: var(--space-4);
}
.support-form label > span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.support-form label > span em {
  color: var(--color-error);
  font-style: normal;
  margin-left: 2px;
}
.support-form input[type="text"],
.support-form input[type="tel"],
.support-form input[type="email"],
.support-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-4);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}
.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 0, 151, 0.1);
}
.support-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
}
.support-form input[type="file"] {
  width: 100%;
  padding: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border: 1px dashed var(--grey-4);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  cursor: pointer;
}
.support-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 544px) {
  .support-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Partnership page --- */
.partner-grid { gap: var(--space-6); }
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  cursor: pointer;
  transition: border-color var(--duration-state) var(--ease-out),
              box-shadow var(--duration-state) var(--ease-out),
              transform var(--duration-state) var(--ease-out);
  font-family: var(--font-body);
  width: 100%;
  text-align: center;
}
.partner-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(6, 0, 151, 0.10);
  transform: translateY(-2px);
}
.partner-card--selected {
  border-color: var(--color-primary);
  background: linear-gradient(160deg, #ffffff 0%, #f4f4ff 100%);
  box-shadow: 0 12px 28px rgba(6, 0, 151, 0.14);
}
.partner-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(6, 0, 151, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: background var(--duration-state) var(--ease-out);
}
.partner-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-primary);
  fill: none;
}
.partner-card:hover .partner-card__icon,
.partner-card--selected .partner-card__icon {
  background: rgba(6, 0, 151, 0.16);
}
.partner-card__title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  line-height: 1.3;
}
.partner-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
  max-width: 36ch;
}
.partner-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.partner-card__tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--grey-2);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 999px;
}
.partner-card--selected .partner-card__tags span {
  background: rgba(6, 0, 151, 0.10);
  color: var(--color-primary);
}

/* Partnership form card */
.partner-form-card {
  background: var(--bg-white);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--grey-3);
}
.partner-form label {
  display: block;
  margin-bottom: var(--space-4);
}
.partner-form label > span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.partner-form label > span em {
  color: var(--color-error);
  font-style: normal;
  margin-left: 2px;
}
.partner-form input[type="text"],
.partner-form input[type="email"],
.partner-form input[type="tel"],
.partner-form select,
.partner-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-4);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--duration-micro) var(--ease-out),
              box-shadow var(--duration-micro) var(--ease-out);
}
.partner-form select {
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23495057' stroke-width='2'><path d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
  cursor: pointer;
}
.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 0, 151, 0.1);
}
.partner-form textarea {
  resize: vertical;
  min-height: 120px;
}
.partner-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 544px) {
  .partner-form-card { padding: var(--space-6); }
  .partner-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Post Modal (Blogs / News expand-in-place) --- */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.post-modal.open { display: flex; }
.post-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 80, 0.55);
  backdrop-filter: blur(4px);
}
.post-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.post-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--ease-out);
}
.post-modal__close:hover { background: rgba(0, 0, 0, 0.12); }
.post-modal__image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}
.post-modal__title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
  line-height: 1.25;
  color: var(--text-primary);
}
.post-modal__body { color: var(--text-secondary); line-height: 1.65; }
.post-modal__body p { margin: 0 0 var(--space-3); }
.post-modal__body p:last-child { margin-bottom: 0; }
@media (max-width: 544px) {
  .post-modal__dialog { padding: var(--space-6); }
  .post-modal__image { max-height: 200px; }
}

/* === Success Story Cards === */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}
.stories-grid--featured {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}
@media (max-width: 1024px) { .stories-grid--featured { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .stories-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .stories-grid--featured { grid-template-columns: 1fr; }
}
.stories-empty,
.stories-grid__fallback {
  grid-column: 1 / -1;
  text-align: center;
  color: #1a3a5c;
  font-size: var(--text-lg);
  font-weight: 600;
  background: #f3f5f9;
  border: 2px dashed #c4ccd6;
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-6);
}
.story-card--skeleton {
  min-height: 480px;
  background: linear-gradient(90deg, var(--bg-light) 0%, #eef0f5 50%, var(--bg-light) 100%);
  background-size: 200% 100%;
  animation: storySkeletonPulse 1.4s ease-in-out infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-2);
}

/* === Job Openings === */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 920px;
  margin: 0 auto;
}
.jobs-empty {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--bg-light);
  border: 1px dashed var(--grey-3);
  border-radius: var(--radius-lg);
}
.jobs-empty h3 {
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.jobs-empty p {
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 56ch;
  line-height: 1.7;
}
.jobs-empty a {
  color: var(--color-primary);
  font-weight: 700;
}
.job-card {
  background: #fff;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-subtle);
}
.job-card__dept {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: var(--space-3);
}
.job-card__title {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}
.job-card__location {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.job-card__location strong {
  color: var(--text-primary);
}
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.job-card__meta-pill {
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--grey-2);
}
.job-card__desc {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
}
.job-card__list-block {
  margin-bottom: var(--space-5);
}
.job-card__list-block h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.job-card__list {
  list-style: disc;
  padding-left: var(--space-6);
  margin: 0;
}
.job-card__list li {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-2);
}
.job-card__cta {
  margin-top: var(--space-3);
}
.job-card--skeleton {
  background: #fff;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.job-card__skel-line {
  height: 18px;
  background: linear-gradient(90deg, var(--bg-light) 0%, #eef0f5 50%, var(--bg-light) 100%);
  background-size: 200% 100%;
  animation: storySkeletonPulse 1.4s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: var(--space-3);
}
.job-card__skel-line--short { width: 30%; }
.job-card__skel-line--long  { width: 70%; height: 28px; }
@keyframes storySkeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.story-card {
  background: #fff;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.story-card__industry {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}
.story-card__headline {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0;
}
.story-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-height: 220px;
}
.story-card__logo img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}
.story-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story-card__company {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}
.story-card__product {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.story-card__product span { font-weight: 700; color: var(--text-primary); }
.story-card__summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.story-card__cta {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration-fast) var(--ease-out);
}
.story-card__cta:hover { gap: 10px; }
.story-card__cta:hover, .story-card__cta:focus { text-decoration: none; }

/* === Success Story Modal === */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.story-modal.open { display: flex; }
.story-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 80, 0.55);
  backdrop-filter: blur(4px);
}
.story-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  padding: var(--space-8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.story-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--text-secondary);
  z-index: 2;
}
.story-modal__close:hover { background: rgba(0, 0, 0, 0.12); }
.story-modal__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--grey-2);
  margin-bottom: var(--space-6);
}
.story-modal__head h2 {
  font-size: var(--text-3xl);
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
}
.story-modal__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.story-modal__logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--space-2);
}
.story-modal__logo img { max-height: 120px; max-width: 220px; object-fit: contain; }
.story-modal__glance {
  background: var(--bg-light);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.story-modal__glance h3 {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
}
.story-modal__glance-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--grey-2);
}
.story-modal__glance-row:last-child { border-bottom: 0; }
@media (max-width: 600px) { .story-modal__glance-row { grid-template-columns: 1fr; gap: 2px; } }
.story-modal__glance-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.story-modal__glance-value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.story-modal__section { margin-bottom: var(--space-8); }
.story-modal__section h3 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.story-modal__section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-3);
}
.story-modal__subsection {
  margin: var(--space-4) 0 var(--space-3);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-accent);
}
.story-modal__subsection h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}
.story-modal__bullets {
  list-style: disc;
  padding-left: var(--space-6);
  margin: 0 0 var(--space-3);
}
.story-modal__bullets li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-2);
}
.story-modal__metrics-wrap { overflow-x: auto; margin: var(--space-3) 0; }
.story-modal__metrics {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.story-modal__metrics th,
.story-modal__metrics td {
  border: 1px solid var(--grey-2);
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}
.story-modal__metrics th {
  background: var(--bg-light);
  color: var(--text-primary);
  font-weight: 700;
}
.story-modal__metrics td { color: var(--text-secondary); line-height: 1.55; }
.story-modal__footnote {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-style: italic;
  border-top: 1px dashed var(--grey-3);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
}
@media (max-width: 600px) {
  .story-modal__dialog { padding: var(--space-6); }
  .story-modal__head h2 { font-size: var(--text-2xl); }
}

/* === Standalone Success Story page (/success-story.html)
   Uses ONLY site design tokens (--color-primary, --bg-light, etc.) so it
   reads as part of the same site, not a separate template. Typography
   follows the rest of the site (no font-weight: 800, no custom
   gradients beyond the shared .page-hero / .section--light styles). */
.story-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  transition: gap var(--duration-fast) var(--ease-out);
}
.story-page__back:hover { gap: 10px; text-decoration: none; }

.story-page__loading,
.story-page__missing {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  color: var(--text-secondary);
}
.story-page__missing h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

/* Hero — reuses .page-hero base. We just style the inner blocks. */
.story-page__hero { /* layout-only; visual comes from .page-hero */ }
.story-page__hero .label {
  color: var(--color-accent);
}
.story-page__hero-meta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.story-page__logo {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.story-page__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.story-page__customer-name {
  color: var(--text-inverse);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 4px;
}
.story-page__customer-product {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-base);
  margin: 0;
}
.story-page__customer-product span {
  opacity: 0.75;
  margin-right: 4px;
}

/* Body sections */
.story-page__summary {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 var(--space-10);
}

.story-page__glance {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-7);
  margin: 0 0 var(--space-10);
}
.story-page__glance-heading {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 var(--space-4);
}
.story-page__stats { display: block; }
.story-page__stat {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--bg-subtle);
}
.story-page__stat:first-child {
  border-top: 0;
  padding-top: var(--space-2);
}
.story-page__stat-label {
  font-size: var(--text-xs);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding-top: 5px;
}
.story-page__stat-value {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
}

.story-page__section {
  margin: 0 0 var(--space-10);
}
.story-page__section-heading {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
.story-page__section-body p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
.story-page__section-body p:last-child { margin-bottom: 0; }

.story-page__subsection {
  margin: var(--space-6) 0;
}
.story-page__subsection h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.story-page__bullets {
  list-style: disc outside;
  padding-left: var(--space-6);
  margin: var(--space-4) 0;
  color: var(--text-primary);
}
.story-page__bullets li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}
.story-page__bullets li::marker { color: var(--color-primary); }

.story-page__table-wrap {
  overflow-x: auto;
  margin: var(--space-6) 0;
  border: 1px solid var(--bg-subtle);
  border-radius: var(--radius-md);
}
.story-page__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.story-page__table thead {
  background: var(--color-primary);
}
.story-page__table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
  color: var(--text-inverse);
  font-size: var(--text-sm);
}
.story-page__table td {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--bg-subtle);
  vertical-align: top;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Metrics table — 3-column layout matching docx style:
   - Header row: navy bg, white text (inherited from .story-page__table thead)
   - First column (Metric):     light blue bg, primary-blue bold text
   - Second column (Performance): light blue bg, green bold text
   - Third column (What This Means): white bg, regular dark text */
.story-page__table--metrics td:nth-child(1),
.story-page__table--metrics td:nth-child(2) {
  background: var(--color-info-bg);
  font-weight: 700;
  vertical-align: top;
}
.story-page__table--metrics td:nth-child(1) {
  color: var(--color-primary);
  width: 24%;
}
.story-page__table--metrics td:nth-child(2) {
  color: var(--color-success);
  width: 22%;
}
.story-page__table--metrics td:nth-child(3) {
  background: var(--bg-white);
}
.story-page__table--metrics tbody tr:nth-child(even) { background: transparent; }

/* Metric tile grid — used when metric `meaning` field is empty.
   Matches the docx KEY PERFORMANCE METRICS layout: navy tiles with a
   large white value above a smaller descriptor label. */
.story-page__metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.story-page__metric-tile {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
}
.story-page__metric-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
  word-break: keep-all;
}
.story-page__metric-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}
@media (max-width: 720px) {
  .story-page__metric-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .story-page__metric-grid { grid-template-columns: 1fr; }
}

/* Spec table variant — no header row; first column rendered as a navy
   label band (matches docx 2-column model spec layout used in Ecodrair). */
.story-page__table--spec td:first-child {
  background: var(--color-primary);
  color: var(--text-inverse);
  font-weight: 600;
  white-space: nowrap;
  width: 1%;            /* shrink to content */
  vertical-align: middle;
}
.story-page__table--spec tbody tr td:first-child { border-top: 1px solid rgba(255,255,255,0.15); }
.story-page__table--spec tbody tr:first-child td:first-child { border-top: 0; }

.story-page__footnote {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin-top: var(--space-4);
}

.story-page__cta {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-12) 0 0;
}
.story-page__cta h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}
.story-page__cta p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.story-page__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (max-width: 600px) {
  .story-page__hero-meta { gap: var(--space-4); }
  .story-page__logo { width: 100px; height: 100px; padding: var(--space-3); }
  .story-page__customer-name { font-size: var(--text-lg); }
  .story-page__customer-product { font-size: var(--text-sm); }
  .story-page__summary { font-size: var(--text-base); }
  .story-page__glance { padding: var(--space-5); }
  .story-page__stat {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-3) 0;
  }
  .story-page__stat-label { padding-top: 0; }
  .story-page__section-heading { font-size: var(--text-2xl); }
}

/* ============================================================================
   MOBILE OVERLAP FIXES — appended block
   ----------------------------------------------------------------------------
   Every rule here is gated behind a max-width media query so the desktop and
   tablet (>768px) layouts are unchanged. Three concrete bugs addressed:

   1. industries.html: 10th card uses inline grid-column:2 to center itself in
      row 4 of the 3-col desktop grid. When the grid collapses to 1fr on mobile
      that inline rule creates a phantom column and the card appears stranded /
      overlapping. Force grid-column back to auto on small screens.

   2. Product page heroes (.xer-hero, .eco-hero, .adp-hero, .caf-hero,
      .aco-hero, .ms-hero, .drn-hero, .chl-hero, .dhm-hero) — each defined in
      its product page's own <style>. Original min-height 540-600px + h1 at
      --text-8xl + horizontal gradient (90deg, fading to 0% on the right) makes
      the headline overlap the still-bright right edge of the background image
      on a phone. Shrink the box and flip the gradient to vertical so the top
      stays dark for the text. The .*-stats bar (flex + min-width + border-left)
      collides into itself on phones; restructure to a 2-col CSS grid without
      side borders.

   3. Industry detail pages and homepage hero already collapse cleanly through
      existing media queries — no changes needed.
   ========================================================================== */

@media (max-width: 544px) {
  /* (1) Stranded industry-listing card */
  .card--industry[style*="grid-column"] { grid-column: auto !important; }
}

@media (max-width: 768px) {
  /* (2a) Product hero containers. The fixed .header is 100px tall and overlays
         the top of the page. The desktop layout works around that with
         min-height:560px + align-items:center, which pushes content well below
         the header. On mobile we keep a reduced min-height for visual presence
         but ALSO add top padding that explicitly clears the fixed header (the
         same pattern .page-hero uses). Without this, the badge + top of h1
         sit under the header and look "cut" at first paint. */
  .xer-hero__inner, .eco-hero__inner, .adp-hero__inner, .caf-hero__inner,
  .aco-hero__inner, .ms-hero__inner,  .drn-hero__inner, .chl-hero__inner,
  .dhm-hero__inner {
    min-height: 480px;
    padding: calc(100px + var(--space-6)) var(--space-5) var(--space-8);
  }

  /* (2b) Hero h1 was --text-8xl; that wraps to 4-5 lines on a phone and
         overflows into the photograph. Scale to --text-5xl. */
  .xer-hero h1, .eco-hero h1, .adp-hero h1, .caf-hero h1,
  .aco-hero h1, .ms-hero h1,  .drn-hero h1, .chl-hero h1,
  .dhm-hero h1 {
    font-size: var(--text-5xl);
    line-height: 1.1;
  }

  /* (2c) Background images positioned 'right center' get pushed off-screen on
         a portrait phone. Recenter so the imagery is still visible. */
  .xer-hero__bg, .eco-hero__bg, .adp-hero__bg, .caf-hero__bg,
  .aco-hero__bg, .ms-hero__bg,  .drn-hero__bg, .chl-hero__bg,
  .dhm-hero__bg {
    background-position: center !important;
  }

  /* (2d) The original 90deg gradient (dark left → transparent right) is
         designed for a wide layout where text sits on the left half. On a
         narrow viewport the text spans full width and overlaps the bright
         right edge. Flip to a vertical gradient so the top half (where the
         badge+h1+tag live) stays dark. Same indigo colour as the per-page
         hero gradients. */
  .xer-hero__bg::after, .eco-hero__bg::after, .adp-hero__bg::after,
  .caf-hero__bg::after, .aco-hero__bg::after, .ms-hero__bg::after,
  .drn-hero__bg::after, .chl-hero__bg::after, .dhm-hero__bg::after {
    background: linear-gradient(180deg,
                                rgba(7,5,38,.92) 0%,
                                rgba(7,5,38,.78) 55%,
                                rgba(7,5,38,.55) 100%) !important;
  }
}

@media (max-width: 544px) {
  /* (2e) Tighter side/bottom padding at phone widths — top padding still has
         to clear the 100px fixed header so the badge stays visible. */
  .xer-hero__inner, .eco-hero__inner, .adp-hero__inner, .caf-hero__inner,
  .aco-hero__inner, .ms-hero__inner,  .drn-hero__inner, .chl-hero__inner,
  .dhm-hero__inner {
    padding: calc(100px + var(--space-4)) var(--space-4) var(--space-6);
  }
  .xer-hero h1, .eco-hero h1, .adp-hero h1, .caf-hero h1,
  .aco-hero h1, .ms-hero h1,  .drn-hero h1, .chl-hero h1,
  .dhm-hero h1 {
    font-size: var(--text-4xl);
  }

  /* (2f) Stats bar restructure: original .*-stats is flex with flex-wrap and
         each .*-stat has min-width:120px + border-left. On a 360px phone the
         items overflow horizontally and the border-lefts pile up. Switch to a
         deterministic 2-col grid with the borders dropped. */
  .xer-stats, .eco-stats, .adp-stats, .caf-stats,
  .aco-stats, .ms-stats,  .drn-stats, .chl-stats, .dhm-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) 0;
  }
  .xer-stat, .eco-stat, .adp-stat, .caf-stat,
  .aco-stat, .ms-stat,  .drn-stat, .chl-stat, .dhm-stat {
    padding: 0;
    border-left: none !important;
    min-width: 0;
  }

  /* (3) Xeros / Adsorption / Air-filter heroes — the wide product photos
        (1672x941, ratio 1.78:1) lose most of the product when cropped with
        cover on a 360-414px viewport (only the middle slice shows; the
        product itself sits on the right of the image). Switch these three
        heroes to background-size:contain anchored at center bottom so the
        ENTIRE photo is visible, then stack the text at the top of the box
        and reserve image height as padding-bottom. */
  .xer-hero__bg,
  .adp-hero__bg,
  .caf-hero__bg {
    background-size: contain !important;
    background-position: center bottom !important;
  }
  .xer-hero__inner,
  .adp-hero__inner,
  .caf-hero__inner {
    /* override the desktop align-items:center so text doesn't drift onto the
       photo when content height < total hero height */
    align-items: flex-start;
    /* contain at 100% width → image height = 100% × (941/1672) ≈ 56vw.
       Reserve that + a buffer so text never overlaps the product photo. */
    padding-bottom: calc(56vw + var(--space-4));
  }
  /* Gradient: solid dark over the text area, fully transparent over the
     photo area so the product is fully readable. */
  .xer-hero__bg::after,
  .adp-hero__bg::after,
  .caf-hero__bg::after {
    background: linear-gradient(180deg,
                                rgba(7,5,38,0.95) 0%,
                                rgba(7,5,38,0.92) 38%,
                                rgba(7,5,38,0.55) 58%,
                                rgba(7,5,38,0.0)  100%) !important;
  }
}
