/* ============================================================
   LEAD DYNAMICS — Light Apple-inspired theme
   Adapted from the LEAD Dynamics Design System (dark/glass)
   into a premium light product-launch aesthetic.
   ============================================================ */

/* ---------- Webfonts ---------- */
@font-face {
  font-family: "Neuropolitical";
  src: url("../fonts/neuropolitical-rg.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Brand */
  --violet:        #9552FD;
  --violet-bright: #B98CFF;
  --violet-deep:   #6D32C9;
  --blue:          #65A0FB;
  --blue-deep:     #2E40B8;
  --magenta:       #C77BFF;
  --indigo:        #1B1F5C;

  /* Light surfaces */
  --bg:      #FFFFFF;
  --bg-soft: #F7F8FC;   /* off-white */
  --bg-silver:#EEF1F7;  /* light silver */
  --bg-tint: #F2F0FC;   /* faint violet wash */

  /* Ink / text */
  --ink:     #11132E;   /* deep indigo-black headings */
  --text-1:  #20223C;
  --text-2:  #565a72;
  --text-3:  #8a8da4;
  --text-on-dark: #F4F3FB;

  /* Lines & glass */
  --line:        rgba(17,19,46,0.08);
  --line-strong: rgba(17,19,46,0.14);
  --glass-fill:  rgba(255,255,255,0.55);
  --glass-fill-2:rgba(255,255,255,0.72);
  --glass-stroke:rgba(255,255,255,0.85);

  /* Gradients */
  --grad-iris:   linear-gradient(110deg, #65A0FB 0%, #9552FD 52%, #C77BFF 100%);
  --grad-iris-v: linear-gradient(180deg, #65A0FB 0%, #9552FD 55%, #C77BFF 100%);
  --grad-stage:  linear-gradient(155deg, #232a6b 0%, #14163f 45%, #0a0a16 100%);
  --grad-halo:   radial-gradient(60% 70% at 50% 0%, rgba(149,82,253,0.22), rgba(101,160,251,0.10) 45%, transparent 72%);
  --grad-soft:   linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);

  /* Radii */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-2xl: 40px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 10px rgba(20,22,60,0.06);
  --sh-md: 0 12px 40px rgba(27,31,92,0.08);
  --sh-lg: 0 30px 80px rgba(27,31,92,0.12);
  --sh-stage: 0 40px 120px rgba(27,31,92,0.28);
  --glow-violet: 0 10px 30px rgba(149,82,253,0.35);
  --inset-sheen: inset 0 1px 0 rgba(255,255,255,0.9);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms; --dur: 260ms; --dur-slow: 520ms;

  /* Layout */
  --container: 1180px;
  --container-wide: 1340px;
  --gutter: 24px;
  --nav-h: 56px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: rgba(149,82,253,0.18); }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.display { font-family: "Neuropolitical", "Poppins", sans-serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
.gradient-text {
  background: var(--grad-iris);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--violet-deep);
}
.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); line-height: 1.6; font-weight: 300; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding: clamp(48px, 6.5vw, 92px) 0; position: relative; }
.section--tight { padding: clamp(34px, 4.5vw, 60px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(26px,3.5vw,44px); text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-title { font-family: "Neuropolitical", "Poppins", sans-serif; font-weight: 400; font-size: clamp(31px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.06; }
.section-sub { margin-top: 20px; font-size: clamp(16px,2vw,20px); color: var(--text-2); font-weight: 300; }
.bg-soft { background: var(--bg-soft); }
.bg-silver { background: var(--bg-silver); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #fff; background: var(--grad-iris); background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: var(--glow-violet);
}
.btn-primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 14px 38px rgba(149,82,253,0.45); }
.btn-ghost { color: var(--ink); background: var(--bg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-text { color: var(--violet-deep); background: transparent; padding: 8px 0; }
.btn-text .arrow { transition: transform var(--dur) var(--ease-out); }
.btn-text:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-on-dark.btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); color:#fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.62);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.nav.scrolled { background: rgba(255,255,255,0.82); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(17,19,46,0.04); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--container-wide); }
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 13.5px; color: var(--text-2); transition: color var(--dur); position: relative; padding: 4px 0; }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; border-radius:2px; background: var(--grad-iris); transform: scaleX(0); transform-origin:center; transition: transform var(--dur) var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--violet-deep); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 9px 18px; font-size: 13.5px; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur), transform var(--dur);
    padding: 14px var(--gutter) 26px;
  }
  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 4px; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 60px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--grad-halo);
}
.hero-wordmark img { height: clamp(26px, 4vw, 40px); width: auto; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(46px, 9vw, 108px); letter-spacing: -0.03em; line-height: 0.98; }
.hero h1 .line2 { display: block; }
.hero-sub { max-width: 640px; margin: 26px auto 0; font-size: clamp(16px,2.1vw,20px); color: var(--text-2); font-weight: 300; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* Hero glass stage */
.hero-stage {
  position: relative; margin: clamp(40px,6vw,68px) auto 0; max-width: 1060px;
  aspect-ratio: 16 / 9; border-radius: var(--r-2xl);
  background: var(--grad-stage); overflow: hidden;
  box-shadow: var(--sh-stage); border: 1px solid rgba(255,255,255,0.1);
}
.hero-stage img.glass { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.96; }
.hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(149,82,253,0.18), transparent 60%);
  mix-blend-mode: screen;
}
.hero-stage .stage-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(20px,4vw,40px); text-align: center; z-index: 2;
  color: #fff; font-family: "Neuropolitical","Poppins",sans-serif; letter-spacing: 0.04em;
  font-size: clamp(13px,1.8vw,18px); text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.scroll-cue { margin: 38px auto 0; width: 24px; height: 38px; border: 2px solid var(--line-strong); border-radius: 14px; position: relative; }
.scroll-cue::after { content:""; position:absolute; left:50%; top:7px; width:4px; height:7px; border-radius:3px; background: var(--violet); transform: translateX(-50%); animation: cue 1.8s var(--ease-inout) infinite; }
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ============================================================
   GLASS CARD (light frosted)
   ============================================================ */
.glass {
  background: var(--glass-fill-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--sh-md), var(--inset-sheen);
  border-radius: var(--r-lg);
}

/* ============================================================
   HIGHLIGHTS (horizontal scroll-snap cards)
   ============================================================ */
.highlights-rail {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 30px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.highlights-rail::-webkit-scrollbar { display: none; }
.highlight-card {
  scroll-snap-align: center; flex: 0 0 min(86vw, 420px);
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; color: #fff; background: var(--grad-stage);
  box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--dur) var(--ease-out);
}
.highlight-card:hover { transform: translateY(-6px); }
.highlight-card .hc-img { position: absolute; inset: 0; z-index: 0; }
.highlight-card .hc-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.highlight-card::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(10,10,22,0.1) 0%, rgba(10,10,22,0.85) 100%); }
.highlight-card .hc-body { position: relative; z-index: 2; }
.highlight-card .hc-num { font-family:"Neuropolitical"; font-size: 13px; letter-spacing:0.2em; opacity:0.7; }
.highlight-card h3 { color: #fff; font-size: 27px; margin: 12px 0 12px; letter-spacing: -0.01em; }
.highlight-card p { color: rgba(244,243,251,0.82); font-size: 15px; line-height: 1.55; }
.highlight-card .play { position:absolute; top:28px; right:28px; z-index:2; width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,0.14); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,0.25); display:grid; place-items:center; }
.highlight-card .play svg { width:18px; height:18px; fill:#fff; }
.rail-hint { text-align:center; color: var(--text-3); font-size: 13px; margin-top: 6px; }

/* ============================================================
   STATS / DESIGNED FOR SCALE
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  padding: 34px 26px; border-radius: var(--r-lg); text-align: center;
  background: var(--glass-fill-2); border: 1px solid var(--line); box-shadow: var(--sh-sm), var(--inset-sheen);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stat .num { font-family:"Neuropolitical"; font-size: clamp(34px,4vw,52px); line-height: 1; letter-spacing: -0.02em; }
.stat .num .gt { background: var(--grad-iris); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat .label { margin-top: 14px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.stat.span2 { grid-column: span 2; }
@media (max-width: 900px){ .stats-grid { grid-template-columns: repeat(2,1fr);} .stat.span2{grid-column:span 1;} }
@media (max-width: 520px){ .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px;} .stat{padding:24px 16px;} }

/* ============================================================
   CAPABILITIES SELECTOR
   ============================================================ */
.cap-selector { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom: 44px; }
.cap-chip {
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-2);
  padding: 9px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  display:inline-flex; align-items:center; gap:8px;
  transition: all var(--dur) var(--ease-out);
}
.cap-chip .cidx { font-family:"Neuropolitical"; font-size: 11px; opacity: 0.65; }
.cap-chip:hover { border-color: var(--violet); color: var(--ink); }
.cap-chip.active { background: var(--grad-iris); color:#fff; border-color: transparent; box-shadow: var(--glow-violet); }
.cap-chip.active .cidx { opacity: 0.85; }

.cap-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.cap-visual {
  border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 4/3; position: relative;
  background: var(--grad-stage); box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,0.08);
}
.cap-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.cap-visual .play { position:absolute; inset:0; margin:auto; width:66px; height:66px; border-radius:50%; background:rgba(255,255,255,0.16); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,0.3); display:grid; place-items:center; }
.cap-visual .play svg { width:24px; height:24px; fill:#fff; margin-left:3px; }
.cap-visual .bignum { position:absolute; top:24px; left:28px; font-family:"Neuropolitical"; font-size: clamp(40px,6vw,72px); color: rgba(255,255,255,0.92); line-height:1; }
.cap-info .eyebrow { display:block; margin-bottom: 14px; }
.cap-info h3 { font-size: clamp(28px,3.6vw,42px); letter-spacing: -0.02em; }
.cap-info p { margin-top: 18px; color: var(--text-2); font-size: 17px; }
.cap-features { list-style:none; margin: 22px 0 26px; padding:0; display:grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.cap-features li { font-size: 14.5px; color: var(--text-1); display:flex; gap:9px; align-items:flex-start; }
.cap-features li .dot { flex:0 0 auto; width:7px; height:7px; margin-top:7px; border-radius:50%; background: var(--violet); }
@media (max-width: 820px){ .cap-panel{ grid-template-columns:1fr; } .cap-features{grid-template-columns:1fr;} }

/* ============================================================
   PROJECT TILES + FILTER
   ============================================================ */
.filter-tabs { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom: 40px; }
.filter-tab {
  border:1px solid var(--line-strong); background:var(--bg); color:var(--text-2);
  padding: 8px 16px; border-radius: var(--r-pill); font-size:13px; font-weight:600;
  transition: all var(--dur) var(--ease-out);
}
.filter-tab:hover { border-color: var(--violet); color: var(--ink); }
.filter-tab.active { background: var(--ink); color:#fff; border-color: var(--ink); }
.tiles { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 880px){ .tiles{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .tiles{ grid-template-columns: 1fr;} }
.tile {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  color:#fff; background: var(--grad-stage); box-shadow: var(--sh-md);
  border:1px solid rgba(255,255,255,0.08); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.tile .t-img { position:absolute; inset:0; z-index:0; }
.tile .t-img img { width:100%; height:100%; object-fit:cover; opacity:0.5; transition: transform 1.2s var(--ease-out), opacity var(--dur); }
.tile:hover .t-img img { transform: scale(1.06); opacity:0.6; }
.tile::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(10,10,22,0.05), rgba(10,10,22,0.88)); }
.tile .t-body { position:relative; z-index:2; }
.tile .t-year { font-family:"Neuropolitical"; font-size:12px; letter-spacing:0.16em; color: var(--blue); }
.tile .t-sector { font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color: rgba(255,255,255,0.6); margin-bottom:6px; }
.tile h3 { color:#fff; font-size:19px; line-height:1.2; }
.tile .play { position:absolute; top:20px; right:20px; z-index:2; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.14); border:1px solid rgba(255,255,255,0.25); display:grid; place-items:center; }
.tile .play svg{ width:15px;height:15px;fill:#fff; }
.tile.hide { display:none; }

/* ============================================================
   PRECISION / SAFETY (engineering grid)
   ============================================================ */
.eng { position: relative; border-radius: var(--r-2xl); background: var(--bg-soft); border:1px solid var(--line); overflow:hidden; }
.eng-grid-lines { position:absolute; inset:0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity:0.5; -webkit-mask: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 80%); mask: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 80%); }
.safety-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; position:relative; z-index:1; }
@media (max-width: 820px){ .safety-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .safety-grid{ grid-template-columns: 1fr;} }
.safety-item { display:flex; gap:14px; align-items:flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--glass-fill-2); border:1px solid var(--line); box-shadow: var(--sh-sm); }
.safety-item .ic { flex:0 0 auto; width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background: var(--bg-tint); color: var(--violet-deep); }
.safety-item .ic svg{ width:20px; height:20px; stroke: currentColor; fill:none; stroke-width:1.9; }
.safety-item h4 { font-size:15px; color: var(--ink); }
.safety-item p { font-size:13px; color: var(--text-3); margin-top:2px; }
.badge-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top: 34px; }
.cert-badge { display:inline-flex; align-items:center; gap:10px; padding:11px 20px; border-radius:var(--r-pill); background: var(--bg); border:1px solid var(--line-strong); font-weight:600; font-size:13.5px; color: var(--ink); box-shadow: var(--sh-sm); }
.cert-badge .dot { width:8px; height:8px; border-radius:50%; background: var(--grad-iris); }

/* Certification seals (ISO / HACCP) */
.cert-seals { display:flex; flex-wrap:wrap; gap:22px; justify-content:center; margin-top:38px; }
.cert-seal { width:130px; height:130px; border-radius:50%; background: var(--grad-iris); padding:3px;
  box-shadow: var(--glow-soft), var(--sh-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.cert-seal:hover { transform: translateY(-5px); box-shadow: var(--glow-violet), var(--sh-md); }
.cert-seal .inner { width:100%; height:100%; border-radius:50%; background:#fff; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; box-shadow: var(--inset-sheen); }
.cert-seal .cs-top { font-size:11px; font-weight:600; letter-spacing:0.2em; color:var(--violet-deep); }
.cert-seal .cs-num { font-family:"Neuropolitical","Poppins",sans-serif; font-size:22px; line-height:1; color:var(--ink); margin-top:2px; }
.cert-seal .cs-num.num5 { font-size:17px; letter-spacing:-0.01em; }
.cert-seal .cs-year { font-size:12px; font-weight:600; color:var(--text-2); margin-top:3px; }
.cert-seal .cs-lbl { font-size:8.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-3); margin-top:5px; max-width:100px; }
@media (max-width:480px){ .cert-seals{ gap:14px;} .cert-seal{ width:108px; height:108px;} .cert-seal .cs-num{font-size:19px;} .cert-seal .cs-num.num5{font-size:15px;} }

/* ============================================================
   JOURNEY (vertical narrative)
   ============================================================ */
.journey { position: relative; max-width: 880px; margin-inline:auto; }
.journey::before { content:""; position:absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--violet) 50%, var(--magenta)); opacity:0.5; }
@media (max-width: 640px){ .journey::before{ left: 19px; } }
.j-step { position: relative; display:flex; gap: 26px; padding: 18px 0; align-items:flex-start; }
.j-step .j-dot { flex:0 0 auto; width: 56px; height:56px; border-radius:50%; display:grid; place-items:center; background: var(--bg); border:1px solid var(--line-strong); box-shadow: var(--sh-sm); font-family:"Neuropolitical"; font-size:16px; color: var(--violet-deep); z-index:1; }
@media (max-width: 640px){ .j-step .j-dot{ width:40px; height:40px; font-size:13px;} .j-step{gap:16px;} }
.j-step.in .j-dot { background: var(--grad-iris); color:#fff; border-color: transparent; box-shadow: var(--glow-violet); }
.j-card { flex:1; padding: 20px 24px; border-radius: var(--r-lg); background: var(--glass-fill-2); border:1px solid var(--line); box-shadow: var(--sh-sm); }
.j-card h4 { font-size: 19px; }
.j-card p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; border-radius: var(--r-2xl); overflow:hidden; background: var(--grad-stage); color:#fff; text-align:center; padding: clamp(56px,9vw,110px) var(--gutter); box-shadow: var(--sh-stage); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 90% at 50% -10%, rgba(149,82,253,0.4), transparent 60%); }
.cta-band > * { position: relative; z-index:1; }
.cta-band h2 { color:#fff; font-size: clamp(30px,5vw,56px); letter-spacing:-0.02em; max-width: 800px; margin-inline:auto; }
.cta-band .lede { color: rgba(244,243,251,0.85); max-width: 620px; margin: 22px auto 0; }
.cta-band .hero-cta { margin-top: 36px; }

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; gap: 32px;} }
.footer h5 { font-size: 12px; letter-spacing:0.16em; text-transform:uppercase; color: var(--text-3); margin: 0 0 16px; font-weight:600; }
.footer a { color: var(--text-2); font-size: 14.5px; display:block; padding: 5px 0; transition: color var(--dur); }
.footer a:hover { color: var(--violet-deep); }
.footer-brand img { height: 20px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: 14px; max-width: 320px; }
.office { margin-bottom: 14px; }
.office strong { color: var(--ink); font-weight:600; font-size:14px; display:block; }
.office span { color: var(--text-3); font-size: 13px; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top: 26px; border-top:1px solid var(--line); color: var(--text-3); font-size: 13px; flex-wrap:wrap; }

/* ============================================================
   FORM
   ============================================================ */
.form-card { max-width: 760px; margin-inline:auto; padding: clamp(28px,4vw,48px); }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px){ .form-grid{ grid-template-columns:1fr;} }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 13px 15px; transition: border-color var(--dur), box-shadow var(--dur);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(149,82,253,0.18); }
.form-note { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-head { padding: calc(var(--nav-h) + 70px) 0 20px; text-align:center; position:relative; }
.page-head::before { content:""; position:absolute; inset:0; z-index:-1; background: var(--grad-halo); }
.page-head h1 { font-size: clamp(40px,7vw,80px); letter-spacing:-0.03em; }
.page-head .lede { max-width: 620px; margin: 22px auto 0; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
}

/* ============================================================
   CLIENTS / TRUSTED-BY WALL (logo grid)
   Drop logo files into assets/clients/ as <slug>.svg or <slug>.png
   ============================================================ */
.client-wall { display:grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 14px; }
@media (max-width: 560px){ .client-wall{ grid-template-columns: repeat(auto-fill, minmax(118px,1fr)); gap:10px;} }
.client {
  position: relative; display:flex; align-items:center; justify-content:center; text-align:center;
  height: 96px; padding: 16px 18px; border-radius: var(--r-md); overflow: hidden;
  background: var(--glass-fill-2); border:1px solid var(--line); box-shadow: var(--sh-sm), var(--inset-sheen);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur);
}
.client:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: var(--sh-md); }
/* Logo fills the box (keeps aspect ratio, sized to fit) */
.client img { width:100%; height:100%; object-fit: contain; display:block; }
/* Text fallback — shown only when a logo image is missing */
.client .cname { font-weight:600; font-size:14px; letter-spacing:-0.01em; color: var(--text-2); }
.client img + .cname { display:none; }
.client.no-logo img { display:none; }
.client.no-logo .cname { display:block; }

/* ============================================================
   VIDEO LIGHTBOX
   ============================================================ */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.video-modal.open { display: flex; }
.video-modal .vm-backdrop { position: absolute; inset: 0; background: rgba(8,8,20,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: vmFade var(--dur) var(--ease-out); }
.video-modal .vm-box { position: relative; width: min(1040px, 94vw); animation: vmRise var(--dur-slow) var(--ease-out); }
.video-modal .vm-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-xl); overflow: hidden; background: #000; box-shadow: var(--sh-stage), var(--glow-soft); border: 1px solid rgba(255,255,255,0.12); }
.video-modal .vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal .vm-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background var(--dur), transform var(--dur); }
.video-modal .vm-close:hover { background: rgba(255,255,255,0.24); transform: scale(1.05); }
@media (max-width: 560px){ .video-modal .vm-close { top: -44px; } }
@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmRise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.team-card .tc-photo { aspect-ratio: 570/624; background: var(--bg-silver); overflow: hidden; }
.team-card .tc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.9s var(--ease-out); }
.team-card:hover .tc-photo img { transform: scale(1.04); }
.team-card .tc-body { padding: 18px 20px 20px; }
.team-card h3 { font-size: 17px; line-height: 1.25; color: var(--ink); }
.team-card .tc-role { margin-top: 6px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-deep); }
@media (max-width: 1000px){ .team-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px){ .team-grid { grid-template-columns: repeat(2,1fr); gap: 14px; } .team-card .tc-body{padding:14px 16px 16px;} }

/* clickable play affordance */
[data-yt] { cursor: pointer; }
.cap-visual .play, .highlight-card .play, .tile .play { cursor: pointer; transition: transform var(--dur) var(--ease-out), background var(--dur); }
[data-yt].play:hover, .cap-visual .play[data-yt]:hover { transform: scale(1.08); background: rgba(255,255,255,0.28); }
.tile[data-yt]:hover .play { transform: scale(1.08); background: rgba(255,255,255,0.28); }

/* ============================================================
   ABOUT / FEATURE CARDS
   ============================================================ */
.split2 { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items:center; }
@media (max-width: 820px){ .split2{ grid-template-columns:1fr; } }
.about-visual { border-radius: var(--r-2xl); overflow:hidden; aspect-ratio: 16/9; background: var(--grad-stage); box-shadow: var(--sh-lg); border:1px solid rgba(255,255,255,0.08); }
.about-visual img { width:100%; height:100%; object-fit:cover; }
.about-heading { font-family:"Neuropolitical","Poppins",sans-serif; font-weight:400; font-size:clamp(27px,3.4vw,42px); letter-spacing:-0.02em; line-height:1.08; }

.feature-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
@media (max-width: 820px){ .feature-grid{ grid-template-columns:1fr; } }
.feature-card { padding:30px 28px; border-radius:var(--r-lg); background:var(--glass-fill-2); border:1px solid var(--line); box-shadow:var(--sh-sm),var(--inset-sheen); transition:transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.feature-card:hover { transform:translateY(-5px); box-shadow:var(--sh-md); }
.feature-card .fic { width:48px; height:48px; border-radius:13px; display:grid; place-items:center; background:var(--bg-tint); color:var(--violet-deep); margin-bottom:18px; }
.feature-card .fic svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.8; }
.feature-card h3 { font-size:19px; }
.feature-card p { color:var(--text-2); font-size:14.5px; margin-top:10px; }

.mobile-menu a.active { color: var(--violet-deep); }

/* ============================================================
   BRAND MOTION VIDEOS (fill placeholders)
   ============================================================ */
.about-visual, .std-visual, .cap-visual { position:relative; }
.hero-stage video, .about-visual video, .std-visual video, .cap-visual video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:0; }
.cta-band .cta-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.4; z-index:0; }

/* Ambient blurred motion — full-section background glow, low opacity */
.has-amb { position:relative; overflow:hidden; }
.has-amb > .container { position:relative; z-index:1; }
.amb { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.amb video {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter: blur(26px) saturate(1.4); opacity:0.22; transform:scale(1.12); will-change:transform;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
@media (max-width: 768px){ .amb{ display:none; } }
@media (prefers-reduced-motion: reduce){ .amb{ display:none; } }

/* small utilities */
.center { text-align:center; }
.mt-cta { margin-top: 40px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.divider-note { text-align:center; color: var(--text-3); font-size:14px; max-width: 640px; margin: 30px auto 0; }

/* ============================================================
   LANGUAGE TOGGLE (EN ⇄ AR)
   ============================================================ */
.lang-toggle {
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
  transition: border-color var(--dur), color var(--dur), transform var(--dur-fast) var(--ease-out);
  line-height: 1;
}
.lang-toggle:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-1px); }
.mobile-menu .lang-toggle { display: inline-block; margin-top: 14px; border-bottom: 1px solid var(--line-strong); font-size: 14px; }

/* ============================================================
   ARABIC / RTL
   IBM Plex Sans Arabic is loaded from Google Fonts in each page
   head and only used when <html dir="rtl"> is active.
   ============================================================ */
[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.75;
}
/* Negative tracking breaks Arabic letter joining — neutralize everywhere. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5,
[dir="rtl"] .btn, [dir="rtl"] .lede, [dir="rtl"] .section-sub { letter-spacing: 0; }

/* Display type: Neuropolitical has no Arabic glyphs — Plex carries Arabic,
   Neuropolitical still renders Latin digits/words inside mixed lines. */
[dir="rtl"] .display, [dir="rtl"] .section-title, [dir="rtl"] .about-heading,
[dir="rtl"] .stat .num, [dir="rtl"] .cert-seal .cs-num {
  font-family: "IBM Plex Sans Arabic", "Neuropolitical", "Poppins", sans-serif;
  font-weight: 700; letter-spacing: 0;
}
[dir="rtl"] .display, [dir="rtl"] .section-title { line-height: 1.3; }
[dir="rtl"] .hero h1 { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.22; }
[dir="rtl"] .page-head h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.25; }
[dir="rtl"] .about-heading { line-height: 1.35; }
[dir="rtl"] .cta-band h2 { line-height: 1.4; letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .footer h5, [dir="rtl"] .tile .t-sector,
[dir="rtl"] .cert-seal .cs-lbl, [dir="rtl"] .cert-seal .cs-top { letter-spacing: 0; }
[dir="rtl"] .j-card h4, [dir="rtl"] .safety-item h4, [dir="rtl"] .feature-card h3 { line-height: 1.45; }
[dir="rtl"] .cap-info h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .highlight-card h3, [dir="rtl"] .tile h3 { letter-spacing: 0; line-height: 1.45; }

/* Flip directional arrows (→) and their hover motion. */
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn-text:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* Journey timeline: the rail hugs the dots, which sit right in RTL. */
[dir="rtl"] .journey::before { left: auto; right: 27px; }
@media (max-width: 640px){ [dir="rtl"] .journey::before { left: auto; right: 19px; } }

/* Keep phone numbers, emails and URLs reading left-to-right. */
[dir="rtl"] .footer-bottom span:last-child,
[dir="rtl"] .ci-block .big { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ci-block .big { display: block; text-align: right; }

/* Form fields: Arabic labels/values align right naturally; keep
   email/phone inputs LTR for sane caret behavior. */
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { direction: ltr; text-align: right; }
