/* ============ Software Expert Systems — solid design system ============ */
:root {
  --bg: #050a34;
  --surface: #0a1547;
  --royal: #092676;
  --accent: #00a9f2;
  --accent-strong: #33bbf5;
  --ink: #ffffff;
  --ink-dim: #b3d4e0;
  --line: rgba(179, 212, 224, 0.16);
  --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 12px 32px rgba(2, 6, 23, 0.5);
  --shadow-accent: 0 8px 24px rgba(0, 169, 242, 0.35);
  --font: "Open Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  color: var(--accent);
  font-size: 34px; font-weight: 800;
  letter-spacing: 0.5em; text-indent: 0.5em;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
}
.nav-logo em { font-style: normal; color: #fff; }
.nav-logo img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 10px 22px; border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.nav-burger { display: none; }

/* ---------- Layout primitives ---------- */
main { position: relative; }
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 11vh, 140px) clamp(20px, 5vw, 64px);
}
.section-head { margin-bottom: clamp(40px, 6vh, 64px); }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-tag::before {
  content: ""; display: inline-block;
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--accent);
}
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
}
.grad { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px clamp(20px, 5vw, 64px) 70px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.025em;
}
.hero-title .line { display: block; overflow: hidden; }
.nowrap { white-space: nowrap; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub {
  max-width: 520px; margin-top: 26px;
  color: var(--ink-dim); font-size: clamp(15px, 1.8vw, 17px);
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%; height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}
.hero-media:hover img { transform: scale(1.02); }
.hero-media::before {
  content: "";
  position: absolute; inset: 0;
  transform: translate(16px, 16px);
  border-radius: 16px;
  background: var(--royal);
  z-index: -1;
}
.hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  padding: 15px 30px; border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn-ghost {
  color: var(--ink);
  border: 2px solid rgba(179, 212, 224, 0.35);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--surface);
}
.marquee-track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
  white-space: nowrap;
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about-lede { font-size: clamp(18px, 2.2vw, 23px); color: var(--ink); font-weight: 400; line-height: 1.55; }
.about-facts { border-top: 2px solid var(--line); }
.fact {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fact-k { color: var(--accent); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.fact-v { color: var(--ink-dim); text-align: right; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  padding: 34px 28px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 169, 242, 0.5);
  box-shadow: var(--shadow-md);
}
.card-glow { display: none; }
.card-icon {
  width: 54px; height: 54px; margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 15px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.stat {
  padding: 38px 30px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num, .stat-plus {
  font-size: clamp(42px, 5.5vw, 62px); font-weight: 800; line-height: 1;
  color: var(--accent);
}
.stat-label { display: block; margin-top: 12px; color: var(--ink-dim); font-size: 14px; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.office {
  position: relative;
  padding: 42px 34px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.office:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.office h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.office p { color: var(--ink-dim); font-size: 15px; }
.office-tag {
  display: inline-block; margin-top: 22px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  padding: 8px 16px;
  background: var(--royal);
  border-radius: 8px;
}

/* Office corner accents */
.office-deco {
  position: absolute; top: 28px; right: 28px;
  width: 110px; opacity: 0.9;
}
.ecg polyline {
  stroke: var(--accent); stroke-width: 2.4;
  stroke-linejoin: round; stroke-linecap: round;
  fill: none;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: ecgDraw 3.2s linear infinite;
}
@keyframes ecgDraw {
  0% { stroke-dashoffset: 260; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -260; }
}
.neural line { stroke: rgba(0, 169, 242, 0.5); stroke-width: 1.5; }
.neural circle {
  fill: var(--ink-dim);
  animation: nodePulse 2.4s ease-in-out infinite;
}
.neural circle:nth-of-type(2n) { animation-delay: 0.6s; fill: var(--accent); }
.neural circle:nth-of-type(3n) { animation-delay: 1.2s; }
@keyframes nodePulse { 50% { opacity: 0.35; } }

/* ---------- Life at SES photo carousel ---------- */
.photo-marquee {
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  padding: 24px 0;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.photo-marquee:active { cursor: grabbing; }
.photo-track {
  display: flex; gap: 26px;
  width: max-content;
  will-change: transform;
}
.photo-track img {
  user-select: none;
  -webkit-user-drag: none;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(3, 7, 32, 0.93);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  cursor: pointer;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s, transform 0.25s;
}
.lightbox-close:hover { background: var(--accent-strong); transform: scale(1.1); }
.lightbox-close svg { width: 20px; height: 20px; }
.photo-track figure {
  width: 340px; height: 255px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.photo-track figure:nth-child(odd) { transform: rotate(-1.2deg); }
.photo-track figure:nth-child(even) { transform: rotate(1.2deg); }
.photo-track figure:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.photo-track img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Careers ---------- */
.careers-inner {
  text-align: center;
  padding: clamp(56px, 9vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 20px;
  background: var(--royal);
  box-shadow: var(--shadow-md);
}
.careers-inner h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
}
.careers-inner p { max-width: 520px; margin: 22px auto 0; color: var(--ink-dim); }
.careers-inner .hero-actions { justify-content: center; }
.careers-inner .btn-ghost { border-color: rgba(255, 255, 255, 0.35); }
.careers-inner .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #030720;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 38px clamp(20px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-social { display: flex; gap: 26px; }
.footer-social a {
  color: var(--ink-dim); text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.25s;
}
.footer-social a:hover { color: var(--accent); }
.footer-copy { color: var(--ink-dim); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(26px, 8.4vw, 40px); }
  .btn-email {
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 15px 18px;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center;
    background: var(--bg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; z-index: 49; }
  .nav-links a { font-size: 20px; }
  .nav-burger {
    display: grid; gap: 6px; z-index: 51;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span {
    display: block; width: 26px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
