@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b1220;
  --bg-2: #0e1525;
  --bg-alt: #111a2e;
  --card: #162033;
  --text: #f5f7fa;
  --muted: #b8c2d1;
  --accent: #c9a34e;
  --accent-2: #e0bf6b;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);

  --container: 1200px;
  --section-space: 50px;
  --radius: 18px;

  --header-height: 78px;
  --logo-height: 52px;
  --nav-gap: 24px;

  --hero-top: 96px;
  --hero-bottom: 72px;
  --hero-grid-left: 1.15fr;
  --hero-grid-right: 0.85fr;
  --hero-gap: 38px;
  --hero-max-text: 700px;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-panel-shift-x: 0px;
  --hero-panel-shift-y: 0px;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --h1-size: clamp(3rem, 4vw, 5.2rem);
  --h2-size: clamp(2rem, 4vw, 3.25rem);
  --body-size: 1rem;
  --hero-text-size: 1.1rem;
  --section-subtitle-size: 1.05rem;

  --btn-height: 48px;
  --btn-padding-x: 22px;

  --card-padding: 28px;
  --card-gap: 22px;

  --section-title-max: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top right, rgba(201, 163, 78, 0.10), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* GLOBAL LAYOUT */
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  line-height: 1.1;
  margin-bottom: 10px;
  max-width: var(--section-title-max);
}

.section-subtitle {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: var(--section-subtitle-size);
}

/* BUTTONS */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  min-height: var(--btn-height);
  padding: 14px var(--btn-padding-x);
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b1220;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 163, 78, 0.22);
}

.btn-secondary {
  border-color: rgba(201, 163, 78, 0.45);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.mini-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(201, 163, 78, 0.45);
}

/* CARD GRID */
.card-grid {
  display: grid;
  gap: var(--card-gap);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.one {
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(201, 163, 78, 0.16),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(201, 163, 78, 0.35);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: var(--logo-height);
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--hero-top) 0 var(--hero-bottom);
  background:
    radial-gradient(circle at top right, rgba(201, 163, 78, 0.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(135deg, #04070c 0%, #09111b 46%, #0d1723 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(201,163,78,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--hero-grid-left)) minmax(340px, var(--hero-grid-right));
  gap: var(--hero-gap);
  align-items: center;
  position: relative;
  z-index: 4;
}

.hero-copy {
  max-width: var(--hero-max-text);
  min-width: 0;
  transform: translate(var(--hero-shift-x), var(--hero-shift-y));
  position: relative;
  z-index: 4;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--h1-size);
  line-height: 0.95;
  margin-bottom: 20px;
  position: relative;
  z-index: 4;
}

.hero p {
  max-width: var(--hero-max-text);
  color: var(--muted);
  font-size: var(--hero-text-size);
}

.hero-side {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  position: relative;
  z-index: 4;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  transform: translate(var(--hero-panel-shift-x), var(--hero-panel-shift-y));
  width: 100%;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 4;
}

.hero-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero-panel p {
  font-size: 0.98rem;
}

.hero-panel-large {
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel-large h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.hero-panel-large p {
  margin-bottom: 18px;
}

/* HERO BACKGROUND TEXT */
.hero-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-animated span {
  position: absolute;
  white-space: nowrap;
  font-size: clamp(48px, 8vw, 150px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(201, 163, 78, 0.28);
  text-shadow:
    0 0 18px rgba(201, 163, 78, 0.16),
    0 0 42px rgba(201, 163, 78, 0.10);
  animation: heroTextFlow 14s linear infinite;
  will-change: transform;
  user-select: none;
  opacity: 0.10;
}

.hero-bg-animated span:nth-child(1)  { top: -1%; left: -2%; animation-delay: 0s; }
.hero-bg-animated span:nth-child(2)  { top: 10%; left: 24%; animation-delay: -2s; }
.hero-bg-animated span:nth-child(3)  { top: 22%; left: 48%; animation-delay: -4s; }
.hero-bg-animated span:nth-child(4)  { top: 34%; left: 8%; animation-delay: -6s; }
.hero-bg-animated span:nth-child(5)  { top: 46%; left: 30%; animation-delay: -8s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(4, 7, 12, 0.62) 0%,
    rgba(4, 7, 12, 0.40) 42%,
    rgba(4, 7, 12, 0.58) 100%
  );
}

/* CCTV SCAN EFFECT */
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-scan::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    rgba(201, 163, 78, 0.05) 40deg,
    rgba(201, 163, 78, 0.22) 70deg,
    rgba(201, 163, 78, 0.48) 90deg,
    rgba(201, 163, 78, 0.22) 110deg,
    rgba(201, 163, 78, 0.05) 140deg,
    transparent 180deg
  );
  animation: scanRotate 6.5s linear infinite;
  transform-origin: center;
  filter: blur(28px);
  mix-blend-mode: screen;
}

/* BADGES / TICKER */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(201, 163, 78, 0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
}

.trust-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 28px;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trust-ticker-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: trustTicker 18s linear infinite;
}

.trust-ticker:hover .trust-ticker-track {
  animation-play-state: paused;
}

/* PAGE HERO */
.page-hero {
  padding: 86px 0 46px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,0.06), transparent 40%);
}

.page-hero .section-title {
  margin-bottom: 12px;
}

.page-hero h1.section-title {
  max-width: 900px;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* SPLIT / LIST / STATS */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.split .card,
.split .content-block {
  height: 100%;
}

.content-block {
  padding: 10px 0;
}

.content-block h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.content-block p + p {
  margin-top: 12px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 1.9rem;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA BLOCK */
.cta-box {
  background: linear-gradient(180deg, rgba(201,163,78,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(201, 163, 78, 0.20);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.cta-box .section-title {
  margin-bottom: 10px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
  padding: 28px 0;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left img {
  height: 42px;
  width: auto;
}

.footer-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-link {
  color: #c9a34e;
  font-weight: 500;
  transition: 0.2s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-2);
}

/* CONTACT FORM */
.contact-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201, 163, 78, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 163, 78, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* HELPERS */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.max-760 { max-width: 760px; }
.max-820 { max-width: 820px; }

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  margin: 40px 0;
}

/* HERO RANDOM SILHOUETTE */
.hero-silhouette {
  position: absolute;
  top: 30%;
  left: 60%;
  width: 120px;
  height: 220px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.35s ease,
    transform 0.45s ease,
    top 0.45s ease,
    left 0.45s ease,
    width 0.45s ease,
    height 0.45s ease;
  filter: blur(0);
}

.hero-silhouette .sil-head,
.hero-silhouette .sil-body {
  position: absolute;
  display: block;
  background: rgba(0, 0, 0, 1);
}

.hero-silhouette .sil-head {
  top: 0;
  left: 50%;
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-silhouette .sil-body {
  top: 18%;
  left: 50%;
  width: 42%;
  height: 68%;
  transform: translateX(-50%);
  border-radius: 40% 40% 18% 18% / 18% 18% 10% 10%;
  clip-path: polygon(
    38% 0%,
    62% 0%,
    78% 12%,
    88% 34%,
    78% 58%,
    68% 100%,
    54% 100%,
    50% 74%,
    46% 100%,
    32% 100%,
    22% 58%,
    12% 34%,
    22% 12%
  );
}

.hero-silhouette::before,
.hero-silhouette::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14%;
  height: 36%;
  background: rgba(0, 0, 0, 1);
  border-radius: 18px;
}

.hero-silhouette::before {
  left: 41%;
  transform: translateX(-100%) rotate(4deg);
}

.hero-silhouette::after {
  left: 59%;
  transform: rotate(-4deg);
}

.hero-silhouette.active {
  opacity: 0.3;
}

/* VIDEO */
.video-embed-wrap {
  width: min(100%, 860px);
  margin: 0 auto;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 78, 0.18);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* INDEX PAGE MEDIA SECTIONS */
.service-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-media-card {
  overflow: hidden;
  padding: 0;
}

.service-media-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.service-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-media-card:hover .service-media-thumb img {
  transform: scale(1.05);
}

.service-media-content {
  padding: 22px;
}

.service-media-content h3 {
  margin-bottom: 10px;
}

.service-media-content p {
  color: var(--muted);
}

/* COMPANY CREDENTIALS - SLIDING STYLE */
.credential-slider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.credential-slide-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.03);
}

.credential-slide-image {
  position: absolute;
  inset: 0;
}

.credential-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.credential-slide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.10) 0%,
    rgba(6, 10, 18, 0.18) 32%,
    rgba(6, 10, 18, 0.88) 100%
  );
  pointer-events: none;
}

.credential-slide-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16,24,40,0.78), rgba(16,24,40,0.94));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  transform: translateY(62%);
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.credential-slide-card:hover .credential-slide-overlay {
  transform: translateY(0);
  border-color: rgba(201, 163, 78, 0.28);
}

.credential-slide-card:hover .credential-slide-image img {
  transform: scale(1.05);
}

.credential-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credential-slide-overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.credential-slide-overlay p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* TRAINING PREVIEW CARDS */
.training-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.training-preview-card {
  padding: 0;
  overflow: hidden;
}

.training-preview-media {
  position: relative;
  display: block;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px;
  overflow: hidden;
}

.training-preview-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  transition: transform 0.45s ease;
}

.training-preview-card:hover .training-preview-media img {
  transform: scale(1.03);
}

.training-preview-view {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.training-preview-card:hover .training-preview-view {
  border-color: rgba(201, 163, 78, 0.38);
  background: rgba(7, 10, 18, 0.92);
}

.training-preview-content {
  padding: 20px 22px 24px;
}

.training-preview-content h3 {
  margin-bottom: 10px;
}

.training-preview-content p {
  color: var(--muted);
}

/* SECURITY GALLERY STRIP */
.security-gallery-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0 0 6px;
  margin-top: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.security-gallery-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  min-width: max-content;
  animation: securityGalleryMove 42s linear infinite;
  will-change: transform;
  padding: 0 16px;
}

.security-gallery-marquee:hover .security-gallery-track {
  animation-play-state: paused;
}

.security-gallery-item {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.03);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.security-gallery-item:hover {
  transform: scale(1.04);
  border-color: rgba(201, 163, 78, 0.30);
}

.security-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CORE CAPABILITIES MOVING ROW */
.capability-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 24px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.capability-track {
  display: inline-flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  min-width: max-content;
  animation: capabilityMove 34s linear infinite;
  will-change: transform;
  padding: 0 16px;
}

.capability-marquee:hover .capability-track {
  animation-play-state: paused;
}

.capability-card {
  flex: 0 0 auto;
  width: 300px;
  overflow: hidden;
  padding: 0;
}

.capability-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.capability-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.capability-card:hover .capability-img img {
  transform: scale(1.05);
}

.capability-content {
  padding: 18px;
}

.capability-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ============================= */
/* RBA PAGE UPGRADE              */
/* ============================= */

.rba-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,163,78,0.10), transparent 34%),
    radial-gradient(circle at 85% 70%, rgba(201,163,78,0.07), transparent 36%),
    linear-gradient(90deg, rgba(5, 14, 30, 0.96) 0%, rgba(9, 20, 38, 0.86) 42%, rgba(18, 25, 37, 0.74) 100%);
}

.rba-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}

.rba-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.rba-hero-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,163,78,0.20);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.rba-video-section {
  position: relative;
}

.rba-video-frame {
  box-shadow: 0 22px 54px rgba(0,0,0,0.42);
  border: 1px solid rgba(201,163,78,0.20);
}

.rba-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 0 10px;
}

.rba-trust-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

/* RBA VIDEO GRID */
.rba-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.rba-video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rba-video-small {
  border-radius: 18px;
}

.rba-video-meta h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.rba-video-meta p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ANIMATIONS */
@keyframes heroTextFlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, -120px);
  }
}

@keyframes scanRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes trustTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes securityGalleryMove {
  from {
    transform: translateX(calc(-50% - 9px));
  }
  to {
    transform: translateX(0);
  }
}

@keyframes capabilityMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  :root {
    --container: 1040px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 30px;
  }
}

@media (max-width: 980px) {
  :root {
    --section-space: 56px;
    --hero-top: 80px;
    --hero-bottom: 60px;
    --logo-height: 46px;
    --h1-size: clamp(2.4rem, 9vw, 4rem);
    --h2-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .logo {
    order: 1;
  }

  .nav-cta {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(201, 163, 78, 0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
  }

  .hero-grid,
  .stats-grid,
  .card-grid.three,
  .card-grid.two,
  .service-media-grid,
  .credential-slider-grid,
  .training-preview-grid,
  .rba-video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel {
    transform: none;
  }

  .hero-panel-large {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 7, 12, 0.50) 0%,
      rgba(4, 7, 12, 0.62) 100%
    );
  }

  .hero-bg-animated span {
    font-size: clamp(34px, 7vw, 82px);
    letter-spacing: 0.12em;
    color: rgba(201, 163, 78, 0.22);
    opacity: 0.09;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-bg-animated span {
    font-size: 32px;
    letter-spacing: 0.08em;
    color: rgba(201, 163, 78, 0.20);
    text-shadow:
      0 0 10px rgba(201, 163, 78, 0.07),
      0 0 18px rgba(201, 163, 78, 0.04);
    animation-duration: 8s;
  }

  .hero-scan::before {
    animation-duration: 5.5s;
    filter: blur(20px);
  }

  .hero-silhouette {
    width: 82px;
    height: 150px;
  }

  .hero-silhouette.active {
    opacity: 0.18;
  }

  .hero-bg-animated span:nth-child(2),
  .hero-bg-animated span:nth-child(5) {
    display: none;
  }

  .service-media-grid,
  .credential-slider-grid,
  .training-preview-grid,
  .stats-grid,
  .card-grid.three,
  .card-grid.two,
  .rba-video-grid {
    grid-template-columns: 1fr;
  }

  .credential-slide-card {
    min-height: 400px;
  }

  .credential-slide-overlay {
    transform: translateY(0);
  }

  .security-gallery-item {
    width: 240px;
    height: 175px;
  }

  .capability-card {
    width: 260px;
    min-height: 210px;
  }

  .rba-hero-points {
    gap: 10px;
  }

  .rba-hero-points span,
  .rba-trust-strip span {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn.full {
    width: 100%;
  }

  .hero-panel,
  .cta-box,
  .card,
  .stat-card {
    padding: 22px;
  }

  .trust-ticker {
    margin-top: 22px;
  }

  .trust-ticker-track {
    gap: 10px;
    animation-duration: 16s;
  }

  .badge {
    width: auto;
    text-align: center;
  }

  .video-embed {
    border-radius: 20px;
  }

  .training-preview-view {
    left: 24px;
    bottom: 24px;
  }

  .security-gallery-track {
    gap: 14px;
    animation-duration: 34s;
  }
}

@media (max-width: 480px) {
  .hero-bg-animated span {
    font-size: 26px;
    letter-spacing: 0.06em;
  }

  .security-gallery-item {
    width: 215px;
    height: 160px;
  }

  .capability-card {
    width: 220px;
    min-height: 200px;
  }
}