/* ============================================================
   ADVANCEDATA NETWORK — Scale-inspired motion rebuild
   Palette kept on-brand (deep navy blue + tech blue + orange),
   motion language borrowed from scale.com.
   ============================================================ */

/* ----------  DESIGN TOKENS  ---------- */
:root {
  /* Brand palette (Advancedata) */
  --navy:        #07182e;   /* deep brand navy        */
  --navy-deep:   #050f1f;
  --blue:        #1668e3;   /* primary tech blue      */
  --blue-bright: #2f86ff;
  --blue-soft:   #e8f0fd;
  --orange:      #f7941e;   /* accent orange          */
  --orange-deep: #e87a00;

  --ink:         #0a1b2e;   /* near-black text on light */
  --slate:       #44566b;   /* secondary text          */
  --slate-light: #6b7e93;
  --line:        #e4e9f0;   /* hairlines               */
  --surface:     #ffffff;
  --surface-2:   #f5f8fc;   /* light section bg        */
  --surface-3:   #eef3fa;

  /* Typographic scale */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);

  --r: 14px;
}

/* ----------  RESET  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
@media (hover: none) { body { cursor: auto; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--orange); color: #fff; }

/* ----------  LAYOUT HELPERS  ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--orange); display: inline-block; }
.eyebrow.on-dark { color: var(--blue-bright); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }

/* ----------  CUSTOM CURSOR  ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor-dot  { width: 7px;  height: 7px;  background: #fff; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid #fff; transition: width .25s var(--ease-out), height .25s var(--ease-out), background .25s; }
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,.12); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ----------  PRELOADER  ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--navy-deep); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; transition: opacity .7s var(--ease-out), visibility .7s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-logo-img { height: clamp(48px, 9vw, 72px); width: auto; display: block; }
.pre-bar { width: min(280px, 60vw); height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s linear; }
.pre-num { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .1em; }

/* ----------  HEADER  ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding-block: 20px;
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(1.4);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -22px rgba(7,24,46,.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand .brand-img { height: clamp(28px, 4.2vw, 38px); width: auto; display: block; }
.brand .on-light { display: none; }
.header.scrolled .brand .on-dark { display: none; }
.header.scrolled .brand .on-light { display: block; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { position: relative; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.82); transition: color .3s; }
.header.scrolled .nav a { color: var(--slate); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--orange); transition: width .35s var(--ease-out); }
.nav a:hover { color: #fff; }
.header.scrolled .nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.btn {
  --bg: var(--orange); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 100px; font-weight: 700; font-size: 15px;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s;
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange-deep); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { box-shadow: 0 14px 34px -12px rgba(247,148,30,.6); }
.btn.ghost { --bg: transparent; --fg: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn.ghost::before { background: #fff; }
.btn.ghost:hover { --fg: var(--navy); }
.btn.blue { --bg: var(--blue); } .btn.blue::before { background: var(--navy); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.nav-toggle { display: none; }

/* ----------  HERO (pinned 3D card stack)  ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; }
.hero-track { height: 380vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* 3D card stage */
.hero-stage {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1800px;
  pointer-events: none;
}
.hero-card {
  position: absolute;
  /* CSS defaults so initial state is correct before JS runs */
  left: -5%; top: -5%; width: 110%; height: 110%;
  transform-style: preserve-3d;
  will-change: transform, left, top, width, height, opacity;
  opacity: 0;
}
.hero-card[data-card="0"] { opacity: 1; }
.hero-card-inner {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: var(--card-radius, 0px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card-img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease-in-out; }
.hero-card-img.is-active { opacity: 1; }
.hero-card-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,15,31,.35) 0%, rgba(5,15,31,0) 28%, rgba(5,15,31,0) 60%, rgba(5,15,31,.6) 100%);
}

/* HUD wireframe overlays */
.hero-hud {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: var(--hud-o, 0);
  transition: opacity .25s linear;
}
.hero-hud .hud-line { fill: none; stroke: rgba(255,255,255,.65); stroke-width: 1; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.hero-hud .hud-dash { stroke-dasharray: 2 3; stroke: rgba(255,255,255,.5); }
.hero-hud .hud-tick-text { fill: rgba(255,255,255,.45); font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; }
.hero-hud .hud-label-text { fill: rgba(255,255,255,.95); font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.hero-hud .hud-data-text { fill: rgba(255,255,255,.55); font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; }

/* dim layer (text-readability wash over the cards, fades as cards shrink) */
.hero-dim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: var(--dim-o, 1);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(22,104,227,.30), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(247,148,30,.16), transparent 60%),
    linear-gradient(180deg, rgba(5,15,31,.25) 0%, rgba(5,15,31,.88) 100%);
}

/* text overlay - bottom-anchored so cards have the upper area */
.hero-inner {
  position: absolute; inset: auto 0 0 0;
  z-index: 3;
  padding-block: 0 clamp(32px, 5vh, 56px);
  opacity: var(--text-o, 1);
}
.hero-inner .wrap { width: 100%; }
.hero h1 { font-size: clamp(1.9rem, 4.8vw, 4.2rem); font-weight: 800; max-width: 16ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%); }
.hero .accent { color: var(--orange); }
.hero-cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; display: flex; gap: clamp(20px,4vw,56px); flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; max-width: 720px; }
.hero-meta div span { display: block; }
.hero-meta .k { font-family: var(--font-display); font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 800; color: #fff; }
.hero-meta .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 3px; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: var(--hint-o, 1); transition: opacity .4s; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: scrolldown 1.8s var(--ease-io) infinite; }
@keyframes scrolldown { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* Mobile: simplify - no 3D, single card as full-bleed bg */
@media (max-width: 879px) {
  .hero-track { height: auto; }
  .hero-sticky { position: relative; height: 100svh; padding-top: clamp(110px, 16vh, 160px); }
  .hero-stage { perspective: none; }
  .hero-card { opacity: 0; }
  .hero-card[data-card="0"] { opacity: 1; position: absolute; inset: 0; transform: none !important; }
  .hero-card[data-card="0"] .hero-card-inner { border-radius: 0 !important; box-shadow: none; }
  .hero-card[data-card="0"] .hero-card-tint { background: linear-gradient(180deg, rgba(5,15,31,.55) 0%, rgba(5,15,31,.88) 100%); }
  .hero-card[data-card="0"] .hero-hud { display: none; }
  .hero-dim { opacity: .35; }
  .hero-inner { position: relative; inset: auto; padding-block: 0; }
}

/* ----------  REVEAL PRIMITIVES (IntersectionObserver)  ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"] { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 1s var(--ease-out), opacity .9s; }
[data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* ----------  STATEMENT SECTION  ---------- */
.statement { background: var(--surface); }
.statement .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.18; letter-spacing: -.02em; max-width: 22ch; }
.statement .big b { color: var(--blue); font-weight: 700; }
.statement .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items: start; }
.statement .side p { color: var(--slate); font-size: 1.05rem; max-width: 42ch; }
.statement .side .btn { margin-top: 22px; }
@media (max-width: 820px){ .statement .grid { grid-template-columns: 1fr; } }

/* ----------  STATS  ---------- */
.stats { background: var(--surface-2); border-block: 1px solid var(--line); }
.stats .row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,5vw,4.2rem); letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat .num .sfx { color: var(--orange); }
.stat .cap { margin-top: 12px; color: var(--slate); font-size: .98rem; max-width: 24ch; }
@media (max-width: 860px){ .stats .row { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }

/* ----------  PINNED WORD CYCLE (Scale signature)  ---------- */
.cycle { background: var(--navy-deep); color: #fff; }
.cycle-track { height: 700vh; position: relative; } /* tall scroll runway: ~85vh dwell per word */
.cycle-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.cycle-bg { position: absolute; inset: 0; }
.cycle-bg .layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); transform: scale(1.08); }
.cycle-bg .layer.active { opacity: 1; transform: scale(1); }
.cycle-bg .layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(5,15,31,.92) 0%, rgba(5,15,31,.55) 55%, rgba(5,15,31,.3) 100%); }
.cycle-inner { position: relative; z-index: 2; width: 100%; }
.cycle-inner .eyebrow { margin-bottom: 26px; }
.cycle-words { position: relative; height: clamp(3.4rem, 12vw, 9rem); }
.cycle-words span {
  position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 9rem); letter-spacing: -.03em; line-height: 1;
  opacity: 0; transition: opacity .45s linear; /* fades OUT only when leaving */
  white-space: nowrap; color: #fff;
}
.cycle-words span.active { opacity: 1; transition: none; } /* appears instantly, holds solid */
.cycle-words span.active .u { color: var(--orange); }
.cycle-foot { margin-top: 34px; font-size: clamp(1.1rem,2vw,1.5rem); color: rgba(255,255,255,.8); max-width: 40ch; }
.cycle-progress { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 12px; }
.cycle-progress i { width: 2px; height: 26px; background: rgba(255,255,255,.18); transition: background .4s, height .4s; }
.cycle-progress i.on { background: var(--orange); height: 40px; }
@media (max-width: 760px){ .cycle-progress { display: none; } }

/* ----------  SERVICES GRID  ---------- */
.services { background: var(--surface); }
.services .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.services h2 { font-size: clamp(2rem,4.6vw,3.6rem); max-width: 18ch; }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.svc {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 34px;
  background: var(--surface); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
}
.svc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.svc:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -34px rgba(7,24,46,.35); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc .ic { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 22px; transition: background .4s, transform .5s var(--ease-out); }
.svc:hover .ic { background: var(--blue-soft); transform: rotate(-6deg) scale(1.05); }
.svc .ic img { width: 30px; height: 30px; object-fit: contain; }
.svc h3 { font-size: 1.22rem; margin-bottom: 10px; }
.svc p { color: var(--slate); font-size: .96rem; }
.svc .more { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; }
.svc .more span { transition: transform .35s var(--ease-out); }
.svc:hover .more span { transform: translateX(5px); }
@media (max-width: 980px){ .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .svc-grid { grid-template-columns: 1fr; } }

/* ----------  HORIZONTAL PINNED FEATURE  ---------- */
.hscroll { background: var(--surface-2); }
.hscroll-track { height: 320vh; position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hscroll-rail { display: flex; gap: 28px; padding-inline: var(--gutter); will-change: transform; }
.hpanel { flex: 0 0 min(78vw, 880px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px,4vw,52px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hpanel .n { font-family: var(--font-mono); font-size: 13px; color: var(--orange); letter-spacing: .15em; }
.hpanel h3 { font-size: clamp(1.6rem,3vw,2.4rem); margin: 14px 0 16px; }
.hpanel p { color: var(--slate); }
.hpanel .pic { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.hpanel .pic img { width: 70%; height: 70%; object-fit: contain; transition: transform .8s var(--ease-out); }
.hpanel:hover .pic img { transform: scale(1.06); }
.hscroll-head { position: absolute; top: clamp(40px,9vh,90px); left: var(--gutter); z-index: 3; }
@media (max-width: 760px){ .hpanel { grid-template-columns: 1fr; } .hpanel .pic { order: -1; } }

/* ----------  MARQUEE  ---------- */
.marquee-sec { background: var(--navy); color: #fff; padding-block: clamp(48px,7vw,84px); }
.marquee-sec .lab { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 38px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 64px; padding-right: 64px; animation: marq 32s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
.marquee-row .chip { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: rgba(255,255,255,.85); }
.marquee-row .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; margin-top: 48px; align-items: center; }
.badges img { height: 64px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; transition: opacity .4s, transform .4s var(--ease-out); }
.badges img:hover { opacity: 1; transform: translateY(-4px) scale(1.04); }

/* ----------  INDUSTRIES  ---------- */
.ind { background: var(--surface); }
.ind h2 { font-size: clamp(2rem,4.4vw,3.4rem); max-width: 16ch; margin-bottom: 14px; }
.ind .lead { color: var(--slate); max-width: 52ch; margin-bottom: 50px; font-size: 1.08rem; }
.ind-list { border-top: 1px solid var(--line); }
.ind-row { display: grid; grid-template-columns: 64px 1.1fr 2fr auto; gap: 24px; align-items: center; padding: 30px 6px; border-bottom: 1px solid var(--line); position: relative; transition: padding .4s var(--ease-out); }
.ind-row::before { content: ""; position: absolute; inset: 0; background: var(--surface-2); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); z-index: -1; }
.ind-row:hover { padding-inline: 24px; }
.ind-row:hover::before { transform: scaleY(1); }
.ind-row .idx { font-family: var(--font-mono); color: var(--slate-light); font-size: 14px; }
.ind-row h3 { font-size: clamp(1.3rem,2.4vw,1.9rem); }
.ind-row p { color: var(--slate); font-size: .98rem; }
.ind-row .go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s, color .4s, transform .4s var(--ease-out); }
.ind-row:hover .go { background: var(--orange); color: #fff; border-color: var(--orange); transform: rotate(-45deg); }
@media (max-width: 820px){ .ind-row { grid-template-columns: 40px 1fr auto; } .ind-row p { display: none; } }

/* ----------  CTA  ---------- */
.cta { background: var(--navy-deep); color: #fff; text-align: center; overflow: hidden; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 120%, rgba(22,104,227,.4), transparent 60%), radial-gradient(50% 80% at 50% -20%, rgba(247,148,30,.22), transparent 60%); }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem,6vw,5rem); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 22px auto 36px; color: rgba(255,255,255,.78); max-width: 46ch; font-size: 1.1rem; }

/* ----------  FOOTER  ---------- */
.footer { background: #03101f; color: rgba(255,255,255,.7); padding-top: clamp(60px,8vw,100px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.footer .fbrand-img { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.footer .blurb { max-width: 34ch; font-size: .96rem; }
.footer a:hover { color: var(--orange); }
.footer ul li { margin-bottom: 12px; font-size: .96rem; }
.offices { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding-block: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.office .city { color: #fff; font-weight: 700; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.office .city i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); }
.office address { font-style: normal; font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.office .tel { color: #fff; margin-top: 8px; display: inline-block; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; flex-wrap: wrap; font-size: .88rem; }
.fsocial { display: flex; gap: 14px; }
.fsocial a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; transition: background .35s, border-color .35s, transform .35s var(--ease-out); }
.fsocial a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-3px); }
.fsocial a svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 920px){ .footer-top { grid-template-columns: 1fr 1fr; } .offices { grid-template-columns: 1fr; } }

/* ----------  MOBILE NAV  ---------- */
@media (max-width: 880px){
  .nav, .header .btn { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; }
  .nav-toggle i { width: 24px; height: 2px; background: #fff; transition: .3s; }
  .header.scrolled .nav-toggle i { background: var(--ink); }
  .mobile-menu { position: fixed; inset: 0; z-index: 880; background: var(--navy-deep); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter); transform: translateY(-100%); transition: transform .55s var(--ease-out); }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 2rem; padding-block: 8px; }
  .mobile-menu .btn { margin-top: 24px; align-self: flex-start; display: inline-flex; }
}
@media (min-width: 881px){ .mobile-menu { display: none; } }

/* progress bar at very top */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--orange)); z-index: 9998; }

/* ----------  HERO SUB (restored)  ---------- */
.hero-sub { margin-top: 20px; max-width: 54ch; font-size: clamp(.95rem,1.3vw,1.15rem); color: rgba(255,255,255,.82); }

/* ----------  SERVICE CARD TAGS  ---------- */
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svc-tags span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--slate-light); text-transform: uppercase; }
.svc .more { background: none; border: none; padding: 0; font-weight: inherit; }

/* ----------  MODAL  ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(5,15,31,.66);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility .35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 44px);
  transform: translateY(26px);
  transition: transform .45s var(--ease-out);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: sticky; top: 0; margin-left: auto;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  font-size: 24px; line-height: 1; z-index: 2;
  transition: background .3s, transform .3s var(--ease-out);
}
.modal-close:hover { background: var(--orange); color: #fff; transform: rotate(90deg); }
.modal-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.modal h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 12px 0 18px; line-height: 1.15; }
.modal h4 { font-size: 1.08rem; margin: 22px 0 8px; }
.modal p { color: var(--slate); margin: 12px 0; font-size: .98rem; }
.modal ul { margin: 12px 0 12px 20px; color: var(--slate); font-size: .98rem; }
.modal ul li { margin-bottom: 8px; list-style: disc; }
.modal-hero {
  width: 100%; height: clamp(180px, 32vw, 280px);
  object-fit: cover; border-radius: 12px;
  margin: 6px 0 14px; background: var(--surface-3);
}
.modal-hero.contain { object-fit: contain; padding: 28px; }

/* ----------  PRODUCT LOGO CHIPS (marquee)  ---------- */
.marquee-row .chip {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px;
  padding: 0 26px; height: 80px; min-width: 160px;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.5);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.marquee-row .chip img {
  max-height: 46px; max-width: 160px;
  width: auto; height: auto; object-fit: contain; display: block;
}
.marquee-row .chip:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.55);
}

/* ----------  AWARD BADGES (in colour)  ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 40px; align-items: stretch; }
.badge-pill {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 14px;
  padding: 22px 30px; min-width: 150px;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.5);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.badge-pill img {
  height: 70px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
  filter: none; opacity: 1;        /* override the old monochrome treatment */
}
.badge-pill:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.55);
}

/* ----------  WHATSAPP BUTTON  ---------- */
.btn.whatsapp { --bg: #25d366; --fg: #fff; }
.btn.whatsapp::before { background: #1ebe5d; }
.btn.whatsapp svg { vertical-align: middle; margin-right: 2px; }

/* Square modal images — fill width, white backing, no gray bars */
.modal-hero {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #ffffff;
}


/* EkkoSense logo in its popup */
.modal-hero.ekko-logo {
  object-fit: contain;
  background: #ffffff;
  height: 220px;
  padding: 40px;
}

/* Keep hero content clear of the header when translated text is taller */
.hero-inner {
  top: clamp(96px, 13vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 3.7rem); }

/* Keep the 3 stats on ONE line in every language */
.hero-meta { flex-wrap: nowrap; gap: clamp(16px, 3vw, 44px); }
.hero-meta .l { white-space: normal; }

/* Offices: desktop = Singapore on top, 3 below; mobile = left-aligned single column */
@media (min-width: 881px) {
  .offices { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
  .offices .office { text-align: center; max-width: 320px; }
  .offices .office .city { justify-content: center; }
  .offices .office:first-child { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .offices { display: block; }
  .offices .office { text-align: left !important; max-width: 100% !important; margin-bottom: 28px; }
  .offices .office .city { justify-content: flex-start !important; }
}

/* Uniform award badge sizes */
.badge-pill { width: 200px; height: 120px; }
.badge-pill img { max-height: 80px; max-width: 150px; width: auto; height: auto; object-fit: contain; }

/* Mobile language list (shown inside hamburger menu) */
.lang-picker-mobile { display: none; }            /* hidden on desktop */
.lang-menu-mobile { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.lang-menu-mobile button {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; cursor: pointer;
  padding: 12px 4px; color: inherit; font-size: 16px; text-align: left;
}
.lang-menu-mobile button img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; }

@media (max-width: 880px) {
  .lang-picker:not(.lang-picker-mobile) { display: none; }  /* hide the top-bar dropdown */
  .lang-picker-mobile { display: block; }                   /* show the list in the menu */
}