/* ==================================================================
   AISJEED TECHNOLOGIES - DESIGN SYSTEM
   Navy #001F4D + Orange #FF9900. Tokens first, components after.
   ================================================================== */

:root {
  /* -- Brand ramp - navy --------------------------------------- */
  --navy-900: #000E24;
  --navy-800: #001736;
  --navy-700: #001F4D;
  --navy-600: #002860;
  --navy-500: #003A80;
  --navy-400: #0A4A99;

  /* -- Brand ramp - orange ------------------------------------- */
  --orange-600: #CC7A00;
  --orange-500: #FF9900;
  --orange-400: #FFAD33;
  --orange-300: #FFC266;

  /* -- Brand ramp - electric blue ------------------------------ */
  --blue-600: #0044CC;
  --blue-500: #0055FF;
  --blue-400: #3377FF;

  /* -- Semantic surfaces --------------------------------------- */
  --bg:        var(--navy-700);
  --bg-deep:   var(--navy-900);
  --surface:   var(--navy-600);
  --surface2:  var(--navy-500);
  --surface-glass: rgba(0, 40, 96, 0.55);

  --accent:    var(--orange-500);
  --accent2:   var(--blue-500);

  /* -- Text ---------------------------------------------------- */
  --text:      #ffffff;
  --muted:     #B3D1FF;
  --muted-dim: rgba(179, 209, 255, 0.66);

  /* -- Lines --------------------------------------------------- */
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 153, 0, 0.28);

  /* -- Typography scale (fluid) -------------------------------- */
  --font-head: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --fs-lg:   clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-xl:   clamp(1.5rem,  1.3rem  + 1vw,   2rem);
  --fs-2xl:  clamp(1.9rem,  1.5rem  + 2vw,   2.9rem);
  --fs-3xl:  clamp(2.3rem,  1.6rem  + 3.4vw, 4.1rem);

  /* -- Spacing scale (4px base) -------------------------------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  40px;
  --sp-8:  56px;
  --sp-9:  72px;
  --sp-10: 96px;
  --sp-11: 128px;

  --section-y: clamp(72px, 8vw, 120px);
  --gutter:    clamp(20px, 6vw, 88px);
  --maxw:      1280px;

  /* -- Radius scale -------------------------------------------- */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 999px;
  --radius: var(--r-md);

  /* -- Elevation ----------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 8, 24, 0.28);
  --shadow-md: 0 4px 12px -2px rgba(0, 8, 24, 0.36), 0 2px 4px rgba(0, 8, 24, 0.2);
  --shadow-lg: 0 16px 32px -12px rgba(0, 8, 24, 0.5), 0 4px 10px rgba(0, 8, 24, 0.28);
  --shadow-xl: 0 32px 64px -24px rgba(0, 8, 24, 0.68), 0 8px 20px rgba(0, 8, 24, 0.34);
  --glow-accent: 0 12px 40px -10px rgba(255, 153, 0, 0.5);
  --glow-blue:   0 12px 40px -10px rgba(0, 85, 255, 0.45);

  /* -- Motion -------------------------------------------------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  0.18s;
  --dur:       0.3s;
  --dur-slow:  0.55s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Consistent, visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--orange-500); color: var(--navy-900); }

img, video, svg { max-width: 100%; }

/* Skip link - first tab stop on every page */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 10001;
  background: var(--orange-500);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 12px 26px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* -- NAV -- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: transparent;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
  box-shadow: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 50px;
}
.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: #FF9900; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF9900;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: #001F4D !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-cta:hover { background: #ffb84d !important; color: #001F4D !important; }

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.35rem;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* Icon state is driven purely by aria-expanded, so the accessible
   state and the visual state can never drift apart. */
.nav-toggle .nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: inline-block; }

/* -- HERO -- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 6% 80px;
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: 0;
  opacity: 0.85;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 72% 32%, rgba(255, 153, 0, 0.20) 0%, transparent 68%),
    radial-gradient(ellipse 55% 50% at 20% 78%, rgba(0, 85, 255, 0.26) 0%, transparent 66%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 14, 36, 0.85) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,0.35);
  z-index: 2;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  z-index: 3;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 153, 0, 0.10);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
  margin-left: auto;
  margin-right: auto;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 28px;
  animation: fadeUp 0.9s 0.1s ease both;
}
h1 .accent-word { color: var(--accent); }
h1 .line2 { color: var(--muted); }

h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 44px;
  font-weight: 300;
  animation: fadeUp 1s 0.2s ease both;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.3s ease both;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-accent); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 153, 0, 0.08); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.4s ease both;
  justify-content: center;
}
.stat { }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }

/* -- SECTION COMMON -- */
section { padding: 100px 6%; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}

/* -- MARQUEE -- */
.marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.marquee-item::after {
  content: '◆';
  color: var(--accent);
  font-size: 0.6rem;
}

/* -- SERVICES -- */
#services { background: var(--bg); }
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: linear-gradient(135deg, #002860 0%, #003A80 100%);
  padding: 36px 28px 36px 28px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid rgba(255, 153, 0, 0.15);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 85, 255, 0.2);
  border-color: rgba(255, 153, 0, 0.3);
}

.service-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 153, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF9900;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-end;
  margin-top: auto;
  flex-shrink: 0;
}

.service-btn-circle:hover {
  transform: scale(1.15) rotate(45deg);
  background: #FF9900;
  color: #ffffff;
}

/* -- TRUSTED PARTNERS -- */
/* Partner logos are full-colour crests designed for white, so each one
   sits on its own light plate. Recolouring them to silhouettes turned
   several into unreadable blobs. */
#partners {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 85, 255, 0.20), transparent 70%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Dot grid, fading out towards the edges */
#partners::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
}
/* Warm glow beneath the logo wall */
#partners::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -280px;
  width: 960px;
  height: 540px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 153, 0, 0.14), transparent 65%);
}

.partners-head {
  max-width: 900px;
  margin: 0 auto var(--sp-8);
  text-align: center;
}
.partners-head h2 { margin-bottom: var(--sp-4); }
.partners-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--orange-300), var(--orange-500) 55%, var(--orange-400));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.partners-head .section-intro { max-width: 640px; margin: 0 auto; }

/* Tiles wrap in rows of --pg-cols. A part-filled last row is centred,
   so the grid looks finished however many partners are listed. */
.partners-grid {
  --pg-cols: 5;
  --pg-gap: 20px;
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pg-gap);
}
.partners-grid > li {
  display: flex;
  min-width: 0;
  flex: 0 0 calc((100% - (var(--pg-cols) - 1) * var(--pg-gap)) / var(--pg-cols));
}

.partner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease);
}
.partner:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  background: linear-gradient(160deg, rgba(255, 153, 0, 0.12) 0%, rgba(255, 255, 255, 0.03) 60%);
  box-shadow: var(--shadow-xl), 0 20px 44px -22px rgba(255, 153, 0, 0.55);
}

.partner-logo {
  position: relative;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 6px);
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF2FA 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 31, 77, 0.06), 0 8px 18px -12px rgba(0, 0, 0, 0.7);
}
.partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 76px;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}
/* Sheen that sweeps across the plate on hover */
.partner-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 153, 0, 0.16) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.partner:hover .partner-logo img { transform: scale(1.07); }
.partner:hover .partner-logo::after { transform: translateX(120%); }

.partner-meta {
  padding: 14px 8px 8px;
  text-align: center;
}
.partner-meta strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--text);
}
.partner-meta span {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted-dim);
  text-wrap: balance;
}

/* Closing tile: an invitation rather than a logo */
.partner--cta {
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(160deg, rgba(255, 153, 0, 0.10) 0%, rgba(255, 153, 0, 0.02) 70%);
  border: 1px dashed rgba(255, 153, 0, 0.5);
  box-shadow: none;
}
.partner--cta:hover {
  border-style: solid;
  border-color: var(--accent);
}
.partner-cta-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.3rem;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: var(--glow-accent);
  transition: transform var(--dur) var(--ease-out);
}
.partner--cta:hover .partner-cta-icon { transform: rotate(-8deg) scale(1.06); }
.partner-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.partner-cta-text strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}
.partner-cta-text span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-300);
}
.partner-cta-text i {
  font-size: 0.7rem;
  transition: transform var(--dur) var(--ease-out);
}
.partner--cta:hover .partner-cta-text i { transform: translateX(3px); }

/* Three columns; the invitation gets its own row as a banner. */
@media (max-width: 1079px) {
  .partners-grid { --pg-cols: 3; }
  .partners-grid > li.partner-cta-item { flex-basis: 100%; }
  .partner--cta { flex-direction: row; text-align: left; padding: var(--sp-5) var(--sp-6); }
  .partner-cta-text span { justify-content: flex-start; }
}

/* Phones: compact tiles, acronym only (full name stays readable to
   screen readers). */
@media (max-width: 639px) {
  .partners-head { margin-bottom: var(--sp-7); }
  .partners-grid { --pg-gap: 10px; }
  .partner { padding: 5px; border-radius: var(--r-md); }
  .partner-logo {
    height: 78px;
    padding: 6px 5px;
    border-radius: calc(var(--r-md) - 4px);
  }
  .partner-logo img { max-width: 100%; max-height: 54px; }
  .partner-meta { padding: 8px 2px 4px; }
  .partner-meta strong { font-size: 0.76rem; }
  .partner-meta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .partner--cta { padding: var(--sp-4) var(--sp-5); gap: var(--sp-3); }
  .partner-cta-icon { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 14px; }
}

/* -- PARTNERS MARQUEE --
   script.js adds .is-marquee: the grid becomes two drifting rows so the
   section keeps its height as partners are added. The original list is
   kept for screen readers (visually hidden); the rows are decorative.
   "View all" adds .is-expanded and brings the full grid back. */
#partners.is-marquee:not(.is-expanded) .partners-grid {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* The invitation tile moves to the "Become a partner" link instead */
#partners.is-marquee:not(.is-expanded) .partner-cta-item { display: none; }
#partners.is-expanded .partners-marquee,
#partners.is-expanded .partners-join { display: none; }

.partners-marquee {
  --pm-gap: 20px;
  --pm-card: 236px;
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 0 18px;
  display: grid;
  gap: 6px;
  overflow: hidden;
  /* Logos fade in and out at the edges instead of being cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.pm-row { padding: 8px 0; }
.pm-track {
  display: flex;
  width: max-content;
  animation: pmScroll var(--pm-duration, 60s) linear infinite;
}
.pm-row--reverse .pm-track { animation-direction: reverse; }
/* Hovering anywhere on the wall pauses both rows so a logo can be read */
.partners-marquee:hover .pm-track { animation-play-state: paused; }

.pm-set {
  display: flex;
  flex-shrink: 0;
  gap: var(--pm-gap);
  padding-right: var(--pm-gap);
}
.pm-set .partner {
  flex: 0 0 var(--pm-card);
  width: var(--pm-card);
}
.pm-set .partner:hover { transform: translateY(-5px); }

@keyframes pmScroll {
  to { transform: translateX(-50%); }
}

/* Expanded grid: tiles arrive in a quick cascade */
#partners.is-expanded .partners-grid > li {
  animation: pmIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
#partners.is-expanded .partners-grid > .partner-cta-item { animation-delay: 420ms; }
@keyframes pmIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Controls under the wall */
.partners-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-6);
}
.partners-actions[hidden] { display: none; }
#partners.is-expanded .partners-actions { margin-top: var(--sp-7); }

.partners-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.partners-toggle i { color: var(--orange-400); font-size: 0.85rem; }
.partners-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(255, 153, 0, 0.08);
}

.partners-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-300);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  padding: var(--sp-2) 2px;
}
.partners-join i { font-size: 0.75rem; transition: transform var(--dur) var(--ease-out); }
.partners-join:hover { color: var(--orange-400); }
.partners-join:hover i { transform: translateX(4px); }

@media (max-width: 639px) {
  .partners-marquee {
    --pm-gap: 12px;
    --pm-card: 148px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .partners-actions { gap: var(--sp-2) var(--sp-5); }
}

/* -- WHY US -- */
#why {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
#why::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.12), transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-text { }
.why-features { display: flex; flex-direction: column; gap: 28px; margin-top: 44px; }
.why-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-feat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 153, 0, 0.10);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.why-feat-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.why-feat-body p { font-size: 0.875rem; color: var(--muted); }

.why-visual {
  position: relative;
}
.why-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
}
.wcard {
  border-radius: 20px;
  padding: 32px;
}
.wcard-1 {
  background: linear-gradient(135deg, #0055FF, #FF9900);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}
.wcard-1 h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.wcard-1 p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 8px; }

.wcard-2 {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 28px;
}
.wcard-2-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.wcard-2-label { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.wcard-3 {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 24px;
}
.wcard-3 p { font-size: 0.8rem; color: var(--muted); }
.wcard-3 strong { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 0.95rem; }

/* -- PROCESS -- */
#process { background: var(--bg); }
.process-header { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.process-header .section-intro { margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  background: var(--surface);
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.process-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255,153,0,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(255,153,0,0.4);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55);
}
.process-step:hover::after { opacity: 1; }
.step-num {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 24px -8px rgba(255,153,0,0.45);
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}
.process-step:hover .step-num { transform: scale(1.08); }
.process-step h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.process-step p { font-size: 0.875rem; color: var(--muted); position: relative; z-index: 1; }
.step-accent {
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: width 0.35s ease;
}
.process-step:hover .step-accent { width: 56px; }

/* -- BLOG -- */
#insights { background: var(--surface); }
.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

.blog-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.blog-thumb-1 { background: linear-gradient(135deg, #002860, #0055FF); }
.blog-thumb-1 i { color: #fff; }
.blog-thumb-2 { background: linear-gradient(135deg, #001F4D, #FF9900); }
.blog-thumb-2 i { color: #fff; }
.blog-thumb-3 { background: linear-gradient(135deg, #003A80, #FF9900); }
.blog-thumb-3 i { color: #fff; }

.blog-body { padding: 28px; }
.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card p { font-size: 0.86rem; color: var(--muted); }
.blog-meta { font-size: 0.78rem; color: var(--muted); margin-top: 20px; display: flex; gap: 12px; }

/* -- CONTACT -- */
#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 40px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 10px;
  margin-left: -10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, transform 0.2s;
}
a.contact-detail:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(4px);
}
a.contact-detail:hover .contact-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-detail-text strong { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.contact-detail-text span { font-size: 0.95rem; }
.contact-detail-static { cursor: default; }
.contact-detail-static:hover { background: transparent; transform: none; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
}
.contact-form h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 28px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}
.form-submit:hover { background: #ffb84d; transform: translateY(-1px); }

/* -- MAP -- */
.map-wrap {
  position: relative;
  margin-top: 64px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.map-frame {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(1.1);
}
.map-card {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 340px;
  background: rgba(0, 40, 96, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.map-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,153,0,0.15);
  border: 1px solid rgba(255,153,0,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 14px;
}
.map-card-body strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.map-card-body span { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.map-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
}
.map-card-btn:hover { background: #ffb84d; transform: translateY(-2px); }

@media (max-width: 700px) {
  .map-card { position: static; max-width: none; margin-top: 20px; }
  .map-wrap { box-shadow: none; }
  .map-frame { height: 320px; border-radius: 18px 18px 0 0; }
}

/* Map placeholder: Google Maps loads only when the visitor asks
   (script.js), so no IP address or cookie goes to Google by default. */
.map-placeholder {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 60% at 62% 45%, rgba(255, 153, 0, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
}
/* A drawn street grid, so the space reads as "map" before it loads */
.map-placeholder-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-placeholder-art::before,
.map-placeholder-art::after {
  content: '';
  position: absolute;
  background: rgba(179, 209, 255, 0.08);
  border-radius: 6px;
}
.map-placeholder-art::before { left: -5%; right: -5%; top: 56%; height: 18px; transform: rotate(-8deg); }
.map-placeholder-art::after  { top: -5%; bottom: -5%; left: 58%; width: 16px; transform: rotate(12deg); }
.map-placeholder-pin {
  position: absolute;
  left: 60%;
  top: 46%;
  transform: translate(-50%, -100%);
  font-size: 2.6rem;
  color: var(--accent);
  filter: drop-shadow(0 10px 18px rgba(255, 153, 0, 0.45));
}
.map-placeholder-cta {
  position: relative;
  max-width: 300px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(0, 14, 36, 0.78);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  text-align: center;
}
.map-placeholder-cta p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}
.map-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-accent);
  background: rgba(255, 153, 0, 0.12);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.map-load-btn i { color: var(--orange-400); }
.map-load-btn:hover {
  background: rgba(255, 153, 0, 0.22);
  border-color: var(--accent);
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .map-placeholder { height: 320px; justify-content: center; padding: 0 20px; border-radius: 18px 18px 0 0; }
  .map-placeholder-pin { left: 50%; top: 30%; }
}

/* -- SITE FOOTER -- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  padding: var(--sp-10) var(--gutter) 0;
  background:
    radial-gradient(ellipse 55% 50% at 12% 0%, rgba(0, 85, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 45% at 92% 100%, rgba(255, 153, 0, 0.10), transparent 70%),
    var(--bg-deep);
}
/* Brand-gradient hairline along the top edge */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-500) 30%, var(--blue-500) 70%, transparent);
  opacity: 0.75;
}
/* Faint dot grid, fading downwards */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
}
.sf-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}
.sf-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}

/* Brand column */
.sf-logo { display: inline-block; height: 62px; margin-bottom: var(--sp-5); }
.sf-logo img { display: block; height: 100%; width: auto; }
.sf-tagline {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.sf-tagline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--orange-300), var(--orange-500));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.sf-about { max-width: 330px; font-size: var(--fs-sm); line-height: 1.7; color: var(--muted); }
.sf-socials { display: flex; gap: 10px; margin-top: var(--sp-6); }
.sf-social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sf-social:hover {
  transform: translateY(-3px);
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--navy-900);
  box-shadow: var(--glow-accent);
}
.sf-social--wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #04210F;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.6);
}

/* Link columns */
.sf-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-5);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.sf-heading::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
/* The global `nav` rule styles the fixed header bar; these link columns
   are <nav> elements too, so undo that inside the footer. */
.site-footer nav {
  position: static;
  z-index: auto;
  display: block;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  transition: none;
}
.sf-col ul { list-style: none; display: grid; gap: 12px; }
.sf-col:not(.sf-contact) a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
/* A short accent dash slides in ahead of the hovered link */
.sf-col:not(.sf-contact) a::before {
  content: '';
  width: 0;
  height: 2px;
  margin-right: 0;
  border-radius: 2px;
  background: var(--accent);
  transition: width var(--dur) var(--ease-out), margin-right var(--dur) var(--ease-out);
}
.sf-col:not(.sf-contact) a:hover { color: var(--text); }
.sf-col:not(.sf-contact) a:hover::before { width: 12px; margin-right: 8px; }
.sf-new {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: var(--r-full);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00261A;
  background: linear-gradient(135deg, #5EE0AE, #12C784);
}

/* Contact column */
.sf-contact ul { gap: 14px; }
.sf-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}
.sf-contact small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.sf-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-accent);
  background: rgba(255, 153, 0, 0.10);
  color: var(--orange-400);
  font-size: 0.9rem;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sf-ic--wa { border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.10); color: #25D366; }
.sf-contact a:hover .sf-ic { transform: translateY(-2px) rotate(-6deg); background: var(--orange-500); color: var(--navy-900); }
.sf-contact a:hover .sf-ic--wa { background: #25D366; color: #04210F; }
.sf-contact a:hover > span:last-child { color: var(--orange-300); }
.sf-contact a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sf-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-5);
  font-size: 0.8rem;
  color: var(--muted-dim);
}
.sf-hours i { color: var(--orange-400); }

/* Bottom bar */
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted-dim);
}
.sf-legal { list-style: none; display: flex; gap: var(--sp-5); }
.sf-legal a { color: var(--muted); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.sf-legal a:hover { color: var(--orange-400); }
.sf-made { display: inline-flex; align-items: center; gap: 8px; }
.sf-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #008751 33.3%, #fff 33.3% 66.6%, #008751 66.6%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Giant faded wordmark along the bottom edge */
.sf-wordmark {
  position: relative;
  z-index: 0;
  margin: -0.02em 0 -0.17em;
  font-family: var(--font-head);
  /* "AISJEED" in Syne 800 is 7.01x its font size wide: 13.6% of the
     footer's width fills ~95% of it at every screen size. */
  font-size: min(13.6cqi, 232px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 82%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

@media (max-width: 1080px) {
  .sf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6); }
  .sf-brand, .sf-contact { grid-column: 1 / -1; }
  .sf-contact ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-footer { padding-top: var(--sp-9); }
  .sf-top { gap: var(--sp-7) var(--sp-5); }
  .sf-contact ul { grid-template-columns: minmax(0, 1fr); }
  .sf-bottom { flex-direction: column; text-align: center; }
}

/* -- ANIMATIONS -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -- MOBILE -- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 999;
    background: rgba(0, 31, 77, 0.97);
    padding: 24px 6%;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  h1 { letter-spacing: -1px; }
  .hero-stats { gap: 28px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 72px 5%; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { padding: 28px 20px; }
  .contact-form { padding: 28px 20px; }
  .stat-num { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .stats-banner-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-height: 800px) {
  #hero { padding: 90px 6% 40px; }
  .hero-badge { margin-bottom: 14px; }
  h1 { margin-bottom: 14px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-stats { margin-top: 36px; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* -- NAV SCROLLED -- */
nav.scrolled {
  background: rgba(0,31,77,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* -- WHATSAPP FLOAT -- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.6);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: waRing 2s ease-out infinite;
}
@keyframes waRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* -- WHATSAPP BUTTONS (contact page) -- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  border: 1px solid rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.12);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn-whatsapp i { color: #25D366; font-size: 1.05rem; transition: color var(--dur) var(--ease); }
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  transform: translateY(-2px);
  background: #25D366;
  border-color: #25D366;
  color: #04210F;
  box-shadow: 0 12px 32px -10px rgba(37, 211, 102, 0.65);
}
.btn-whatsapp:hover i,
.btn-whatsapp:focus-visible i { color: #04210F; }

.wa-chip {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 14px 7px 11px;
  border-radius: var(--r-full);
  border: 1px solid rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.12);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.wa-chip i { color: #25D366; font-size: 1rem; transition: color var(--dur) var(--ease); }
.wa-chip:hover,
.wa-chip:focus-visible {
  transform: translateY(-1px);
  background: #25D366;
  border-color: #25D366;
  color: #04210F;
}
.wa-chip:hover i,
.wa-chip:focus-visible i { color: #04210F; }

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -- BACK TO TOP -- */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,153,0,0.35);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { box-shadow: 0 6px 24px rgba(255,153,0,0.55); transform: translateY(-2px); }

/* -- PAGE HERO (inner pages) -- */
.page-hero {
  padding: 140px 6% 90px;
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -140px; left: 25%;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,153,0,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  animation: fadeUp 0.9s ease both;
}
.page-hero-inner h1 { margin-bottom: 24px; letter-spacing: -1.5px; }
.page-hero-inner .section-intro { font-size: 1.1rem; max-width: 620px; margin-top: 16px; }
.page-hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.page-hero-right {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  animation: fadeUp 1s ease both;
}
.hero-stat-card:nth-child(2) { animation-delay: 0.1s; }
.hero-stat-card:nth-child(3) { animation-delay: 0.2s; }
.hero-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,153,0,0.15);
  border: 1px solid rgba(255,153,0,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-stat-card strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero-stat-card span { font-size: 0.78rem; color: var(--muted); margin-top: 4px; display: block; }

/* -- SERVICE OVERVIEW CARD (services.html) -- */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-overview-card {
  background: linear-gradient(145deg, #002860 0%, #003A80 100%);
  border: 1px solid rgba(255,153,0,0.12);
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-overview-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,153,0,0.08), transparent 70%);
  pointer-events: none;
}
.service-overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  border-color: rgba(255,153,0,0.3);
}
.soc-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,153,0,0.15);
  border: 1px solid rgba(255,153,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: background 0.3s;
}
.service-overview-card:hover .soc-icon { background: rgba(255,153,0,0.25); }
.service-overview-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.service-overview-card > p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}
.soc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.soc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.soc-features li i { color: var(--accent); font-size: 0.7rem; flex-shrink: 0; }
.soc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,153,0,0.12);
  border: 1px solid rgba(255,153,0,0.25);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  align-self: flex-start;
  margin-top: auto;
}
.soc-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* -- INDUSTRIES SECTION -- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.industry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,153,0,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.industry-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.industry-card h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; }

/* -- STATS BANNER -- */
.stats-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #ffb84d 100%);
  padding: 60px 6%;
}
.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stats-banner-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: #0a0f1e;
  line-height: 1;
}
.stats-banner-item span { font-size: 0.9rem; color: rgba(10,15,30,0.75); margin-top: 6px; display: block; }

/* -- ABOUT PAGE -- */
.about-visual-card {
  background: linear-gradient(135deg, #0055FF 0%, #FF9900 100%);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.about-visual-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.about-visual-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
}
.about-vc-main { position: relative; z-index: 1; }
.about-vc-main h3 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.about-vc-main p { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.about-vc-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.about-vc-stat { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 16px; text-align: center; }
.about-vc-stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.about-vc-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.8); margin-top: 4px; display: block; }

/* Timeline line connector */
.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(255,153,0,0.1));
}
.timeline-item { margin-bottom: 40px; padding-left: 48px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 1px; top: 6px;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.timeline-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* -- INSIGHTS FILTER -- */
.insight-card[hidden] { display: none; }

/* -- CTA SECTION -- */
.cta-section-full {
  background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(0,212,255,0.06));
  padding: 100px 6%;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section-full h2 { margin-bottom: 20px; }
.cta-section-full p { color: var(--muted); max-width: 560px; margin: 0 auto 40px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .page-hero-right { display: none; }
}
@media (max-width: 900px) {
  .services-overview-grid { grid-template-columns: 1fr 1fr; }
  .stats-banner-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-overview-grid { grid-template-columns: 1fr; }
  .stats-banner-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .page-hero { padding: 120px 5% 70px; }
}

/* ==================================================================
   - DESIGN UPGRADE LAYER
   Everything below refines the components defined above onto the
   token system: consistent rhythm, one elevation language, one
   motion curve, and accessible focus/motion handling.
   ================================================================== */

/* -- LAYOUT RHYTHM -----------------------------------------------
   Content is capped so the site reads as a designed page on 4K
   monitors instead of stretching edge to edge.                     */
section { padding: var(--section-y) var(--gutter); }

#services > *, #why > *, #process > *, #insights > *,
#contact > *,
.service-content > * {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* -- TYPOGRAPHY ------------------------------------------------ */
h1 { font-size: var(--fs-3xl); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.02em; line-height: 1.1; }
h3 { letter-spacing: -0.01em; }

/* Only the home hero gets the full display size. Inner-page headings
   are longer and need a tighter cap or they run to five or six lines. */
.page-hero h1,
.service-hero h1 { font-size: clamp(1.95rem, 1.45rem + 2.2vw, 3rem); }

.hero-sub, .section-intro { font-size: var(--fs-md); text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* -- NAVIGATION ------------------------------------------------ */
nav {
  padding: var(--sp-3) var(--gutter);
  background: transparent;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}

nav.scrolled {
  background: linear-gradient(180deg, rgba(0, 20, 52, 0.94), rgba(0, 20, 52, 0.86));
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-lg);
  padding-block: var(--sp-2);
}

.logo { height: 46px; transition: transform var(--dur) var(--ease-out); }
.logo:hover { transform: scale(1.04); }

.nav-links { gap: var(--sp-6); align-items: center; }
.nav-links a { padding-block: var(--sp-1); }
.nav-links a::after {
  height: 2px;
  bottom: -4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--orange-300));
  transition: width var(--dur) var(--ease-out);
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
  box-shadow: 0 4px 14px -4px rgba(255, 153, 0, 0.55);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              filter var(--dur-fast) var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: var(--glow-accent);
}

/* Products link: a "New" badge draws the eye to the products page.
   The underline moves onto the label so it doesn't run under the badge. */
.nav-links a.nav-products { display: inline-flex; align-items: center; }
.nav-links a.nav-products::after { display: none; }
.nav-label { position: relative; }
.nav-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--orange-300));
  transition: width var(--dur) var(--ease-out);
}
.nav-products:hover .nav-label::after,
.nav-products.active .nav-label::after { width: 100%; }

.nav-new {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #00261A;
  background: linear-gradient(135deg, #5EE0AE, #12C784);
  animation: navNewPulse 2.4s ease-out infinite;
}
@keyframes navNewPulse {
  0%       { box-shadow: 0 0 0 0 rgba(18, 199, 132, 0.6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(18, 199, 132, 0); }
}
@media (max-width: 900px) {
  .nav-links.open .nav-label::after { display: none; }
}

/* -- BREADCRUMBS ----------------------------------------------- */
.crumbs {
  position: relative;
  z-index: 5;
  padding: calc(var(--sp-10) + var(--sp-2)) var(--gutter) 0;
  background: transparent;
}
.crumbs-inner { max-width: var(--maxw); margin-inline: auto; }

.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  font-size: var(--fs-sm);
}
.crumbs-list li { display: flex; align-items: center; gap: var(--sp-2); }

/* Chevron separator drawn in CSS so it never gets read by a screen
   reader as content. */
.crumbs-list li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--muted-dim);
  border-bottom: 1.5px solid var(--muted-dim);
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.crumbs-list a {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 2px;
  border-radius: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.crumbs-list a:hover { color: var(--accent); }
.crumbs-list [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* The breadcrumb bar already clears the fixed nav, so the hero that
   follows it does not need its own top padding. */
.crumbs + .page-hero,
.crumbs + .service-hero,
.crumbs + .art-hero { padding-top: var(--sp-6); }
.crumbs + .service-hero { min-height: 0; }

/* -- BUTTONS --------------------------------------------------- */
.btn-primary,
.btn-ghost,
.form-submit {
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              filter var(--dur-fast) var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 55%, var(--orange-600) 100%);
  color: var(--navy-900);
  padding: var(--sp-3) var(--sp-6);
  box-shadow: 0 6px 20px -6px rgba(255, 153, 0, 0.55);
  position: relative;
  overflow: hidden;
}
/* Sheen sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  padding: var(--sp-3) var(--sp-6);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* -- HERO ------------------------------------------------------ */
#hero { padding: var(--sp-11) var(--gutter) var(--sp-9); }
.hero-inner { max-width: 940px; }
/* The hero centres its content with flexbox, so anything wider than the
   screen spilled out on BOTH sides on phones (the word "Performance" is
   ~10.4x the font size wide). Let the inner box shrink to the screen and
   size the headline from that box so the longest word always fits.
   On desktop min() still picks the normal size, so nothing changes. */
.hero-inner { width: 100%; min-width: 0; container-type: inline-size; }
#hero h1 { font-size: min(var(--fs-3xl), 9.2cqi); }
.hero-video-bg { opacity: 0.42; }
.hero-overlay {
  background: linear-gradient(180deg, rgba(0, 14, 36, 0.62) 0%, rgba(0, 20, 52, 0.55) 45%, rgba(0, 31, 77, 0.9) 100%);
  backdrop-filter: none;
}
.hero-grid {
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
}
h1 .accent-word {
  background: linear-gradient(120deg, var(--orange-300), var(--orange-500) 55%, var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 620px; }

.hero-stats {
  gap: clamp(var(--sp-5), 4vw, var(--sp-9));
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border);
}
.stat { text-align: center; min-width: 96px; }
.stat-num {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-num span {
  background: linear-gradient(120deg, var(--orange-300), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-2);
}

/* -- CARD SYSTEM ----------------------------------------------- */
.service-card,
.process-step,
.blog-card,
.benefit-item,
.contact-form {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease);
}

.service-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, var(--navy-600) 0%, var(--navy-500) 100%);
  border: 1px solid var(--border);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  min-height: 300px;
  isolation: isolate;
}
/* Accent wash that fades in on hover, behind the content */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(255, 153, 0, 0.20), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-xl);
}
.service-card:hover::before { opacity: 1; }

.service-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.26), rgba(255, 153, 0, 0.10));
  border: 1px solid var(--border-accent);
  color: var(--orange-400);
  font-size: 1.3rem;
  margin-bottom: var(--sp-5);
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.service-card:hover .service-icon-circle {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--navy-900);
}

.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.service-card p { color: var(--muted); font-size: var(--fs-sm); }

.service-btn-circle {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.service-btn-circle:hover,
.service-card:hover .service-btn-circle {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--navy-900);
  transform: rotate(-45deg);
}

.process-step,
.blog-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%), var(--surface);
  border: 1px solid var(--border);
}
.process-step:hover,
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-xl);
}

.blog-card { background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%), var(--bg); }
.blog-thumb { height: 184px; }
.blog-thumb i {
  font-size: 2.4rem;
  opacity: 0.9;
  transition: transform var(--dur-slow) var(--ease-out);
}
.blog-card:hover .blog-thumb i { transform: scale(1.12) rotate(-6deg); }

/* -- FORMS ----------------------------------------------------- */
.contact-form { border-radius: var(--r-xl); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.16);
  outline: none;
}
.form-submit {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500) 55%, var(--orange-600));
  color: var(--navy-900);
}
.form-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--glow-accent); }
.form-submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }

/* -- FLOATING ACTIONS ------------------------------------------ */
.whatsapp-float,
.back-to-top {
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.whatsapp-float:hover,
.back-to-top:hover { transform: translateY(-3px) scale(1.06); }

/* -- SCROLL REVEAL --------------------------------------------- */
.reveal {
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

/* -- RESPONSIVE ------------------------------------------------ */
@media (max-width: 900px) {
  .crumbs { padding-top: var(--sp-10); }

  /* Fully opaque: a translucent panel let the hero headline show
     through and made the menu hard to read. */
  .nav-links.open {
    background: linear-gradient(180deg, #001736 0%, #000E24 100%);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    gap: 0;
    border-bottom: 1px solid var(--border-accent);
    box-shadow: var(--shadow-xl);
    animation: navDrop var(--dur) var(--ease-out) both;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open li + li { border-top: 1px solid var(--border); }
  .nav-links.open a {
    display: block;
    padding: var(--sp-4) 0;
    font-size: 1rem;
    font-weight: 500;
  }
  .nav-links.open a::after { display: none; }
  .nav-links.open li:last-child { border-top: none; margin-top: var(--sp-4); }
  .nav-links.open .nav-cta {
    text-align: center;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--r-full);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }
  .service-card { min-height: 0; }
}

@media (max-width: 560px) {
  .crumbs-list { font-size: var(--fs-xs); }
  /* On the narrowest screens keep only the parent + current crumb */
  .crumbs-list li:not(:nth-last-child(-n + 2)) { display: none; }
  .crumbs-list li:nth-last-child(2)::before { display: none; }

  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .service-card { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- "NOT SURE WHERE TO START?" TILE (service grids) -- */
/* Seven services leave a gap in a three-column grid; this tile fills the
   last row (spanning two columns) and points undecided visitors to us. */
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-cta-wrap { display: flex; grid-column: span 2; container-type: inline-size; }
.service-cta-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-7);
  border-radius: var(--r-xl);
  border: 1px dashed rgba(255, 153, 0, 0.5);
  background:
    radial-gradient(ellipse 55% 90% at 0% 50%, rgba(255, 153, 0, 0.16), transparent 70%),
    linear-gradient(135deg, var(--navy-600), var(--navy-800));
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease-out);
}
.service-cta-card:hover {
  transform: translateY(-6px);
  border-style: solid;
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), var(--glow-accent);
}
.scc-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.5rem;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: var(--glow-accent);
  transition: transform var(--dur) var(--ease-out);
}
.service-cta-card:hover .scc-icon { transform: rotate(-8deg) scale(1.05); }
.scc-text strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.scc-text span { display: block; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.scc-btn {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500) 55%, var(--orange-600));
  box-shadow: 0 6px 20px -6px rgba(255, 153, 0, 0.55);
}
.scc-btn i { transition: transform var(--dur) var(--ease-out); }
.service-cta-card:hover .scc-btn i { transform: translateX(4px); }
/* Narrow tile (one column): stack the content */
@container (max-width: 560px) {
  .service-cta-card { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .scc-btn { margin-left: 0; }
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid .service-cta-wrap { grid-column: span 1; }
}
@media (max-width: 900px) {
  .services-overview-grid .service-cta-wrap { grid-column: span 1; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* -- SMALL-SCREEN SAFETY NET --
   Syne is very wide: headline words such as "Administration" or
   "Underestimating" are 11-13x the font size, wider than a phone screen.
   Headings may hyphenate (only when a word does not fit, so desktop is
   unaffected), boxes that hold headings may shrink below their longest
   word, and headings scale down slightly on phones. */
h1, h2, h3, h4 {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
          hyphens: auto;
}
.service-hero > div,
.page-hero-inner,
.products-head > *,
.services-header > *,
.contact-grid > *,
.form-row > *,
.stats-banner-grid > *,
.about-vc-stats > * { min-width: 0; }
/* Long email addresses (e.g. the Gmail address on the home page) may wrap */
.contact-detail-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .page-hero h1,
  .service-hero h1 { font-size: clamp(1.5rem, 7.4vw, 1.95rem); }
  h2 { font-size: clamp(1.5rem, 7.4vw, 1.9rem); }
}

/* -- MOTION PREFERENCES ------------------------------------------
   Respects the OS "reduce motion" setting: content still appears,
   it just stops moving.                                           */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  /* Keep the element so its poster frame still backs the hero -- hiding
     it outright left the hero with no imagery at all. The script does
     not load the video under reduced motion, so it never moves. */
  .hero-video-bg { display: block; }
}

/* -- PRINT ----------------------------------------------------- */
@media print {
  nav, .crumbs, .whatsapp-float, .back-to-top, .skip-link,
  .hero-video-bg, .marquee-section, #cookie-banner { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
