:root {
  --navy: #050d24;
  --navy-soft: #0a1738;
  --blue: #0a6cff;
  --cyan: #00b4ff;
  --ice: #f4f8ff;
  --ink: #0b1630;
  --muted: #51617f;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; max-width: 1980px; margin: 0 auto;}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--xl { width: 48px; height: 48px; color: var(--blue); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.btn:hover { transform: translateY(-3px); }
.btn--sm { padding: 10px 18px; font-size: .8rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 28px rgba(10, 108, 255, .45); }
.btn--primary:hover { box-shadow: 0 12px 36px rgba(10, 108, 255, .7); }
.btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(5, 13, 36, .35); }

.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: box-shadow .3s; }
.header::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #fff; }
.brand, .menu-toggle { position: relative; z-index: 1; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(5, 13, 36, .12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; z-index: 1;}
.nav ul { display: flex; gap: 32px; }
.nav li a { position: relative; display: block; padding: 6px 0; font-size: .85rem; font-weight: 500; transition: color .25s; }
.nav li a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav li a:hover, .nav li a.is-active { color: var(--blue); }
.nav li a:hover::after, .nav li a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--cyan); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; }

.hero { position: relative; min-height: clamp(650px, 50vw, 900px); padding-top: var(--header-h); display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero__inner { position: relative; z-index: 2; padding-block: 48px; }
.hero__text { max-width: 600px; }
.hero__text > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * .13s + .1s); }
.hero h1 { margin: 20px 0 22px; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 700; }
.hero h1 span, .about h2 span, .contact h2 span, .section-head h2 span { color: var(--cyan); }
.hero__lead { max-width: 440px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__photo { position: absolute; right: 5%; bottom: 0; z-index: 1; height: clamp(550px,45vw,700px); object-fit: contain; object-position: bottom right; animation: slide-in 1.1s var(--ease) .25s both; }
.hero__code { position: absolute; z-index: 2; left: 46%; top: 55%; width: 90px; height: 90px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; animation: float 6s ease-in-out infinite; }

.portfolio { padding: 40px 0px; background: linear-gradient(180deg, var(--ice), #fff); overflow: hidden; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p:last-child { color: var(--muted); }
.section-head .eyebrow { color: var(--blue); }
.section-head--light { color: #fff; }
.section-head--light p:last-child { color: rgba(255, 255, 255, .8); }
.section-head--light .eyebrow { color: var(--cyan); }

.carousel { outline-offset: 12px; }
.carousel__stage { position: relative; height: clamp(300px, 36vw, 400px); }
.card { position: absolute; top: 0; left: 50%; width: min(560px, 56%); padding: 18px; border-radius: 20px; background: linear-gradient(160deg, #0b1a40, var(--navy)); color: #fff; border: 1px solid rgba(10, 108, 255, .35); box-shadow: 0 24px 60px rgba(5, 13, 36, .35); cursor: pointer; transition: transform .8s var(--ease), opacity .6s, box-shadow .4s; transform: translateX(-50%) scale(.6); opacity: 0; pointer-events: none; }
.card[data-pos="0"] { transform: translateX(-50%) scale(1); opacity: 1; pointer-events: auto; z-index: 3; cursor: default; box-shadow: 0 30px 80px rgba(10, 108, 255, .35); }
.card[data-pos="-1"] { transform: translateX(-146%) scale(.84); opacity: .85; pointer-events: auto; z-index: 2; }
.card[data-pos="1"] { transform: translateX(46%) scale(.84); opacity: .85; pointer-events: auto; z-index: 2; }
.card[data-pos="-1"]:hover, .card[data-pos="1"]:hover { opacity: 1; box-shadow: 0 24px 70px rgba(10, 108, 255, .45); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; }
.card p { margin-top: 12px; font-size: .85rem; color: rgba(255, 255, 255, .78); }
.card[data-pos="0"] .card__media img { animation: zoom-soft 1.2s var(--ease) both; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.carousel__dots button { width: 34px; height: 6px; padding: 0; border-radius: 6px; background: #c5d3ee; transition: background .3s, width .4s var(--ease); }
.carousel__dots button[aria-current="true"] { width: 56px; background: var(--blue); }

.services { position: relative; padding: 88px 0 96px; background: var(--navy); overflow: hidden; }
.services__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.services .container { position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 22px; text-align: center; color: #fff; border-radius: 14px; background: rgba(10, 23, 56, .72); border: 1px solid rgba(10, 108, 255, .35); backdrop-filter: blur(4px); }
.service.is-visible { transition: opacity .8s var(--ease) var(--d), transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.service.is-visible:hover { transform: translateY(-8px); border-color: var(--cyan); box-shadow: 0 16px 44px rgba(0, 180, 255, .3); }
.service:hover .icon--xl { animation: pop .6s var(--ease); }
.service h3 { font-size: 1.05rem; font-weight: 600; }
.service p { font-size: .85rem; color: rgba(255, 255, 255, .75); }

.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--ice); }
.about { display: flex; align-items: center; gap: 32px; padding: 64px 40px 64px max(24px, calc((100vw - 1200px) / 2)); }
.about__photo { position: relative; flex: 0 0 min(240px, 38%); }
.about__photo::before { content: ""; position: absolute; inset: 40px auto -10px -22px; width: 70%; border-radius: 22px; background: var(--blue); }
.about__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; background: linear-gradient(#cfd8e6, #8b97a8); }
.about h2, .contact h2 { margin: 8px 0 14px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about .eyebrow, .contact .eyebrow { color: var(--blue); font-size: .7rem; }
.about .eyebrow::after, .contact .eyebrow::after { display: none; }
.about p:not(.eyebrow), .contact p:not(.eyebrow) { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: .72rem; color: var(--blue); }
.badges li { display: flex; align-items: center; gap: 6px; }
.contact { position: relative; display: flex; align-items: center; padding: 64px max(24px, calc((100vw - 1200px) / 2)) 64px 48px; border-left: 1px solid #d7e2f5; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.contact__text { position: relative; max-width: 300px; }
.social { display: flex; gap: 14px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; transition: transform .3s var(--ease), background .3s; }
.social a:hover { background: var(--blue); transform: translateY(-5px) rotate(-6deg); }

.footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 28px 0; font-size: .85rem; }
.footer__inner { display: flex; justify-content: center; align-items: center; gap: 28px; }
.footer img { height: 44px; width: auto; }
.footer__tagline {padding: 0px 28px; border-left: 1px solid rgba(255, 255, 255, .25); border-right: 1px solid rgba(255, 255, 255, .25);}
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .5); animation: pulse 2.4s infinite; transition: transform .3s var(--ease); }
.whatsapp:hover { transform: scale(1.1); }
.whatsapp .icon { width: 28px; height: 28px; }

.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.94) translateY(24px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes zoom-soft { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }
@keyframes pop { 50% { transform: scale(1.2) rotate(-6deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

@media (min-width:1980px){
  .about{
    padding-left: 371px;
  }
}

@media (max-width: 1050px){
  .hero__photo {
    right: 2%;
  }
}


@media (max-width: 1025px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .about { padding: 56px 24px; }
  .contact { padding: 56px 24px; border-left: 0; border-top: 1px solid #d7e2f5; min-height: 340px; }
  .hero__code { display: none; }
  .about{
    justify-content: center;
  }
  .about__text{
    max-width: 500px;
  }
}

@media (max-width: 890px) {
  .menu-toggle { display: flex; }
  .nav { position: absolute; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; background: #fff; box-shadow: 0 20px 40px rgba(5, 13, 36, .2); transform: translateY(-120%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; z-index: -1;}
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 8px; }
  .nav .btn { justify-content: center; }
  .hero { align-items: flex-start; min-height: 640px; }
  .hero__photo { right: -6%; height: clamp(350px,45vw,500px); opacity: .9; }
  
  .hero__bg { object-position: 70% center; }
  .hero__photo {
    right: 8%;
  }
  .card { width: 78%; }
  .card[data-pos="-1"] { transform: translateX(-118%) scale(.8); opacity: .35; }
  .card[data-pos="1"] { transform: translateX(18%) scale(.8); opacity: .35; }
  .carousel__stage { height: clamp(260px, 62vw, 380px); }
}
@media (max-width: 860px) and (min-width:600px){
  .hero__text{
      max-width: 450px;
      margin: 0 auto;
  }
  .hero__photo{
    right: 25%;
    height: 40%;
  }
}

@media (max-width: 860px){
  .hero { align-items: flex-start; min-height: 800px; }
  .hero__photo {
    right: 30%;
    transform: translateX(-50%);
  }
}


@media (max-width: 560px) {
  .hero{
    min-height: 800px;
  }
  .hero__photo {
    right: 15%;
    transform: translateX(-50%);
  }
  .services__grid { grid-template-columns: 1fr; }
  .about { flex-direction: column; text-align: center; }
  .about__photo { flex-basis: auto; width: 62%; }
  .badges { justify-content: center; }
  .contact__text { max-width: 100%; }
  .social { justify-content: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer__tagline { padding: 0; border: 0; }
  .card p { display: none; }

}
@media (max-width: 410px){
  .hero{
    min-height: 900px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.card__media { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1600 / 783; background: var(--navy); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card[data-pos="0"] .card__media { cursor: zoom-in; }
.card[data-pos="0"] .card__media:hover img { transform: scale(1.04); }
.card__zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(5, 13, 36, .8); color: #fff; font-size: .75rem; font-weight: 600; backdrop-filter: blur(4px); transition: background .3s, transform .3s var(--ease); }
.card[data-pos="0"] .card__zoom { display: flex; }
.card__zoom:hover { background: var(--blue); transform: scale(1.06); }

.carousel__dots { align-items: center; }

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 13, 36, .95); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade-in .3s; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 10px; }
.lightbox img { max-width: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); animation: zoom-soft .5s var(--ease); }

.lightbox figcaption { font-size: .85rem; text-align: center; color: rgba(255, 255, 255, .8); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: background .3s, transform .3s; }
.lightbox__btn:hover { background: var(--blue); transform: scale(1.08); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox[data-multi="false"] .lightbox__prev, .lightbox[data-multi="false"] .lightbox__next { display: none; }
html:has(dialog[open]) { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .card { width: min(640px, 90%); }
  .carousel__stage { height: clamp(300px, 56vw, 430px); }
}

@media (max-width: 560px) {
  .card { width: 92%; padding: 14px; }
  .card__media { aspect-ratio: 16 / 10; }
  .carousel__stage { height: clamp(270px, 76vw, 330px); }
  .lightbox figure { padding: 64px 8px 88px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

.lightbox__view { max-width: 100%; max-height: calc(100dvh - 160px); overflow: auto; border-radius: 10px; scrollbar-width: thin; scrollbar-color: var(--cyan) rgba(255, 255, 255, .12); }
.lightbox__view::-webkit-scrollbar { width: 10px; height: 10px; }
.lightbox__view::-webkit-scrollbar-track { background: rgba(255, 255, 255, .1); border-radius: 10px; }
.lightbox__view::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--cyan)); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.lightbox__view:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.lightbox__view img { display: block; }
.lightbox__view.is-loading { display: grid; place-items: center; width: 160px; height: 160px; }
.lightbox__view.is-loading img { display: none; }
.lightbox__view.is-loading::after { content: ""; width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox__view.is-tall { width: min(1100px, 100%); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.lightbox__view.is-tall img { width: 100%; max-height: none; border-radius: 0; box-shadow: none; animation: none; }


.carousel__stage { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel__stage img { -webkit-user-drag: none; }
.card { translate: var(--drag, 0px) 0; transition: transform .8s var(--ease), opacity .6s, box-shadow .4s, translate .5s var(--ease); }
.carousel__stage.is-dragging, .carousel__stage.is-dragging .card, .carousel__stage.is-dragging .card__media { cursor: grabbing; }
.carousel__stage.is-dragging .card { transition: none; }


@media (max-width: 560px) {
  .lightbox__view { max-height: calc(100dvh - 205px); }
  .lightbox__view.is-tall img { width: 100%; max-width: none; }
}

@media (min-width:1560px){
  
  .contact__bg-normal{
    display: block;
  }
  .contact__bg-portrait{
    display: none;
  }
}

@media (min-width:1200px) and (max-width:1560px){
  .contact__text{
    max-width: 100%;
    padding-right: 30px;
  }
}

@media (max-width:1025px) and (min-width:650px){
  
  .contact__bg-normal{
    display: block;
  }
  .contact__bg-portrait{
    display: none;
  }
}

@media (max-width:650px){
  .contact__text{
    padding-left: 40px;
    padding-right: 15px;
    max-width: 100%;
  }
}


@media (max-width:500px) and (orientation: portrait){
  .contact__bg-portrait{
    display: block;
  }
  .contact__bg-normal{
    display: none;
  }
}