/**
 * TCN—ACI — Cinematic Light Layer
 * Loaded after style.css. Keeps the light palette and adds atmosphere:
 * photo backdrops (Ken Burns), aurora light, title sheen, blur-to-focus
 * reveals, cursor spotlights, light-trail timeline, scroll beam.
 * Remove this <link> to fall back to the plain light theme.
 * ═══════════════════════════════════════════════════════════════
 */

:root {
  --grad-accent: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  --glow-blue: 0 18px 50px -14px rgba(37, 99, 235, 0.45);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
}

::selection {
  background: rgba(2, 132, 199, 0.18);
  color: var(--navy-deep);
}

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

/* ═══════════════════════════════════════════════════════════════
   1. GLOBAL ATMOSPHERE — FILM GRAIN + SCROLL BEAM
   ═══════════════════════════════════════════════════════════════ */
.film-grain {
  position: fixed;
  inset: -50%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.2s steps(6) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  z-index: 1100;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, #06b6d4, #0284c7, #4f46e5);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
  pointer-events: none;
}

[dir="rtl"] .scroll-progress {
  transform-origin: right center;
}

/* Section labels → cinematic "chapter" marker */
.section-label {
  background: transparent;
  border: none;
  padding: 0;
  gap: 12px;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.lang-ar .section-label {
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-primary));
}

.section-label::after {
  background: linear-gradient(90deg, var(--blue-primary), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   2. NAVBAR — transparent over the hero, floating glass capsule on scroll,
      hides while scrolling down and returns on scroll up
   ═══════════════════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3000;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.site-navbar {
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 0;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    top 0.5s var(--ease-out),
    left 0.5s var(--ease-out),
    right 0.5s var(--ease-out),
    max-width 0.5s var(--ease-out),
    border-radius 0.5s var(--ease-out),
    background-color 0.4s,
    box-shadow 0.4s,
    border-color 0.4s,
    transform 0.45s var(--ease-out);
}

.site-navbar .navbar-inner {
  transition: height 0.4s var(--ease-out);
}

/* Floating capsule */
.site-navbar.is-scrolled {
  top: 12px;
  left: 16px;
  right: 16px;
  max-width: 1248px;
  height: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(15, 35, 70, 0.05),
    0 18px 40px -16px rgba(15, 35, 70, 0.22);
}

.site-navbar.is-scrolled .tcn-container {
  padding: 0 18px;
}

.site-navbar.is-scrolled .navbar-inner {
  height: 62px;
}

/* Hidden while reading (scrolling down) */
.site-navbar.is-hidden {
  transform: translateY(calc(-100% - 24px));
}

/* Brand */
.nav-brand {
  gap: 12px;
}

.nav-brand-text {
  gap: 1px;
}

.nav-brand-main {
  background: linear-gradient(90deg, var(--navy-deep), var(--blue-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.lang-en .nav-brand-sub {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6rem;
}

.site-navbar.is-scrolled .nav-logo-img {
  height: 30px;
}

/* Link group: glass pill with a sliding indicator */
.nav-links {
  position: relative;
  gap: 2px;
  padding: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(15, 35, 70, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.12);
  opacity: 0;
  transition:
    transform 0.45s var(--ease-out),
    width 0.45s var(--ease-out),
    opacity 0.3s;
  pointer-events: none;
}

.nav-indicator.is-on {
  opacity: 1;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--text-body);
  transition: color 0.3s;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy-deep);
}

.nav-link.is-active {
  color: var(--blue-hover);
}

/* Controls */
.nav-controls {
  gap: 10px;
}

.nav-hotline,
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-main);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
}

.nav-hotline i {
  font-size: 1.05rem;
  color: #16a34a;
}

.nav-hotline:hover {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.35);
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(22, 163, 74, 0.5);
}

.nav-lang-btn i {
  color: var(--blue-primary);
  transition: transform 0.6s var(--ease-out);
}

.nav-lang-btn:hover {
  color: var(--navy-deep);
  border-color: var(--blue-border);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(2, 132, 199, 0.45);
}

.nav-lang-btn:hover i {
  transform: rotate(180deg);
}

/* Animated burger → X */
.nav-mobile-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.95);
  align-items: center;
  justify-content: center;
}

.burger {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform 0.4s var(--ease-out), opacity 0.25s, top 0.4s var(--ease-out);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; }
.burger span:nth-child(3) { top: 10px; }

.nav-mobile-btn[aria-expanded="true"] .burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-mobile-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-mobile-btn[aria-expanded="true"] .burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-hotline-label {
    display: none;
  }

  .nav-hotline {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-navbar.is-scrolled {
    top: 8px;
    left: 10px;
    right: 10px;
    border-radius: 16px;
  }

  .site-navbar.is-scrolled .tcn-container {
    padding: 0 12px;
  }

  .site-navbar.is-scrolled .navbar-inner {
    height: 58px;
  }

  .nav-mobile-btn {
    display: inline-flex;
  }

  .nav-indicator {
    display: none;
  }

  /* Dropdown sheet */
  .nav-links,
  .nav-links.is-open {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 50px -16px rgba(15, 35, 70, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s 0.4s;
  }

  .site-navbar.is-scrolled .nav-links {
    left: 0;
    right: 0;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s;
  }

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

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--blue-soft);
  }

  .nav-lang-btn {
    padding: 0 12px;
  }

  .nav-brand-sub {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   3. HERO — SUNLIT PORT
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: #f4f8fd;
  isolation: isolate;
}

/* Photo backdrop with slow Ken Burns push-in */
.hero-backdrop {
  position: absolute;
  inset: -4%;
  background: url("../images/hero-container-ship.webp") center 60% / cover no-repeat;
  filter: saturate(0.85) contrast(1.02);
  opacity: 0.55;
  transform: scale(1.06);
  animation: kenBurns 32s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}

/* Light grade: washes the photo out under the copy, lets it breathe near the visual */
.hero-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f8fbff 0%, rgba(248, 251, 255, 0.92) 35%, rgba(240, 247, 255, 0.55) 65%, rgba(240, 247, 255, 0.35) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 30%, transparent 60%, var(--bg-body) 100%);
}

[dir="rtl"] .hero-grade {
  background:
    linear-gradient(270deg, #f8fbff 0%, rgba(248, 251, 255, 0.92) 35%, rgba(240, 247, 255, 0.55) 65%, rgba(240, 247, 255, 0.35) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 30%, transparent 60%, var(--bg-body) 100%);
}

/* Aurora light blooms */
.hero-atmosphere::before {
  top: -15%;
  right: auto;
  left: 45%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.08) 35%, transparent 65%);
  filter: blur(20px);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.06) 40%, transparent 65%);
  filter: blur(30px);
  animation: auroraDrift 22s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 6%, 0) scale(1.15); }
}

/* Perspective floor grid flowing toward the viewer */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 1;
  mask-image: radial-gradient(ellipse 60% 55% at 65% 55%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 65% 55%, black, transparent);
  transform: perspective(900px) rotateX(55deg) translateY(28%) scale(1.6);
  transform-origin: center bottom;
  animation: gridFlow 14s linear infinite;
}

[dir="rtl"] .hero-grid-bg {
  mask-image: radial-gradient(ellipse 60% 55% at 35% 55%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 35% 55%, black, transparent);
}

@keyframes gridFlow {
  to { background-position: 0 72px, 0 0; }
}

.particle {
  box-shadow: 0 0 6px 1px currentColor;
}

@keyframes particleFloatLight {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  20% { opacity: 0.7; }
  80% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-160px) scale(0.3); }
}

/* Letterbox bars that open on load */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12vh;
  background: var(--navy-deep);
  z-index: 50;
  pointer-events: none;
  animation: letterboxOpen 1.5s 0.1s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.hero::before { top: 0; transform-origin: top; }
.hero::after { bottom: 0; transform-origin: bottom; }

@keyframes letterboxOpen {
  to { transform: scaleY(0); }
}

/* Hero copy */
.hero-content {
  max-width: 640px;
}

/* h1 wraps the brand mark + headline so the main heading carries real keywords */
.hero-title {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
}

.hero-title > .hero-brand,
.hero-title > .hero-headline {
  display: block;
}

.hero-institutional {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  animation: blurRise 1s 0.35s var(--ease-out) forwards;
}

.hero-institutional::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-main);
  animation: livePing 2s infinite;
}

@keyframes livePing {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-brand {
  background: linear-gradient(100deg, #06152d 0%, #0a2540 35%, #38bdf8 45%, #0a2540 55%, #0369a1 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    cineReveal 1.4s 0.5s var(--ease-out) forwards,
    brandSheen 7s 2.2s ease-in-out infinite;
}

@keyframes brandSheen {
  0%, 60% { background-position: 100% 0; }
  100% { background-position: -60% 0; }
}

@keyframes cineReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(14px); letter-spacing: 0.08em; }
  to { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.03em; }
}

.hero-headline { animation: blurRise 1.1s 0.85s var(--ease-out) forwards; }
.hero-sub { animation: blurRise 1.1s 1s var(--ease-out) forwards; }
.hero-actions { animation: blurRise 1.1s 1.15s var(--ease-out) forwards; }
.hero-visual { animation: blurRise 1.6s 0.7s var(--ease-out) forwards; }

@keyframes blurRise {
  from { opacity: 0; transform: translateY(22px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Buttons — light-sweep primary, glass outline */
.btn-hero-primary,
.btn-cta-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-hero-primary::after,
.btn-cta-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: btnSweep 4.5s 2.5s ease-in-out infinite;
}

@keyframes btnSweep {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}

.btn-hero-primary:hover,
.btn-cta-primary:hover {
  background: var(--grad-accent);
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -12px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-hero-outline,
.btn-cta-outline {
  background: var(--glass);
  border-color: rgba(203, 213, 225, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-hero-outline:hover,
.btn-cta-outline:hover {
  background: #fff;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1), var(--shadow-md);
}

.scroll-line {
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--blue-primary), transparent);
  background-size: 100% 200%;
  animation: scrollDrip 2.2s ease-in-out infinite;
}

@keyframes scrollDrip {
  0% { background-position: 0 -100%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { background-position: 0 100%; opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════
   4. HERO VISUAL — CONTAINER STAGE
   ═══════════════════════════════════════════════════════════════ */
/* Soft stage light beneath the container */
.hero-visual::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 62%;
  width: 520px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.28) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  filter: blur(14px);
  z-index: 1;
  pointer-events: none;
  animation: stagePulse 6s ease-in-out infinite;
}

@keyframes stagePulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* Customs scanning beam sweeping the container */
.hero-visual::after {
  content: '';
  position: absolute;
  top: 18%;
  bottom: 22%;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.95), transparent);
  box-shadow: 0 0 18px 4px rgba(14, 165, 233, 0.35);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: scanSweep 7s 2.5s ease-in-out infinite;
}

@keyframes scanSweep {
  0% { transform: translateX(-210px); opacity: 0; }
  8% { opacity: 0.9; }
  42% { opacity: 0.9; }
  50% { transform: translateX(210px); opacity: 0; }
  100% { transform: translateX(210px); opacity: 0; }
}

/* Certificates — frosted glass with gradient hairline + holographic sheen */
.cert-glow {
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(2, 132, 199, 0.75), rgba(2, 132, 199, 0) 45%, rgba(99, 102, 241, 0.45));
  opacity: 1;
  filter: none;
}

.cert-glow-aci {
  background: linear-gradient(140deg, rgba(5, 150, 105, 0.75), rgba(5, 150, 105, 0) 45%, rgba(6, 182, 212, 0.45));
}

.cert-inner {
  position: relative;
  overflow: hidden;
  margin: 1px;
  border: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 60px -18px rgba(15, 35, 70, 0.28),
    0 6px 18px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 #fff;
}

.cert-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.9) 45%, rgba(186, 230, 253, 0.5) 50%, transparent 62%);
  background-size: 250% 100%;
  mix-blend-mode: soft-light;
  animation: holoSheen 6s ease-in-out infinite;
  pointer-events: none;
}

.cert-aci .cert-inner::after {
  animation-delay: 3s;
}

@keyframes holoSheen {
  0%, 55% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

.cert-dot-aci {
  animation-name: dotPulseAci;
}

@keyframes dotPulseAci {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.conn-line {
  stroke-width: 1.4;
  opacity: 0.7;
}

.data-indicator {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.di-3 i {
  color: #ef4444;
  animation: blink 1.4s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

/* ═══════════════════════════════════════════════════════════════
   5. SYSTEMS — TWIN PANELS WITH CURSOR SPOTLIGHT
   ═══════════════════════════════════════════════════════════════ */
.systems-section {
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(14, 165, 233, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(16, 185, 129, 0.07), transparent 70%),
    var(--bg-body);
  border-top: none;
  overflow: hidden;
}

/* Hairline horizon at the top of sections */
.systems-section::before,
.workflow-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.35), transparent);
}

.systems-title,
.workflow-title,
.cta-headline {
  text-wrap: balance;
}

.systems-duo {
  box-shadow: 0 40px 80px -30px rgba(10, 37, 64, 0.22);
}

.system-panel {
  --mx: 50%;
  --my: 0%;
  --spot: rgba(14, 165, 233, 0.1);
  background:
    radial-gradient(520px circle at var(--mx) var(--my), var(--spot), transparent 45%),
    linear-gradient(170deg, #ffffff, #f7fbff);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.system-aci {
  --spot: rgba(16, 185, 129, 0.1);
}

.system-panel:hover {
  background:
    radial-gradient(520px circle at var(--mx) var(--my), var(--spot), transparent 45%),
    linear-gradient(170deg, #ffffff, #f4f9ff);
}

/* Giant outlined acronym watermark */
.system-panel::before {
  content: attr(data-mark);
  position: absolute;
  bottom: -0.22em;
  inset-inline-end: -0.04em;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(2, 132, 199, 0.13);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out);
}

.system-aci::before {
  -webkit-text-stroke-color: rgba(5, 150, 105, 0.13);
}

.system-panel:hover::before {
  transform: translateY(-8px);
}

.system-glow-line {
  height: 2px;
}

.system-number {
  background: linear-gradient(180deg, #0ea5e9, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.system-number-aci {
  background: linear-gradient(180deg, #10b981, #047857);
  -webkit-background-clip: text;
  background-clip: text;
}

.system-icon-wrap {
  position: relative;
  box-shadow: 0 14px 30px -10px rgba(2, 132, 199, 0.45), inset 0 1px 0 #fff;
  transition: transform 0.6s var(--ease-out);
}

.system-icon-aci {
  box-shadow: 0 14px 30px -10px rgba(5, 150, 105, 0.45), inset 0 1px 0 #fff;
}

/* Orbit ring around icons */
.system-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  border: 1px dashed currentColor;
  opacity: 0.35;
  animation: orbitSpin 18s linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.system-panel:hover .system-icon-wrap {
  transform: translateY(-4px) rotate(-4deg);
}

.connector-line {
  background: linear-gradient(to bottom, transparent, var(--blue-primary), transparent);
}

.connector-badge {
  box-shadow: 0 0 0 6px var(--bg-body), 0 12px 30px -8px rgba(2, 132, 199, 0.45);
}

.connector-badge i {
  animation: linkPulse 2.4s ease-in-out infinite;
}

@keyframes linkPulse {
  50% { transform: rotate(-20deg) scale(1.15); color: var(--emerald-main); }
}

/* ═══════════════════════════════════════════════════════════════
   6. WORKFLOW — LIGHT-TRAIL TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.workflow-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(37, 99, 235, 0.06), transparent 70%),
    #ffffff;
  border-top: none;
}

.wf-step-num {
  font-size: 4rem;
  color: transparent;
  -webkit-text-stroke: 1px #b6c4d6;
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}

.wf-step:hover .wf-step-num,
.workflow-timeline.is-visible .wf-step:last-child .wf-step-num {
  color: var(--blue-primary);
  -webkit-text-stroke-color: transparent;
}

.workflow-timeline.is-visible .wf-step:last-child .wf-step-num {
  color: var(--emerald-main);
  transition-delay: 2.6s;
}

.wf-step-dot {
  box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.1), 0 0 14px rgba(2, 132, 199, 0.35);
}

.wf-step-dot-final {
  box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.1), 0 0 16px rgba(5, 150, 105, 0.4);
}

/* Dim track + light trail drawn when the timeline enters view */
.wf-step-bar,
[dir="rtl"] .wf-step-bar {
  height: 2px;
  background: var(--border-light);
  overflow: hidden;
}

.wf-step-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0ea5e9, #4f46e5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-out);
}

[dir="rtl"] .wf-step-bar::after {
  transform-origin: right center;
  background: linear-gradient(270deg, #0ea5e9, #4f46e5);
}

.workflow-timeline.is-visible .wf-step-bar::after { transform: scaleX(1); }
.workflow-timeline.is-visible .wf-step:nth-child(1) .wf-step-bar::after { transition-delay: 0.3s; }
.workflow-timeline.is-visible .wf-step:nth-child(2) .wf-step-bar::after { transition-delay: 1.1s; }
.workflow-timeline.is-visible .wf-step:nth-child(3) .wf-step-bar::after { transition-delay: 1.9s; }

/* Steps light up in sequence */
.wf-step {
  opacity: 0.25;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.workflow-timeline.is-visible .wf-step { opacity: 1; transform: none; }
.workflow-timeline.is-visible .wf-step:nth-child(2) { transition-delay: 0.8s; }
.workflow-timeline.is-visible .wf-step:nth-child(3) { transition-delay: 1.6s; }
.workflow-timeline.is-visible .wf-step:nth-child(4) { transition-delay: 2.4s; }

/* ═══════════════════════════════════════════════════════════════
   7. CTA — PORT PANORAMA
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: 170px 0;
  background: var(--bg-body);
  border-top: none;
  isolation: isolate;
}

.cta-backdrop {
  position: absolute;
  inset: -10% 0;
  background: url("../images/cta-vessel.webp") center / cover no-repeat;
  filter: saturate(0.9);
  opacity: 0.5;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.08);
  will-change: transform;
  z-index: -2;
}

.cta-atmosphere {
  z-index: -1;
}

/* Fade the photo into the page above/below and wash the centre for legibility */
.cta-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.35) 30%, rgba(248, 250, 252, 0.35) 70%, #ffffff 100%),
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.2) 100%);
}

.cta-gradient {
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.06) 40%, transparent 70%);
  filter: blur(10px);
}

.cta-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  background: linear-gradient(180deg, var(--navy-deep), #0369a1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
}

.social-link:hover {
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55);
}

/* ═══════════════════════════════════════════════════════════════
   9. SCROLL REVEAL — blur-to-focus
   ═══════════════════════════════════════════════════════════════ */
[data-scroll-reveal] {
  transform: translateY(40px);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
}

[data-scroll-reveal].is-visible {
  filter: none;
}

/* Without JS, never hide content */
.no-js [data-scroll-reveal],
.no-js .wf-step {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ═══════════════════════════════════════════════════════════════
   10. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-grade,
  [dir="rtl"] .hero-grade {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.9) 0%, rgba(248, 251, 255, 0.75) 50%, var(--bg-body) 100%);
  }
}

@media (max-width: 768px) {
  .site-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .hero::before,
  .hero::after {
    height: 8vh;
  }

  .hero-visual::before {
    width: 320px;
    height: 110px;
  }

  .hero-visual::after {
    display: none;
  }

  .system-panel::before {
    font-size: 7rem;
  }

  .wf-step-num {
    font-size: 2.4rem;
  }

  .wf-step-bar::after,
  [dir="rtl"] .wf-step-bar::after {
    transform: scaleY(0);
    transform-origin: top center;
    background: linear-gradient(180deg, #0ea5e9, #4f46e5);
  }

  .workflow-timeline.is-visible .wf-step-bar::after {
    transform: scaleY(1);
  }

  .cta-section {
    padding: 110px 0;
  }
}

@media (max-width: 480px) {
  .nav-brand-text,
  .nav-brand-sep {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   11. REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .film-grain,
  .hero::before,
  .hero::after,
  .hero-visual::after {
    display: none;
  }

  .hero-backdrop,
  .hero-grid-bg,
  .hero-atmosphere::before,
  .hero-atmosphere::after {
    animation: none !important;
  }

  .hero-brand,
  .hero-headline,
  .hero-sub,
  .hero-institutional,
  .hero-actions,
  .hero-visual,
  [data-scroll-reveal],
  .wf-step {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .wf-step-bar::after {
    transform: none !important;
  }
}
