:root {
  --ink: #10100e;
  --paper: #f7f7f8;
  --chalk: #ffffff;
  --acid: #c8102e;
  --clay: #ffe8ed;
  --blue: #e63a56;
  --line: rgba(16, 16, 14, 0.18);
  --dark-line: rgba(251, 248, 240, 0.18);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--ink);
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p,
g,
q,
h1,
h2,
h3,
span,
strong,
b {
  overflow: visible;
}

p,
q {
  line-height: 1.34;
}

h1,
h2,
h3,
strong,
b {
  line-height: 1.04;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--ink);
  color: var(--chalk);
}

.loader__top,
.loader__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.loader__percent {
  font-size: clamp(4rem, 18vw, 18rem);
  font-weight: 800;
  line-height: 1;
}

.loader__track {
  height: 2px;
  background: rgba(251, 248, 240, 0.18);
  overflow: hidden;
}

.loader__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: var(--chalk);
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: var(--chalk);
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link,
.menu-toggle,
.round-link,
.cta-button,
.footer__links a {
  transition: transform 0.55s var(--ease), background-color 0.55s var(--ease), color 0.55s var(--ease), border-color 0.55s var(--ease);
}

.nav-link {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.nav-link:hover {
  background: var(--chalk);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.55s var(--ease);
}

.menu-toggle span:first-child {
  top: 1.25rem;
}

.menu-toggle span:nth-child(2) {
  top: 1.65rem;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(0.2rem) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  transform: translateY(-0.2rem) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: end;
  gap: 2rem;
  padding: 5rem 1.25rem 1.25rem;
  background: var(--ink);
  color: var(--chalk);
  visibility: hidden;
  transform: translateY(-100%);
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu a {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: clamp(3.2rem, 18vw, 7rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.mobile-menu p {
  max-width: 22rem;
  margin: 0;
  color: rgba(251, 248, 240, 0.68);
}

.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 8rem) 1.25rem;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--chalk);
}

.hero__media {
  position: absolute;
  inset: 0;
  opacity: 0.74;
  transform-origin: center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 14, 0.15), rgba(16, 16, 14, 0.55) 62%, rgba(16, 16, 14, 0.92));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: transform;
}

.eyebrow,
.section-label {
  margin: 0 0 1.1rem;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__title,
.display,
.cta__title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(4.4rem, 13vw, 13.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.hero__meta {
  display: grid;
  grid-template-columns: minmax(16rem, 34rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.hero__meta p,
.about__copy p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.8rem);
  line-height: 1.34;
  letter-spacing: -0.03em;
}

.round-link {
  display: grid;
  place-items: center;
  width: clamp(6rem, 12vw, 10rem);
  aspect-ratio: 1;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  font-size: clamp(0.7rem, 1vw, 0.86rem);
}

.round-link:hover,
.cta-button:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.scroll-cue {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(251, 248, 240, 0.72);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 4.5rem;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}

.about {
  background: var(--paper);
}

.section-label {
  color: rgba(16, 16, 14, 0.58);
}

[data-theme="dark"] .section-label {
  color: rgba(251, 248, 240, 0.58);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.about .display {
  font-size: clamp(3.2rem, 7vw, 7.9rem);
}

.display {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 9rem);
}

.about__copy {
  display: grid;
  gap: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stats span {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(16, 16, 14, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.stats strong {
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.system-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  perspective: 1200px;
}

.system-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(0.55rem, 1vw, 0.85rem);
  border: 1px solid rgba(16, 16, 14, 0.11);
  border-radius: clamp(1.1rem, 2vw, 1.75rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 248, 0.72));
  box-shadow: 0 24px 70px rgba(16, 16, 14, 0.14);
  transform-origin: center;
  transition: transform 0.75s var(--ease), box-shadow 0.75s var(--ease), border-color 0.75s var(--ease);
  overflow: visible;
}

.system-card:hover {
  transform: translateY(-0.45rem);
  border-color: rgba(200, 16, 46, 0.24);
  box-shadow: 0 34px 90px rgba(16, 16, 14, 0.2);
}

.system-card__media {
  position: relative;
  overflow: hidden;
  border-radius: clamp(0.75rem, 1.6vw, 1.2rem);
  background: #070707;
  aspect-ratio: 3 / 2;
}

.system-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 16, 14, 0.02), rgba(16, 16, 14, 0.16));
}

.system-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.system-card:hover .system-card__media img {
  transform: scale(1.035);
}

.system-card__copy {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0.25rem 0.2rem;
}

.system-card__copy span {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-card__copy p {
  max-width: 38rem;
  margin: 0;
  color: rgba(16, 16, 14, 0.66);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.34;
}

.services {
  min-height: auto;
  background: var(--chalk);
}

.services__intro {
  max-width: 78rem;
}

.service-list {
  margin-top: clamp(2rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr minmax(16rem, 34rem);
  gap: 1.5rem;
  align-items: center;
  min-height: 10rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  position: relative;
  overflow: visible;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}

.service-item span {
  color: rgba(16, 16, 14, 0.42);
}

.service-item h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.service-item p {
  margin: 0;
  color: rgba(16, 16, 14, 0.62);
  line-height: 1.34;
}

.service-item:hover {
  color: var(--chalk);
  transform: translateX(0.55rem);
}

.service-item:hover::before {
  transform: scaleY(1);
}

.service-item:hover span,
.service-item:hover p {
  color: rgba(251, 248, 240, 0.68);
}

.gallery {
  min-height: 260vh;
  display: grid;
  align-items: start;
  background: var(--ink);
  color: var(--chalk);
  overflow: hidden;
}

.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 16, 14, 0.96) 0%, rgba(16, 16, 14, 0.84) 30%, rgba(16, 16, 14, 0.2) 58%, rgba(16, 16, 14, 0.72) 100%);
}

.gallery__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: center;
  z-index: 4;
  pointer-events: none;
}

.gallery .display {
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.6vw, 7rem);
  line-height: 1.04;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
}

.gallery__track {
  position: absolute;
  top: 32vh;
  left: 0;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  padding-left: 42vw;
  padding-right: 20vw;
  z-index: 2;
  will-change: transform;
}

.gallery-card {
  position: relative;
  width: clamp(19rem, 38vw, 42rem);
  height: clamp(26rem, 58vw, 50rem);
  margin: 0;
  overflow: hidden;
  background: #222;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 16, 14, 0.08), rgba(16, 16, 14, 0.5));
}

.project-preview {
  display: block;
  color: var(--chalk);
  isolation: isolate;
}

.project-preview__image {
  object-position: top center;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}

.project-preview:hover .project-preview__image {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.project-preview__logo {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(46%, 16rem);
  height: 4.6rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.project-preview__logo--dark {
  background: rgba(16, 16, 14, 0.84);
}

.project-preview__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-preview__meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(251, 248, 240, 0.22);
  border-radius: 0.5rem;
  background: rgba(16, 16, 14, 0.62);
  color: var(--chalk);
  backdrop-filter: blur(16px);
}

.project-preview__meta strong {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.project-preview__meta small {
  color: rgba(251, 248, 240, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-card:nth-child(even) {
  transform: translateY(12vh);
}

.gallery-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(251, 248, 240, 0.22);
  border-radius: 999px;
  background: rgba(16, 16, 14, 0.38);
  color: var(--chalk);
  backdrop-filter: blur(14px);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.cta {
  display: grid;
  place-items: center;
  min-height: 120svh;
  background: var(--acid);
  color: var(--chalk);
  text-align: center;
  overflow: visible;
}

.cta__frame {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-4deg);
  will-change: transform;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2rem;
  width: min(70rem, 100%);
}

.cta__title {
  max-width: 11ch;
  font-size: clamp(4rem, 12vw, 13rem);
}

.cta__copy {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.34;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(46rem, 100%);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(16, 16, 14, 0.28);
  backdrop-filter: blur(18px);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.45rem;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.lead-form textarea {
  grid-column: 1 / -1;
  min-height: 7.2rem;
  padding-top: 0.9rem;
  resize: vertical;
}

.lead-form .cta-button {
  grid-column: 1 / -1;
  width: 100%;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--ink);
  color: var(--chalk);
  font-weight: 800;
  cursor: pointer;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 22px 54px rgba(16, 16, 14, 0.28);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: inherit;
  animation: whatsappPulse 1.8s ease-in-out infinite;
}

.whatsapp-float svg {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  display: block;
  padding: 0;
  overflow: visible;
  transform: none;
  fill: currentColor;
}

.whatsapp-float svg path {
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.86);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.footer {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--ink);
  color: var(--chalk);
  overflow: visible;
}

.footer p {
  margin: 0.35rem 0 0;
  color: rgba(251, 248, 240, 0.62);
}

.footer__links {
  display: flex;
  gap: 0.5rem;
}

.footer__links a {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer__links a:hover {
  background: var(--chalk);
  color: var(--ink);
}

.image-mask {
  clip-path: inset(0 0 0 0);
  overflow: hidden;
}

.split-line,
.split-word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.07em;
  margin-bottom: -0.07em;
  vertical-align: top;
}

.split-line > span,
.split-word > span {
  display: inline-block;
  will-change: transform;
}

.magnetic {
  will-change: transform;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .system-card {
    padding: 0.6rem;
  }

  .system-card__copy p {
    font-size: 0.98rem;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    padding: 5rem 1rem;
  }

  .hero__title,
  .cta__title {
    font-size: clamp(4rem, 19vw, 7.2rem);
  }

  .hero__meta,
  .about__grid,
  .system-showcase,
  .service-item,
  .lead-form,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero__meta {
    align-items: start;
  }

  .round-link {
    width: 6.5rem;
  }

  .scroll-cue {
    display: none;
  }

  .display {
    font-size: clamp(3.4rem, 15vw, 6.2rem);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .system-showcase {
    gap: 1.25rem;
    margin-top: 3rem;
  }

  .system-card {
    padding: 0.55rem;
    border-radius: 1.1rem;
  }

  .system-card__media {
    aspect-ratio: 3 / 2;
    border-radius: 0.8rem;
  }

  .service-item {
    gap: 0.7rem;
    min-height: 0;
    padding: 1.4rem 0;
  }

  .gallery {
    min-height: auto;
    display: block;
    overflow: visible;
  }

  .gallery::before {
    z-index: 0;
    background: linear-gradient(180deg, rgba(16, 16, 14, 0.96) 0%, rgba(16, 16, 14, 0.64) 42%, rgba(16, 16, 14, 0.92) 100%);
  }

  .gallery__sticky {
    position: relative;
    top: auto;
    z-index: 2;
    height: auto;
    min-height: auto;
    align-content: start;
    margin-bottom: 2rem;
  }

  .gallery .display {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 4.7rem);
    line-height: 1.04;
  }

  .gallery__track {
    position: relative;
    top: auto;
    z-index: 1;
    display: grid;
    width: 100%;
    padding: 0;
    transform: none !important;
  }

  .gallery-card {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    transform: none !important;
  }

  .gallery-card:nth-child(even) {
    transform: none !important;
  }

  .project-preview__logo {
    width: min(58%, 14rem);
    height: 3.8rem;
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.6rem;
  }

  .project-preview__meta {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .loader__bottom {
    align-items: end;
  }

  .lead-form textarea,
  .lead-form .cta-button {
    grid-column: auto;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 24px;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
