/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --accent:       #a8e832;
  --accent2:      #F56D43;
  --accent3:      #dc2626;
  --font-head:    'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-italic:  'Outfit', sans-serif;
  --radius:       16px;
  --radius-lg:    28px;
  --cta-noise-op: 0;
  --stats-noise-op: 0;
  --noise-op: 0;

  --green:      #a8e832;
  --orange:     #F56D43;
  --dark:       #0a0a0f;
  --white:      #ffffff;
  --navy:       #11222a;
  --navy-deep:  #0c1a20;
}

[data-theme="dark"] {
  --bg:           #0a0a0f;
  --bg2:          #0f0f18;
  --bg3:          #13131f;
  --card:         #13131f;
  --card2:        #1a1a2e;
  --text:         #f0eee8;
  --text-strong:  #ffffff;
  --muted:        #888;
  --muted2:       #555;
  --border:       rgba(255,255,255,0.07);
  --shadow:       rgba(0,0,0,0.4);
  --input-bg:     rgba(255,255,255,0.04);
  --text2:    #888;
  --text3:    #555;
  --card-bg:  #13131f;
}

[data-theme="light"] {
  --bg:           #f1f5f9;
  --bg2:          #ffffff;
  --bg3:          #e2e8f0;
  --card:         #ffffff;
  --card2:        #f8fafc;
  --text:         #0f172a;
  --text-strong:  #020617;
  --muted:        #64748b;
  --muted2:       #94a3b8;
  --border:       rgba(15,23,42,0.11);
  --shadow:       rgba(15,23,42,0.09);
  --input-bg:     rgba(15,23,42,0.04);
  --text2:    #475569;
  --text3:    #94a3b8;
  --card-bg:  #ffffff;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  background:  var(--bg);
  color:       var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x:  hidden;
  transition:  background .4s, color .4s;
  width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.wrap    { width: min(1200px, 92%); margin: auto; }
.section { padding: 70px 0; }

/* ============================================================
   4. CURSORS
   ============================================================ */
body { cursor: default; }

a, button,
.btn-red, .btn-white, .btn-ghost,
.face-link, .port-arrow, .flip-card,
.testi-nav-btn, .carousel-nav, .video-play-btn,
.back-top, .mob-parent-btn, .mob-cta { cursor: pointer; }

p, span, h1, h2, h3, h4, h5, h6,
li, blockquote, input, textarea { cursor: text; }

/* ============================================================
   5. LOGO BAR
   ============================================================ */
.site-logo-bar {
  position:        fixed;
  top:             0;
  left:            0;
  right:           0;
  z-index:         1002;
  display:         flex;
  align-items:     center;
  justify-content: center;
  height:          90px;
  transition:      background .3s;
}

[data-theme="dark"]  .site-logo-bar {
  background:    #0a0a0f;
  border-bottom: 3px solid #a8e832;
}
[data-theme="light"] .site-logo-bar {
  background:    #ffffff;
  border-bottom: 2px solid rgba(15,23,42,0.85);
  box-shadow:    0 2px 12px rgba(15,23,42,0.06);
}

.site-logo-bar a {
  display:         flex;
  align-items:     center;
  justify-content: center;
  height:          100%;
}

.site-logo-bar img {
  height:      56px;
  width:       auto;
  max-width:   260px;
  object-fit:  contain;
}

/* SHOW/HIDE LOGOS */
.logo-dark  { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-dark  { display: block; }
[data-theme="dark"] .logo-light { display: none;  }

/* ============================================================
   6. NAVBAR  � desktop: sits below logo bar
   ============================================================ */
.navbar {
  position:        fixed;
  top:             90px;
  left:            0;
  right:           0;
  z-index:         1001;
  padding:         11px 5%;
  background:      #a8e832 !important;
  box-shadow:      0 2px 10px rgba(0,0,0,.12);
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.navbar.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.2); }

.nav-wrap {
  width:           100%;
  max-width:       1200px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  position:        relative;
}

/* -- Top-level link list -- */
.nav-links {
  flex:            1;
  display:         flex;
  align-items:     center;
  height:          44px;
  gap:             28px;
  font-size:       .92rem;
  font-weight:     600;
  letter-spacing:  .6px;
  white-space:     nowrap;
  justify-content: center;
  text-transform:  uppercase;
  list-style:      none;
  margin:          0;
  padding:         0;
  margin-right:    auto;
  margin-left:     -120px;
}
.nav-links > li {
  position:  relative;
  list-style: none;
  overflow:  visible !important;
  display:   flex;
  align-items: center;
}
.nav-links > li > ul { position: absolute !important; }
.nav-links > li > a {
  color:      #0a0a0f !important;
  display:    inline-block;
  transition: opacity .2s;
  position:   relative;
}
.nav-links > li > a:hover { opacity: .65; }
.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0a0a0f;
  transition: width .3s;
}
.nav-links > li > a:hover::after { width: 100%; }

/* Active states */
.nav-links > li > a.nav-active {
  color: #0a0a0f !important;
  opacity: 1 !important;
}
.nav-links > li > a.nav-active::after {
  width: 100% !important;
  background: #0a0a0f !important;
}
.nav-links > li > a.nav-active::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0a0a0f;
}
.nav-links > li.nav-parent-active > a {
  color: #0a0a0f !important;
  opacity: 1 !important;
}

/* ============================================================
   7. DROPDOWN MENU
   ============================================================ */
.nav-links ul {
  visibility:     hidden;
  opacity:        0;
  pointer-events: none;
  transition:     opacity .22s ease, visibility .22s ease, transform .22s ease;
  transform:      translateX(-50%) translateY(8px);

  position:       absolute;
  top:            calc(100% + 18px);
  left:           50%;
  list-style:     none;
  padding:        12px;
  margin:         0;
  min-width:      540px;
  max-width:      90vw;
  border-radius:  14px;
  z-index:        99999;

  background:     #ffffff;
  border:         1px solid rgba(0,0,0,0.08);
  box-shadow:     0 20px 60px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.07);

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 4px 12px;
}

.nav-links > li:nth-child(7) > ul,
.nav-links > li:has(> a[href*="career"]) > ul {
  min-width: 260px;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-auto-flow: row;
}

.nav-links ul::before {
  content:'';
  position:  absolute;
  top:-7px; left:50%;
  transform: translateX(-50%) rotate(45deg);
  width:13px; height:13px;
  background:  #ffffff;
  border-left: 1px solid rgba(0,0,0,0.08);
  border-top:  1px solid rgba(0,0,0,0.08);
  border-radius: 2px 0 0 0;
}

.nav-links > li:hover > ul,
.nav-links > li.open  > ul {
  visibility:     visible;
  opacity:        1;
  pointer-events: all;
  transform:      translateX(-50%) translateY(0);
}

.nav-links ul li {
  list-style: none;
  border-radius: 9px;
  overflow: hidden;
}
.nav-links ul li + li { border-top: 1px solid rgba(0,0,0,0.05); }

.nav-links ul li a {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     10px 14px;
  font-size:   13px;
  font-weight: 500;
  text-transform:  none !important;
  letter-spacing:  0 !important;
  white-space:     nowrap;
  border-radius:   9px;
  color:           #1a1218 !important;
  transition:      background .18s, color .18s, padding-left .18s;
  position:        relative;
}
.nav-links ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #E89A80;
  opacity: 0;
  transition: opacity .18s;
}
.nav-links ul li a::after {
  display: none !important;
}

.nav-links ul li a:hover {
  background:   rgba(249,115,22,0.07) !important;
  color:        #E89A80 !important;
  padding-left: 20px !important;
}
.nav-links ul li a:hover::before { opacity:1; }

.nav-links ul li a.nav-active {
  color:        #f97316 !important;
  background:   rgba(249,115,22,0.08) !important;
  padding-left: 20px !important;
}
.nav-links ul li a.nav-active::before { opacity:1; }

/* Dark mode dropdown */
[data-theme="dark"] .nav-links ul {
  background: #0a0a0f !important;
  border:     1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .nav-links ul::before {
  background:        #0a0a0f !important;
  border-left-color: rgba(255,255,255,0.08) !important;
  border-top-color:  rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .nav-links ul li + li   { border-top-color:rgba(255,255,255,0.05); }
[data-theme="dark"] .nav-links ul li a      { color:#e8e8e8 !important; }
[data-theme="dark"] .nav-links ul li a:hover,
[data-theme="dark"] .nav-links ul li a.nav-active {
  background: rgba(249,115,22,0.1) !important;
  color:      #f97316 !important;
}

/* ============================================================
   8. NAV CONTROLS
   ============================================================ */
.nav-controls {
  position:    absolute;
  right:       0;
  display:     flex !important;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.12) !important;
  color: #0a0a0f !important;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
}
.theme-toggle:hover {
  background: rgba(0,0,0,0.22) !important;
  transform: rotate(20deg) scale(1.08);
}

/* Light mode toggle more polished appearance */
[data-theme="light"] .theme-toggle {
  background: #ffffff !important;
  color:      #0a0a0f !important;
  border:     2px solid rgba(0,0,0,0.12) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-theme="light"] .theme-toggle:hover {
  background: #0a0a0f !important;
  color:      #a8e832 !important;
  border-color: #0a0a0f !important;
  transform:  rotate(20deg) scale(1.08);
}

.nav-cta {
  display:     flex;
  align-items: center;
  gap:         8px;
  background:  #0a0a0f !important;
  color:       #a8e832 !important;
  padding:     8px 16px !important;
  border-radius: 999px;
  font-size:   0.82rem !important;
  font-weight: 700;
  border:      none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition:  all .3s;
}
.nav-cta:hover {
  background:  #1a1a2a !important;
  transform:   translateY(-1px);
  box-shadow:  0 6px 20px rgba(0,0,0,0.25) !important;
}

/* -- Hamburger -- */
.hamburger {
  display:        none;
  flex-direction: column;
  gap:            5px;
  background:     none;
  border:         none;
  cursor:         pointer;
  padding:        8px;
  /* Make tap target generous on touch devices */
  min-width:      44px;
  min-height:     44px;
  align-items:    center;
  justify-content:center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0a0a0f !important;
  border-radius: 999px;
  transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   9. MOBILE MENU
   ============================================================ */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1003;
  display: none;
  backdrop-filter: blur(4px);
}
.mob-overlay.active {
  display: block;
}

.mob-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1004;
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  transition: right .4s cubic-bezier(0.22,1,0.36,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-menu.active {
  right: 0;
}

.mob-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  /* good tap target */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  margin: 0;
}
.mob-links > li { border-bottom: 1px solid var(--border); }

.mob-links > li > a,
.mob-links > li > .mob-parent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color .3s;
}
.mob-links > li > a:hover,
.mob-links > li > .mob-parent-btn:hover { color:var(--accent); }

.mob-arrow {
  transition: transform .3s;
  font-size: .85rem;
  color: var(--muted);
}
.mob-parent-btn.open .mob-arrow {
  transform: rotate(180deg);
}

.mob-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mob-sub.open {
  max-height: 600px;
}

.mob-sub li a {
  display:       block;
  padding:       10px 0 10px 14px;
  font-size:     .88rem;
  color:         var(--muted);
  border-bottom: 1px solid var(--border);
  transition:    color .2s, padding-left .2s;
}
.mob-sub li:last-child a { border-bottom:none; }
.mob-sub li a:hover {
  color: var(--accent);
  padding-left: 20px;
}

/* Mobile active states */
.mob-links > li > a.nav-active,
.mob-links > li > .mob-parent-btn.nav-parent-active {
  color: #a8e832 !important;
}
.mob-sub li a.nav-active {
  color: #a8e832 !important;
  padding-left: 22px !important;
  border-left: 2px solid #a8e832;
  margin-left: -2px;
}

.mob-cta-wrap {
  padding: 20px 24px 0;
}
.mob-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0f !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 8px;
  transition: background .3s;
  width: 100%;
  justify-content: center;
}
.mob-cta:hover {
  background: #15803d !important;
  color: #fff !important;
}

/* ============================================================
   10. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* -- Compact desktop (1200px) � hide CTA to prevent overlap with Connect link -- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 16px !important;
    font-size: 0.78rem !important;
    margin-left: 0 !important;
  }
  .nav-cta {
    display: none !important;
  }
}

/* -- Switch to hamburger at 1024px -- */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

/* -- Tablet (768px) -- */
@media (max-width: 768px) {

  /* Logo bar: shrink height */
  .site-logo-bar {
    height:     70px;
    padding:    0 16px;
  }
  .site-logo-bar img {
    height:    56px;
    max-width: 220px;
  }

  /* Navbar: drop below the shorter logo bar */
  .navbar {
    top:     70px;
    padding: 10px 4%;
  }

  /* Theme toggle: slightly smaller */
  .theme-toggle {
    width:  40px;
    height: 40px;
  }

  /* Standard hero override (pages that use .page-hero) */
  .page-hero {
    padding-top: 145px;
  }
  .page-hero h1 {
    font-size: clamp(2.4rem, 9vw, 5rem) !important;
  }
}

/* -- Mobile (480px) -- */
@media (max-width: 480px) {

  .site-logo-bar {
    height:     60px;
    padding:    0 12px;
  }
  .site-logo-bar img {
    height:    44px;
    max-width: 180px;
  }

  .navbar {
    top:     60px;
    padding: 8px 4%;
  }

  .theme-toggle {
    width:  36px;
    height: 36px;
    font-size: .9rem;
  }

  .page-hero {
    padding-top: 130px;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
  }
}

/* -- Section / wrap tightening on small screens -- */
@media (max-width: 640px) {
  .wrap    { width: min(1200px, 88%); }
  .section { padding: 50px 0; }
}

@media (max-width: 360px) {
  .wrap    { width: min(1200px, 90%); }
}

/* ============================================================
   11. TYPOGRAPHY HELPERS
   ============================================================ */
.sec-eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  font-size:      .78rem;
  font-weight:    700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  14px;
}
.sec-heading {
  font-family:   var(--font-head);
  font-size:     clamp(2.2rem, 6vw, 5rem);
  line-height:   1.06;
  color:         var(--text-strong);
  margin-bottom: 16px;
}
.sec-heading em {
  font-style:  normal;
  font-family: 'Outfit', sans-serif;
  color:       var(--accent2);
  font-weight: 700;
}
[data-theme="light"] .impact-our {
  color: #ffffff;
}
.sec-sub {
  font-size:     1rem;
  color:         var(--muted);
  max-width:     560px;
  margin-bottom: 28px;
  line-height:   1.75;
}
.sec-header { margin-bottom:52px; }

/* ============================================================
   12. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0f !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  transition: background .3s, transform .3s, box-shadow .3s;
}
.btn-primary:hover {
  background:  #bef54a;
  transform:   translateY(-2px);
  box-shadow:  0 8px 24px rgba(168,232,50,.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text) !important;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .3s, color .3s, background .3s, transform .3s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color:        var(--accent) !important;
  transform:    translateY(-2px);
}
[data-theme="light"] .btn-ghost {
  border-color: rgba(15,23,42,0.18);
  color: #0f172a !important;
}
[data-theme="light"] .btn-ghost:hover {
  border-color: var(--accent);
  color: #0f172a !important;
  background: rgba(168,232,50,0.09);
}

/* ============================================================
   13. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: none;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: #11222a !important;
  width: 100%;
}

.footer-grid {
  display:               grid;
  grid-template-columns: 1.6fr 0.75fr 0.85fr 0.75fr 0.85fr 1.15fr;
  gap:                   28px;
  padding-top:           56px;
  padding-bottom:        40px;
}

/* Footer logo */
.footer-logo img {
  height:    60px;
  width:     auto;
  max-width: 200px;
  object-fit:contain;
}

.footer-brand p {
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin: 16px 0 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: .95rem;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-socials a:hover {
  color: #0a0a0f;
  background: var(--accent2);
  border-color: var(--accent2);
}

.footer-head {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-list a {
  font-size: .82rem;
  color: rgba(255,255,255,0.58);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.footer-list a:hover {
  color: var(--accent2) !important;
}
.footer-list a i {
  color: #a8e832;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.footer-contact p i {
  color: #a8e832;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact a {
  color: rgba(255,255,255,0.55);
}
.footer-contact a:hover {
  color: var(--accent2) !important;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #a8e832;
  color: #0a0a0f !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 4px;
  margin-top: 10px;
  transition: opacity .2s;
}
.footer-cta:hover {
  opacity: .85;
}
.footer-cta:hover i {
  color: var(--accent2) !important;
}

.footer-bottom {
  background: #0c1a20 !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy,
.footer-credit {
  margin: 0;
}
.footer-bottom p,
.footer-bottom p a {
  color: rgba(255,255,255,0.55) !important;
  font-size: .82rem;
}
.footer-bottom p a.cyber-link {
  color: #a8e832 !important;
  font-weight: 600;
  transition: color .2s;
}
.footer-bottom p a.cyber-link:hover {
  color: var(--accent2) !important;
}
.footer-bottom p a.flashlab-link {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 600;
  transition: color .2s;
  text-decoration: none;
}
.footer-bottom p a.flashlab-link:hover {
  color: #a8e832 !important;
}

/* -- Footer responsive -- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.75fr 0.85fr 0.75fr 0.85fr 1.1fr;
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 44px;
  }
  /* Brand takes full width on its own row */
  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .footer-logo img {
    height: 48px;
  }
  .footer-socials {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 16px 5%;
  }
}

@media (max-width: 400px) {
  /* grid-template-columns removed for flex */
  .footer-brand {
    grid-template-columns: 1fr;
  }
  .footer-bottom p { font-size: .74rem; }
}



/* ============================================================
   16. MARQUEE
   ============================================================ */
.marquee-strip {
  background: var(--accent2);
  overflow:   hidden;
  padding:    16px 0;
}
.marquee-track {
  display:        flex;
  align-items:    center;
  gap:            36px;
  white-space:    nowrap;
  width:          max-content;
  will-change:    transform;
  animation:      ticker 40s linear infinite;
}
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family:    var(--font-head);
  font-size:      1rem;
  letter-spacing: 3px;
  color:          #0a0a0f;
  position:       relative;
}
/* Solid black dot absolutely centred in the gap between items */
.marquee-track span + span::before {
  content:       '';
  position:      absolute;
  left:          -24px;
  top:           50%;
  transform:     translate(-50%, -50%);
  width:         6px;
  height:        6px;
  background:    #0a0a0f;
  border-radius: 50%;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--tw, -50%)); }
}

/* ============================================================
   MOBILE NAV — hamburger menu on the LEFT
   ============================================================ */

@media (max-width: 1024px) {

  /* let the controls span the full bar so each item pins to an edge */
  .nav-controls {
    position: static;          /* was absolute; right:0 */
    right: auto;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-wrap { justify-content: space-between; }

  .hamburger { order: 1; }   /* far LEFT  */
  .theme-toggle { order: -1; }   /* far RIGHT */

  
}

/* Founder quote slider fade-in */
.fq-hidden  { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.fq-visible { opacity: 1; transform: none; }
/* ============================================================
   MOBILE: Minimum tap target sizes (WCAG 2.5.5)
   ============================================================ */
@media (max-width: 1024px) {
  .btn-red,
  .btn-white,
  .btn-ghost,
  .btn-primary,
  .face-link,
  .footer-cta,
  .mob-cta,
  .nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-list a {
    padding: 4px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .footer-socials a {
    width: 42px !important;
    height: 42px !important;
  }
}

/* ============================================================
   MOBILE: Prevent horizontal overflow on ALL pages
   ============================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  section,
  .wrap,
  footer,
  nav {
    padding: 16px 5%;
  }
}

@media (max-width: 400px) {
  /* grid-template-columns removed for flex */
  .footer-brand {
    grid-template-columns: 1fr;
  }
  .footer-bottom p { font-size: .74rem; }
}

/* ============================================================
   15. BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 72px;
  right: 30px !important;
  left: auto !important;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #a8e832 !important;
  color: #0a0a0f !important;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(168,232,50,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s;
  pointer-events: none;
}
.back-top.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: all !important;
}
.back-top:hover {
  background: #bef54a !important;
  transform: translateY(-3px) !important;
}

@media (max-width: 640px) {
  .back-top {
    bottom: 64px;
    left: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================================
   16. MARQUEE
   ============================================================ */
.marquee-strip {
  background: var(--accent2);
  overflow:   hidden;
  padding:    16px 0;
}
.marquee-track {
  display:        flex;
  align-items:    center;
  gap:            36px;
  white-space:    nowrap;
  width:          max-content;
  will-change:    transform;
  animation:      ticker 40s linear infinite;
}
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family:    var(--font-head);
  font-size:      1rem;
  letter-spacing: 3px;
  color:          #0a0a0f;
  position:       relative;
}
/* Solid black dot absolutely centred in the gap between items */
.marquee-track span + span::before {
  content:       '';
  position:      absolute;
  left:          -24px;
  top:           50%;
  transform:     translate(-50%, -50%);
  width:         6px;
  height:        6px;
  background:    #0a0a0f;
  border-radius: 50%;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--tw, -50%)); }
}

/* ============================================================
   MOBILE NAV — hamburger menu on the LEFT
   ============================================================ */

@media (max-width: 1024px) {

  /* let the controls span the full bar so each item pins to an edge */
  .nav-controls {
    position: static;          /* was absolute; right:0 */
    right: auto;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-wrap { justify-content: space-between; }

  .hamburger { order: 1; }   /* far LEFT  */
  .theme-toggle { order: -1; }   /* far RIGHT */

  
}

/* Founder quote slider fade-in */
.fq-hidden  { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.fq-visible { opacity: 1; transform: none; }
/* ============================================================
   MOBILE: Minimum tap target sizes (WCAG 2.5.5)
   ============================================================ */
@media (max-width: 1024px) {
  .btn-red,
  .btn-white,
  .btn-ghost,
  .btn-primary,
  .face-link,
  .footer-cta,
  .mob-cta,
  .nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-list a {
    padding: 4px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .footer-socials a {
    width: 42px !important;
    height: 42px !important;
  }
}

/* ============================================================
   MOBILE: Prevent horizontal overflow on ALL pages
   ============================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  section,
  .wrap,
  footer,
  nav {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ============================================================
   MOBILE: Marquee strip - slightly smaller text on phones
   ============================================================ */
@media (max-width: 480px) {
  .marquee-track {
    gap: 24px;
  }
  .marquee-track span {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }
}

/* ============================================================
   MOBILE: Back-to-top button - move away from phone keyboard
   ============================================================ */
@media (max-width: 640px) {
  .back-top {
    bottom: 80px;
    right: 14px;
    left: auto;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* ============================================================
   MOBILE FOOTER COMPRESSION
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { display: flex !important; flex-direction: column !important; gap: 8px !important; padding-top: 28px !important; }
  .footer-brand {
    grid-column: 1 / -1 !important;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1 !important;
  }
  .footer-list a {
    min-height: 28px !important;
    padding: 2px 0 !important;
    font-size: 0.82rem !important;
  }
  .footer-head {
    font-size: 0.88rem !important;
    margin-bottom: 10px !important;
  }
  .footer-contact p {
    font-size: 0.82rem !important;
  }
}


/* ============================================================
   MOBILE COMPRESSION: Compress large cards to prevent full-screen scrolling
   ============================================================ */
@media (max-width: 1024px) {
  /* 1. Service Cards */
  .svc-card {
    height: 240px !important;
  }
  .svc-card h3 {
    font-size: 1.15rem !important;
  }

  /* 2. Founder/Team Cards */
  .founder-card {
    padding: 16px !important;
    gap: 12px !important;
  }
  .founder-photo {
    height: 200px !important;
  }
  .founder-card h4 {
    font-size: 1.25rem !important;
    margin-bottom: 4px !important;
  }
  .founder-card p {
    font-size: 0.85rem !important;
  }

  /* 3. Founder Quotes Slider */
  .founder-quote {
    padding: 24px 20px !important;
  }
  .founder-quote blockquote {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  .fq-author {
    padding-top: 14px !important;
    gap: 12px !important;
  }
  .fq-avatar {
    width: 48px !important;
    height: 48px !important;
  }
  .fq-author strong {
    font-size: 0.88rem !important;
  }
  .fq-author span {
    font-size: 0.75rem !important;
  }
}

/* ============================================================
   MOBILE COMPRESSION: Flip cards (Trademark, Web App)
   ============================================================ */
@media (max-width: 1024px) {
  .flip-face-img {
    height: 100px !important;
  }
  .flip-face-img .face-overlay {
    padding: 12px 14px 14px !important;
  }
  .flip-front-icon {
    font-size: 2rem !important;
  }
  .flip-face-text {
    padding: 16px 14px 18px !important;
  }
  .flip-face-text p {
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
  }
  .flip-face-text .face-link {
    padding: 10px 14px !important;
  }
}

/* Hide links columns in footer on mobile */
@media (max-width: 1024px) {
  .footer-grid > div:not(.footer-brand):not(:last-child) {
    display: none !important;
  }
  .hide-on-mobile { display: none !important; }
  .footer-brand { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .footer-head { margin-top: 0 !important; }
}

/* CRUSH ALL FOOTER GAPS ON MOBILE */
@media (max-width: 1024px) {
  .footer-grid {
    gap: 20px !important;
  }
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding-bottom: 0 !important;
  }
  .footer-brand p {
    margin: 0 !important;
    display: none !important;
  }
}@media (max-width: 640px) {
  .footer {
    padding-top: 20px !important;
  }
}
@media (max-width: 640px) {
  .mcta-col {
    padding-bottom: 20px !important;
  }
}

/* === CONTACT BAND DARK THEME FIX === */
[data-theme="dark"] .contact-band h2 {
  color: var(--text-strong) !important;
}
[data-theme="dark"] .contact-band p {
  color: var(--muted) !important;
}
[data-theme="dark"] .contact-band .btn-dark {
  background: var(--text-strong) !important;
  color: #0a0a0f !important;
}
[data-theme="dark"] .contact-band .btn-dark:hover {
  background: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168, 232, 50, 0.3) !important;
}
/* === CONTACT BAND MOBILE FIX (GLOBAL) === */
@media (max-width: 640px) {
  .contact-band {
    padding: 0 20px 40px !important;
  }
  .contact-band h2 {
    font-size: clamp(2.2rem, 8vw, 2.8rem) !important;
    word-break: break-word !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
  }
  .contact-band p {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
    padding: 0 10px !important;
  }
  .contact-band .btn-dark {
    width: 100% !important;
    justify-content: center !important;
  }
}