:root {
  --bg: #040816;
  --bg-2: #0a1128;
  --ink: #f4f6fb;
  --muted: #8a93ad;
  --line: rgba(255, 255, 255, .12);
  --accent: #4f7cff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--accent); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s, padding .4s, transform .5s var(--ease);
}
.nav.solid { background: rgba(4, 8, 22, .82); backdrop-filter: blur(12px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .3s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-cta { font-size: 14px; font-weight: 600; padding: 10px 20px; border: 1px solid var(--line); border-radius: 99px; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 80px;
  position: relative;
  background: radial-gradient(60% 50% at 80% 20%, rgba(79, 124, 255, .18), transparent 70%);
}
.hero-kicker { color: var(--muted); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.hero-title, .cta-title {
  font-size: clamp(44px, 9vw, 150px);
  line-height: .95; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase;
}
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.in .line > span, .hero.in .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .12s; }
.line:nth-child(3) > span { transition-delay: .24s; }

.scroll-hint {
  position: absolute; left: var(--pad); bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* Sections */
.section { padding: clamp(100px, 16vh, 180px) var(--pad); position: relative; }
.tag {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 40px;
}
.tag span { color: var(--accent); font-weight: 700; }
.tag::after { content: ''; flex: 0 0 60px; height: 1px; background: var(--line); }
.sec-title { font-size: clamp(32px, 5vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 64px; }

/* Word-by-word statement (lights up as you scroll) */
.statement { font-size: clamp(26px, 4vw, 58px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; max-width: 22ch; }
.statement .w { opacity: .14; transition: opacity .3s; }
.statement .w.lit { opacity: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Services: sticky stacking cards */
.stack { display: grid; gap: 28px; }
.card {
  position: sticky; top: calc(110px + var(--i) * 22px);
  display: grid; grid-template-columns: 160px 1fr; gap: 40px;
  min-height: 62vh; padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(160deg, var(--bg-2), #070d20);
  border: 1px solid var(--line); border-radius: 24px;
  transform-origin: center top;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
}
.card-num { font-size: clamp(80px, 12vw, 180px); font-weight: 800; line-height: .85; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.card h3 { font-size: clamp(30px, 4vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 16px; }
.card-lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 22px); max-width: 32ch; margin-bottom: 36px; }
.card ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 560px; }
.card li { padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { counter-increment: s; padding-top: 28px; border-top: 1px solid var(--line); position: relative; }
.step::before { content: '0' counter(s); display: block; color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.step::after { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--ink); transition: width 1.4s var(--ease) .3s; }
.step.in::after { width: 100%; }
.step b { display: block; font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: var(--muted); }
.step:nth-child(2) { transition-delay: .1s; } .step:nth-child(3) { transition-delay: .2s; } .step:nth-child(4) { transition-delay: .3s; }

/* Numbers */
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.num b { display: block; font-size: clamp(56px, 8vw, 120px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.num span { color: var(--muted); }

/* Logos marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-tile { flex: 0 0 auto; width: 200px; height: 116px; display: grid; place-items: center; padding: 20px 24px; background: #fff; border-radius: 16px; transition: transform .5s var(--ease); }
.logo-tile.dark { background: #111a36; border: 1px solid var(--line); }
.logo-tile img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px); }
.marquee + .marquee { margin-top: 20px; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 55s; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Where */
.where-lead { color: var(--muted); font-size: 20px; margin-bottom: 24px; }
.places { list-style: none; }
.places li {
  font-size: clamp(34px, 6.5vw, 100px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; text-transform: uppercase;
  color: rgba(255, 255, 255, .1); transition: color .6s var(--ease);
}
.places li.lit { color: var(--ink); }

/* Contact */
.contact { min-height: 90vh; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(50% 60% at 20% 80%, rgba(79, 124, 255, .16), transparent 70%); }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.btn { display: inline-flex; align-items: center; padding: 18px 30px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 700; transition: transform .4s var(--ease), background .3s; }
.btn:hover { transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a:hover { color: var(--ink); }

.progress { position: fixed; inset: auto 0 0; height: 2px; z-index: 30; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad); transition: transform 1.1s var(--ease) .1s; }
.loader.done { transform: translateY(-100%); }
.loader-word { overflow: hidden; font-size: clamp(36px, 7vw, 110px); font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.loader-word span { display: inline-block; animation: up 1s var(--ease) both; }
.loader-count { font-size: clamp(36px, 7vw, 110px); font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
@keyframes up { from { transform: translateY(105%); } }
body.loading { overflow: hidden; }

/* Custom cursor (mouse devices only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); mix-blend-mode: difference; pointer-events: none; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none) { .cursor { display: none; } }

/* "You are here" section indicator */
.where-now { position: fixed; left: var(--pad); bottom: 26px; z-index: 15; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .5s; pointer-events: none; }
.where-now.on { opacity: 1; }
.where-now span { color: var(--accent); font-weight: 700; }
.where-now b { font-weight: 600; color: var(--ink); display: inline-block; transition: transform .5s var(--ease), opacity .5s; }
.where-now b.swap { transform: translateY(8px); opacity: 0; }

/* Hero background */
.hero { overflow: hidden; }
.hero > *:not(.hero-bg):not(.hero-ghost) { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: float 14s ease-in-out infinite alternate; }
.o1 { width: 46vw; height: 46vw; right: -10vw; top: -14vw; background: #2a4bd7; }
.o2 { width: 30vw; height: 30vw; left: 30vw; bottom: -18vw; background: #0f2a7a; animation-delay: -6s; }
@keyframes float { to { transform: translate(-6vw, 5vw) scale(1.12); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; opacity: .35; mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent); }
.hero-ghost { position: absolute; z-index: 1; right: -2vw; bottom: 8vh; font-size: 22vw; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); white-space: nowrap; pointer-events: none; will-change: transform; }

/* Card extras */
.card { overflow: hidden; }
.card-art { position: absolute; right: -4%; bottom: -12%; width: clamp(200px, 30vw, 420px); height: auto; color: rgba(79, 124, 255, .22); pointer-events: none; }
.card-body { position: relative; }
.card-link { display: inline-flex; gap: 10px; margin-top: 32px; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s, gap .3s; }
.card-link:hover { border-color: var(--ink); gap: 16px; }

/* Quote form */
.quote { margin-top: 48px; max-width: 980px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: rgba(10, 17, 40, .6); backdrop-filter: blur(6px); }
.quote-lead { color: var(--muted); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.quote-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; }
.quote-row input { min-width: 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; }
.quote-row input::placeholder { color: var(--muted); }
.quote-row input:focus { outline: none; border-color: var(--accent); }
.quote .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-content: center; }
.contact-row { margin-top: 28px; }

/* Mobile */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .quote-row { grid-template-columns: 1fr; }
  .where-now { display: none; }
  .card { grid-template-columns: 1fr; gap: 10px; top: calc(80px + var(--i) * 14px); min-height: auto; }
  .steps, .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .card ul { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .logo-tile { width: 150px; height: 90px; }
  .nav-cta { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .line > span { opacity: 1; transform: none; }
  .loader { display: none; }
  .statement .w, .places li { opacity: 1; color: var(--ink); }
}

.quote-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.quote-msg { min-height: 1.4em; margin-top: 12px; color: var(--muted); }
.quote-msg.ok { color: #4ade80; } .quote-msg.err { color: #f87171; }
.quote-wa { margin-top: 4px; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 760px) { .quote-row-3 { grid-template-columns: 1fr; } .quote-row input[style] { grid-column: auto !important; } }

/* Simple loader */
.loader { flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .5s ease; }
.loader.done { transform: none; opacity: 0; pointer-events: none; }
.loader img { height: 34px; width: auto; }
.loader-bar { display: block; width: 140px; height: 2px; background: var(--line); overflow: hidden; position: relative; }
.loader-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: lbar 1s ease-in-out infinite; }
@keyframes lbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
/* Language picker (Google Translate underneath, its own bar hidden) */
.lang { margin-left: auto; margin-right: 12px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.lang option { color: #040816; }
.skiptranslate, .goog-te-banner-frame, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }
font { background: none !important; box-shadow: none !important; }

.hero-sub { position: relative; z-index: 2; max-width: 640px; margin-top: 28px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; }
.hero-sub a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.hero-sub a:hover { color: var(--accent); }
.scroll-hint { display: none; }
