/* =====================================================
   ACE ENCODERS GLOBAL — V2 "Dark Kinetic Tech"
   Style: Kinetic dark + glass + aurora glow
   Type: Space Grotesk / DM Sans (skill recommendation)
   ===================================================== */

:root {
  --bg: #010103;
  --bg-2: #05060C;
  --bg-3: #0A0C15;
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .05);
  --stroke: rgba(255, 255, 255, .08);
  --stroke-hot: rgba(255, 71, 87, .55);

  --red: #FF4757;
  --red-deep: #D94141;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --green: #2EE6A8;

  --text: #EEF0F6;
  --text-body: #A7ACBD;
  --text-dim: #61667A;

  --grad-hot: linear-gradient(90deg, #FF4757 0%, #B44CF0 100%);
  --grad-hot-135: linear-gradient(135deg, #FF4757 0%, #8B5CF6 100%);
  --grad-text: linear-gradient(92deg, #FF6B7A 0%, #C084FC 55%, #67E8F9 100%);

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --sect: clamp(5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.08; letter-spacing: -0.02em; }
address { font-style: normal; }
::selection { background: rgba(255, 71, 87, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: var(--sect) 0; position: relative; }

/* ---------- Noise + aurora backdrop ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .16; }
.aurora-1 { width: 640px; height: 640px; background: var(--red); top: -12%; left: -8%; animation: drift1 26s ease-in-out infinite alternate; }
.aurora-2 { width: 560px; height: 560px; background: var(--violet); top: 30%; right: -12%; animation: drift2 32s ease-in-out infinite alternate; }
.aurora-3 { width: 480px; height: 480px; background: var(--cyan); bottom: -14%; left: 28%; opacity: .1; animation: drift1 38s 4s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -9vh) scale(.9); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 80%);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; }
.pre-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: .35em; margin-bottom: 1.4rem; }
.pre-logo em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pre-bar { width: 220px; height: 2px; background: var(--stroke); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.pre-bar-fill { height: 100%; width: 0; background: var(--grad-hot); }
.pre-pct { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); margin-top: .8rem; letter-spacing: .2em; }

/* ---------- Scroll progress + cursor ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200; transform-origin: left; transform: scaleX(0); background: var(--grad-hot); }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--red); }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid rgba(255, 71, 87, .55); transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease; }
.cursor-ring.hot { width: 64px; height: 64px; border-color: rgba(255,255,255,.25); background: rgba(255, 71, 87, .12); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1.1rem 0; transition: padding .3s ease, background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { padding: .6rem 0; background: rgba(5, 6, 10, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--stroke); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--grad-hot-135); border-radius: 11px; padding: 7px; color: #fff; box-shadow: 0 0 24px rgba(255, 71, 87, .45); flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: .05em; color: var(--text); display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: .55rem; letter-spacing: .34em; color: var(--text-dim); font-weight: 500; }

.main-nav { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); }
.main-nav a { font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--text-body); position: relative; padding: .3rem 0; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--grad-hot); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; border-radius: 2px; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: .85rem 1.7rem; border-radius: 100px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease; cursor: pointer; }
.btn-primary { background: var(--grad-hot); color: #fff; box-shadow: 0 8px 32px rgba(255, 71, 87, .35); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-110%); transition: transform .6s ease; }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:hover { box-shadow: 0 12px 44px rgba(255, 71, 87, .5); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--stroke); color: var(--text); background: var(--surface); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline:hover { border-color: var(--stroke-hot); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 71, 87, .18); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .84rem; }

/* ---------- Kicker / titles ---------- */
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2rem; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }
.section-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1.3rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { max-width: 620px; font-size: 1.06rem; }
.section-head { margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 0; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 980px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-body); border: 1px solid var(--stroke); background: var(--surface); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 100px; padding: .6rem 1.3rem; margin-bottom: 2rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-title { font-size: clamp(2.9rem, 8.4vw, 6.4rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 1.6rem; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-title em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* char-split spans don't inherit the parent's clipped background — re-apply per char */
.hero-title em .char { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 660px; margin: 0 auto 2.4rem; font-size: 1.13rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }

.hero-terminal { max-width: 640px; margin: 0 auto; background: rgba(11, 13, 21, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--stroke); border-radius: var(--radius); text-align: left; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; border-bottom: 1px solid var(--stroke); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stroke); }
.term-dot:nth-child(1) { background: #FF5F57; } .term-dot:nth-child(2) { background: #FEBC2E; } .term-dot:nth-child(3) { background: #28C840; }
.term-title { font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); margin-left: auto; letter-spacing: .1em; }
.term-body { font-family: var(--font-mono); font-size: .82rem; padding: 1.1rem 1.2rem; line-height: 1.9; min-height: 130px; }
.term-body .ln { display: block; }
.t-p { color: var(--cyan); } .t-c { color: var(--text); } .t-ok { color: var(--green); } .t-dim { color: var(--text-dim); }
.term-caret { display: inline-block; width: 8px; height: 15px; background: var(--red); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); padding: 1.15rem 0; overflow: hidden; background: rgba(255,255,255,.015); margin-top: 5rem; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-size: .95rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee-track span::after { content: "✦"; color: var(--red); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-2); padding: 2.2rem 1.4rem; text-align: center; transition: background .3s ease; }
.stat:hover { background: var(--bg-3); }
.stat strong { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--text); display: block; margin-bottom: .4rem; }
.stat strong .grad-text { font-weight: 700; }
.stat-label { font-size: .8rem; color: var(--text-dim); line-height: 1.5; display: block; max-width: 170px; margin: 0 auto; }

/* ---------- Glass cards / tilt ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: 2.2rem 2rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; overflow: hidden; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 71, 87, .12), transparent 45%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--stroke-hot); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 71, 87, .08); }
.card h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.card > p { font-size: .95rem; }

.card-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; padding: 13px; margin-bottom: 1.4rem; background: linear-gradient(135deg, rgba(255,71,87,.16), rgba(139,92,246,.16)); border: 1px solid var(--stroke-hot); color: var(--red); transition: transform .3s ease; }
.card:hover .card-icon { transform: translateZ(30px) scale(1.06); }
.card-num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim); letter-spacing: .15em; }

/* ---------- Services grid (home preview + services page) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sc-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem; }
.card .link-more { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-size: .87rem; font-weight: 600; color: var(--text); margin-top: 1.2rem; transition: gap .25s ease, color .25s ease; }
.card .link-more:hover { gap: .8rem; color: var(--red); }

/* ---------- Feature split rows (services page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--stroke); }
.feature-row:last-of-type { border-bottom: 0; }
.feature-row.flip .fr-visual { order: 2; }
.fr-copy h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.fr-copy .sc-tag { margin-bottom: 1rem; }
.fr-copy p { margin-bottom: 1.2rem; }
.fr-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem; }
.fr-list li { position: relative; padding-left: 1.5rem; font-size: .9rem; }
.fr-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 3px; background: var(--grad-hot); }
.fr-visual { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: var(--bg-2); min-height: 300px; display: grid; place-items: center; overflow: hidden; }
.fr-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,71,87,.14), transparent 55%), radial-gradient(circle at 75% 80%, rgba(139,92,246,.14), transparent 55%); }
.fr-glyph { width: 120px; height: 120px; color: var(--red); position: relative; filter: drop-shadow(0 0 24px rgba(255,71,87,.45)); }

/* ---------- Process ---------- */
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; counter-reset: step; }
.process-step { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 1.5rem 1.2rem; position: relative; transition: transform .25s ease, border-color .25s ease; }
.process-step:hover { transform: translateY(-8px); border-color: var(--stroke-hot); }
.ps-num { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; color: var(--red); display: block; margin-bottom: .7rem; }
.process-step h3 { font-size: 1rem; margin-bottom: .4rem; }
.process-step p { font-size: .8rem; line-height: 1.55; }

/* ---------- Edge / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.3rem; }
.bento .card:nth-child(1) { grid-column: span 4; }
.bento .card:nth-child(2) { grid-column: span 2; }
.bento .card:nth-child(3) { grid-column: span 2; }
.bento .card:nth-child(4) { grid-column: span 2; }
.bento .card:nth-child(5) { grid-column: span 2; }
.bento .card:nth-child(6) { grid-column: span 6; text-align: center; background: linear-gradient(135deg, rgba(255,71,87,.09), rgba(139,92,246,.09)); }
.bento .card:nth-child(6) p { max-width: 720px; margin: 0 auto; }

/* ---------- Industries chips ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), var(--violet), transparent); }
.timeline-item { position: relative; padding: 0 0 2.2rem 3rem; }
.tl-marker { position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); box-shadow: 0 0 18px rgba(255, 71, 87, .55); }
.tl-year { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; color: var(--cyan); text-transform: uppercase; }
.timeline-item h3 { font-size: 1.15rem; margin: .25rem 0 .4rem; }
.timeline-item p { font-size: .93rem; max-width: 620px; }

/* ---------- Founder quote ---------- */
.quote-wrap { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--font-head); font-size: 5rem; line-height: .6; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-quote { font-family: var(--font-head); font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 500; color: var(--text); line-height: 1.4; margin: 1.2rem 0 2rem; letter-spacing: -0.01em; }
.quote-author strong { display: block; font-family: var(--font-head); color: var(--text); }
.quote-author span { font-size: .85rem; color: var(--text-dim); }

/* ---------- Offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.office-card { display: flex; flex-direction: column; gap: .4rem; }
.office-flag { font-size: 1.7rem; margin-bottom: .4rem; }
.office-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.hq-badge { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; color: #fff; background: var(--grad-hot); border-radius: 5px; padding: .2rem .5rem; }
.office-card address { font-size: .86rem; }
.office-card a { font-size: .86rem; font-weight: 600; color: var(--text-body); transition: color .2s ease; }
.office-card a:hover { color: var(--red); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); }
.form-field { margin-bottom: 1.3rem; }
.form-field label { display: block; font-family: var(--font-head); font-size: .84rem; font-weight: 600; color: var(--text); margin-bottom: .45rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px;
  padding: .9rem 1.1rem; color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 71, 87, .15); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--text-dim); margin-top: .8rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--stroke); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(255,71,87,.16), transparent 60%); top: -40%; left: 50%; transform: translateX(-50%); }
.cta-title { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 700; margin-bottom: 1.3rem; position: relative; }
.cta-band .section-sub { margin: 0 auto 2.4rem; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--stroke); background: rgba(11, 13, 21, .6); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { font-size: .9rem; margin-top: 1.2rem; max-width: 300px; color: var(--text-dim); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav h4 { color: var(--text); font-size: .92rem; margin-bottom: 1rem; }
.footer-nav a { display: block; font-size: .87rem; padding: .28rem 0; color: var(--text-dim); transition: color .2s ease, transform .2s ease; }
.footer-nav a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.4rem 0; border-top: 1px solid var(--stroke); font-size: .8rem; color: var(--text-dim); }

/* ---------- Page transition overlay ---------- */
.page-wipe { position: fixed; inset: 0; z-index: 400; background: var(--grad-hot-135); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 11rem 0 4.5rem; position: relative; overflow: hidden; }
.page-hero .section-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.breadcrumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { margin: 0 .6rem; color: var(--red); }

/* ---------- Reveal helpers ---------- */
.reveal, .stagger-group > * { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 1px solid var(--stroke); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .bento .card { grid-column: span 3 !important; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .fr-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { position: fixed; top: 62px; left: 0; right: 0; background: rgba(5, 6, 10, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); flex-direction: column; padding: 1.6rem 2rem 2.2rem; gap: 1.1rem; border-bottom: 1px solid var(--stroke); transform: translateY(-130%); transition: transform .35s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .services-grid, .process-steps, .industry-grid, .office-grid { grid-template-columns: 1fr; }
  .bento .card { grid-column: span 6 !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .fr-list { grid-template-columns: 1fr; }
}

/* =====================================================
   SCI-FI HUD LAYER
   ===================================================== */

/* Global scanline texture + drifting scan beam */
.scanlines { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.scan-beam { position: absolute; left: 0; right: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(34,211,238,.05), rgba(34,211,238,.12), rgba(34,211,238,.05), transparent); animation: scanmove 7s linear infinite; pointer-events: none; }
@keyframes scanmove { 0% { top: -140px; } 100% { top: 110%; } }

/* Perspective grid floor */
.grid-floor { position: absolute; left: -10%; right: -10%; bottom: -2%; height: 42%; pointer-events: none; perspective: 480px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
.grid-floor::before { content: ""; position: absolute; inset: -100% -30% 0; background-image: linear-gradient(rgba(255,71,87,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,71,87,.16) 1px, transparent 1px); background-size: 64px 64px; transform: rotateX(62deg); transform-origin: bottom; animation: floorscroll 3.2s linear infinite; }
@keyframes floorscroll { from { background-position: 0 0; } to { background-position: 0 64px; } }

/* HUD corner brackets */
.hud-corner { position: absolute; width: 34px; height: 34px; border: 1.5px solid rgba(34,211,238,.45); pointer-events: none; z-index: 3; }
.hud-corner.tl { top: 92px; left: 4vw; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 92px; right: 4vw; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 4vh; left: 4vw; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 4vh; right: 4vw; border-left: 0; border-top: 0; }
.hud-corner::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--cyan); opacity: .7; animation: blinkdot 2.4s ease-in-out infinite; }
.hud-corner.tl::after { top: -1px; left: -1px; } .hud-corner.tr::after { top: -1px; right: -1px; }
.hud-corner.bl::after { bottom: -1px; left: -1px; } .hud-corner.br::after { bottom: -1px; right: -1px; }
@keyframes blinkdot { 0%, 100% { opacity: .7; } 50% { opacity: .15; } }

/* Rotating orbital rings behind hero title */
.hero-rings { position: absolute; top: 46%; left: 50%; width: min(760px, 86vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,71,87,.16); animation: spin 40s linear infinite; }
.ring-2 { inset: 9%; border-color: rgba(139,92,246,.14); border-style: solid; border-top-color: rgba(139,92,246,.5); animation: spin 24s linear infinite reverse; }
.ring-3 { inset: 20%; border-color: rgba(34,211,238,.12); animation-duration: 58s; }
.ring .sat { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.ring-2 .sat { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

/* HUD telemetry readout */
.hud-readout { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--text-dim); margin-top: 2.2rem; text-transform: uppercase; }
.hud-readout span b { color: var(--cyan); font-weight: 500; }
.hud-readout span i { font-style: normal; color: var(--green); }

/* Glitch effect on gradient word */
.glitch-wrap { position: relative; display: inline-block; }
.glitch-wrap::before, .glitch-wrap::after { content: attr(data-text); position: absolute; inset: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; pointer-events: none; }
.glitch-wrap::before { animation: glitchA 6s 3s steps(1) infinite; }
.glitch-wrap::after { animation: glitchB 6s 3s steps(1) infinite; }
@keyframes glitchA { 0%, 93%, 100% { opacity: 0; } 94% { opacity: .8; transform: translate(-6px, -3px); clip-path: inset(10% 0 55% 0); } 96% { opacity: .8; transform: translate(5px, 2px); clip-path: inset(60% 0 8% 0); } 98% { opacity: 0; } }
@keyframes glitchB { 0%, 93%, 100% { opacity: 0; } 95% { opacity: .7; transform: translate(6px, 3px); clip-path: inset(40% 0 30% 0); } 97% { opacity: .7; transform: translate(-4px, -2px); clip-path: inset(75% 0 2% 0); } 99% { opacity: 0; } }

/* Vertical data streams */
.data-stream { position: absolute; top: 0; bottom: 0; width: 14px; overflow: hidden; font-family: var(--font-mono); font-size: .6rem; line-height: 1.6; color: rgba(34,211,238,.16); pointer-events: none; white-space: pre; }
.data-stream span { display: block; animation: streamfall linear infinite; }
@keyframes streamfall { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* Decode/scramble target */
.decode { display: inline-block; }

/* Card corner accents on hover */
.card::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-top: 1.5px solid transparent; border-right: 1.5px solid transparent; transition: border-color .3s ease; pointer-events: none; }
.card:hover::after { border-color: rgba(34,211,238,.6); }

/* Page-hero HUD variant */
.page-hero .hud-corner.tl, .page-hero .hud-corner.tr { top: 110px; }
.page-hero .scan-beam { animation-duration: 9s; }
.hud-tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .3em; color: var(--cyan); text-transform: uppercase; opacity: .75; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .scan-beam, .grid-floor::before, .ring, .glitch-wrap::before, .glitch-wrap::after, .data-stream span { animation: none !important; }
}
