/* ================================================================
   Conecta VTX — Premium design system v2
================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:root {
  --bg: #fbfaf7;
  --bg-2: #f3f1ec;
  --ink: #0d0d10;
  --ink-2: #2a2a2e;
  --muted: #6b6b72;
  --line: #e6e3dc;
  --line-2: #d8d4cb;
  --accent: #1b3a8a;
  --accent-2: #3b6fd9;
  --dark: #0a0a0c;
  --dark-2: #131318;
  --on-dark: #f5f3ee;
  --on-dark-mut: #8c8c92;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
  --shadow-sm: 0 1px 2px rgba(15,15,20,.05), 0 4px 14px -8px rgba(15,15,20,.12);
  --shadow-md: 0 10px 40px -18px rgba(15,15,20,.25), 0 2px 6px rgba(15,15,20,.04);
  --shadow-xl: 0 40px 100px -30px rgba(10,10,20,.35), 0 8px 30px -10px rgba(10,10,20,.15);
  --ease: cubic-bezier(.2,.7,.2,1);
}

h1,h2,h3 { font-family: 'Fraunces', 'Times New Roman', serif; font-weight: 400; letter-spacing: -.02em; margin: 0; color: var(--ink); }
em { font-style: italic; font-weight: 400; color: var(--accent); }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(27,58,138,.1); }
.eyebrow--light { color: rgba(255,255,255,.65); }
.eyebrow--light .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }

/* grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* cursor spotlight */
.cursor-spot {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; pointer-events: none;
  border-radius: 50%; z-index: 1; opacity: 0;
  background: radial-gradient(circle, rgba(59,111,217,.16) 0%, transparent 60%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .4s var(--ease);
  mix-blend-mode: multiply;
}
@media (hover: hover) and (pointer: fine) { .cursor-spot.is-on { opacity: 1; } }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--accent); background: linear-gradient(180deg, #fff, #f5f2eb); }
.brand__name span { color: var(--accent); font-style: italic; }
.brand--light { color: var(--on-dark); }
.brand--light .brand__mark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.brand--light .brand__name span { color: #9bb6ff; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 8px 0; transition: color .25s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__mobileCta { display: none; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 16px; } .nav__burger span:nth-child(2) { top: 22px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    vertical-align: middle;
  }
  .nav__burger span {
    display: block;
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: .3s var(--ease);
  }
  .nav__burger span:nth-child(1) { top: 14px; }
  .nav__burger span:nth-child(2) { top: 23px; }
  .nav__mobileCta { display: none !important; }
  .nav.is-open .nav__mobileCta { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 12px 28px 24px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(15,15,20,.45); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(15,15,20,.55); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--link { padding: 14px 6px; color: var(--ink-2); }
.btn--link:hover { color: var(--ink); }
.btn--lg { padding: 18px 28px; font-size: 15px; }

/* ============ HERO ============ */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb--a { width: 480px; height: 480px; top: -120px; left: -120px; background: radial-gradient(circle, #c9d6ff 0%, transparent 70%); }
.orb--b { width: 520px; height: 520px; bottom: -180px; right: -160px; background: radial-gradient(circle, #f3e8d4 0%, transparent 70%); animation-delay: -6s; }
.orb--c { width: 600px; height: 600px; top: -200px; right: -200px; background: radial-gradient(circle, rgba(59,111,217,.35) 0%, transparent 70%); }
.orb--d { width: 700px; height: 700px; bottom: -300px; left: -200px; background: radial-gradient(circle, rgba(155,182,255,.18) 0%, transparent 70%); }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.05); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,15,20,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,15,20,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__title { font-size: clamp(40px, 7vw, 92px); line-height: 1.02; margin: 22px auto 22px; max-width: 980px; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 560px; margin: 0 auto; }
.hero__cta { margin-top: 36px; display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }

.hero__mock { position: relative; margin: 80px auto 0; max-width: 1080px; transform-style: preserve-3d; }
.hero__mock > img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow-xl);
}
.hero__mockShadow {
  position: absolute; left: 5%; right: 5%; bottom: -40px; height: 80px;
  background: radial-gradient(ellipse at center, rgba(15,15,20,.35), transparent 70%);
  filter: blur(20px); z-index: -1; pointer-events: none;
}

.float-chip {
  position: absolute; z-index: 2; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  animation: bob 6s ease-in-out infinite;
}
.float-chip__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.float-chip__value { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink); }
.float-chip__value small { font-size: 13px; color: var(--muted); }
.float-chip--a { top: 20%; left: -30px; animation-delay: -1s; }
.float-chip--b { bottom: 18%; right: -30px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 700px) { .float-chip--a, .float-chip--b { display: none; } }

/* hero project marquee */
.hero__projects { margin-top: 100px; position: relative; z-index: 2; }
.proj-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 12px 0;
}
.proj-marquee__track {
  display: inline-flex; gap: 22px; align-items: stretch;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}
.proj-thumb {
  position: relative; flex: 0 0 auto;
  width: 320px; height: 200px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.proj-thumb span {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.proj-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.proj-thumb:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.proj-thumb:hover img { transform: scale(1.06); }
.proj-marquee:hover .proj-marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 140px 0; position: relative; }
.section--soft { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .section__title, .section--dark h3 { color: var(--on-dark); }
.section--dark .card__meta span { color: var(--on-dark-mut); }
.section--dark .eyebrow { color: rgba(255,255,255,.55); }
.section--dark .eyebrow .dot { background: #9bb6ff; box-shadow: 0 0 0 4px rgba(155,182,255,.15); }

@media (max-width: 700px) { .section { padding: 90px 0; } }

.section__head { max-width: 760px; margin: 0 auto 80px; text-align: center; }
.section__head--split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; text-align: left;
  max-width: none; align-items: end;
}
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; gap: 24px; } }
.section__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; margin: 18px 0 22px; }
.section__head__meta { display: flex; gap: 50px; justify-content: flex-end; }
@media (max-width: 900px) { .section__head__meta { justify-content: flex-start; } }
.counter { display: flex; flex-direction: column; gap: 4px; }
.counter > span:first-child, .counter > span[data-count] { font-family: 'Fraunces', serif; font-size: clamp(40px, 5vw, 64px); color: #fff; line-height: 1; }
.counter small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); }

/* ============ SERVICES ============ */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--bg); padding: 38px 32px; min-height: 220px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .35s var(--ease);
  position: relative;
}
.service:hover { background: #fff; }
.service__num { font-family: 'Fraunces', serif; font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.service h3 { font-size: 22px; line-height: 1.2; }
.service p { color: var(--muted); font-size: 14.5px; }
.service--accent { background: var(--ink); color: var(--on-dark); }
.service--accent h3 { color: #fff; }
.service--accent p { color: rgba(255,255,255,.7); }
.service--accent .service__num { color: #9bb6ff; }
.service--accent:hover { background: var(--ink); }

/* ============ PORTFOLIO ============ */
.portfolio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  grid-auto-flow: dense;
}
.portfolio .card--lg { grid-column: span 2; }
@media (max-width: 1000px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .portfolio .card--lg { grid-column: span 2; }
}
@media (max-width: 700px) {
  .portfolio { grid-template-columns: 1fr; }
  .portfolio .card--lg { grid-column: auto; }
}

.card {
  background: #15151a; border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(155,182,255,.35); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0a0c; }
.card--lg .card__media { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); filter: brightness(.9); }
.card__overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, transparent, rgba(10,10,15,.55));
  opacity: 0; transition: opacity .4s var(--ease);
}
.card__overlay span {
  font-family: 'Fraunces', serif; font-size: 22px; font-style: italic; color: #fff;
  letter-spacing: -.01em;
  padding: 12px 24px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  backdrop-filter: blur(8px); background: rgba(255,255,255,.06);
  transform: translateY(8px); transition: transform .5s var(--ease);
}
.card:hover .card__overlay { opacity: 1; }
.card:hover .card__overlay span { transform: translateY(0); }
.card__meta { display: flex; justify-content: space-between; padding: 22px 26px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); }
.card__title { font-size: clamp(18px, 1.4vw, 24px); padding: 4px 26px 28px; line-height: 1.25; color: var(--on-dark); }

/* ============ FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 32px 4px; border-top: 1px solid var(--line); transition: border-color .3s var(--ease); }
.feature:hover { border-top-color: var(--accent); }
.feature__k { font-family: 'Fraunces', serif; font-size: 13px; color: var(--accent); letter-spacing: .12em; }
.feature h3 { font-size: 22px; margin: 14px 0 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ============ PROCESS ============ */
.process { list-style: none; padding: 0; max-width: 880px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; transition: padding-left .4s var(--ease); }
.step:hover { padding-left: 12px; }
.step:last-child { border-bottom: 0; }
.step__num { font-family: 'Fraunces', serif; font-size: 28px; color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; max-width: 540px; }
@media (max-width: 600px) { .step { grid-template-columns: 60px 1fr; gap: 16px; } }

/* ============ CTA ============ */
.cta { position: relative; padding: 160px 0; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.cta__title { font-size: clamp(40px, 6vw, 80px); line-height: 1.05; color: #fff; margin: 22px 0 22px; }
.cta__title em { color: #9bb6ff; }
.cta__lead { color: rgba(255,255,255,.7); font-size: 18px; max-width: 540px; margin: 0 auto; }
.cta__actions { margin-top: 40px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: #f0eee8; }

/* ============ FOOTER ============ */
.footer { background: var(--dark-2); color: var(--on-dark); padding: 60px 0 40px; }
.footer__row { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.footer__links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .25s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 12px; color: rgba(255,255,255,.4); text-align: right; }
@media (max-width: 800px) {
  .footer__row { grid-template-columns: 1fr; text-align: center; }
  .footer__copy { text-align: center; }
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
