:root {
  --style-loaded: 1;
  --bg: #000000;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --text: #f3f3f3;
  --muted: #d5d9e2;
  --primary: #f3f3f3;
  --accent: #2f80ff;
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --max-width: 1200px;
  --section-gap: 96px;
  --hero-image: url("https://cdn.prod.website-files.com/6925368c84535d51ca6296ea/692581415d9dd72f224a2b6b_111014928a394176cdd98bc826b9853a_Rectangle%201%20%284%29.svg");
  --hero-tint: #3378f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.6);
  backdrop-filter: blur(2px);
  z-index: 900;
}

img {
  max-width: 100%;
  display: block;
}

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

.highlight {
  color: var(--accent);
  font-weight: 700;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: calc(var(--max-width) + 64px);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3) 50%,
    transparent
  );
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.site-header::after {
  display: none;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 40px;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  margin-top: var(--section-gap);
}

.hero {
  margin-top: 0;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  padding-top: 80px;
  min-height: 70vh;
  display: block;
  overflow: hidden;
  background: #000000;
}

.hero-full::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 100px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, var(--bg) 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-full::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  z-index: 0;
  filter: brightness(0.28) contrast(1.3);
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.05) 40%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    radial-gradient(
      circle at 75% 45%,
      rgba(51, 120, 246, 0.45) 0%,
      rgba(51, 120, 246, 0.15) 45%,
      rgba(51, 120, 246, 0) 70%
    ),
    linear-gradient(120deg, rgba(51, 120, 246, 0.4), rgba(51, 120, 246, 0.1));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.40;
  filter: saturate(1.05);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: calc(70vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-top {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  z-index: 3;
  color: var(--text);
}

.hero-copy {
  max-width: 300px;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

.hero-services {
  text-align: right;
  line-height: 1.4;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

.hero-services p {
  margin: 0;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title img {
  width: min(90vw, 1040px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.hero-thumb {
  position: absolute;
  right: 80px;
  bottom: 120px;
  width: 120px;
  text-align: center;
}

.hero-thumb img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-thumb-line {
  height: 2px;
  margin: 10px auto 0;
  width: 70px;
  background: rgba(255, 255, 255, 0.7);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin: 16px 0;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.lead {
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.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;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(10px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cookie-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.cookie-link:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .footer-top {
    gap: 24px;
  }
}

.btn-pill {
  background: #f1f1f1;
  color: #0c0c0c;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #0c0c0c;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(47, 128, 255, 0.3);
}

.btn-cta:hover {
  background: #1a6fe6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 128, 255, 0.4);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: linear-gradient(180deg, rgba(155, 140, 255, 0.1), rgba(255, 255, 255, 0.02));
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.stat-value {
  margin: 6px 0 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  color: var(--muted);
}

.logo-strip {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.logo-track {
  display: flex;
  gap: 80px;
  padding: 32px 24px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.logo-icon {
  height: 40px;
  width: auto;
  max-width: 140px;
  min-width: 32px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: transparent;
}

.logo-icon:hover {
  opacity: 1;
}

/* Fallback para imágenes que no cargan */
.logo-icon:not([src]),
.logo-icon[src=""],
.logo-icon[src*="undefined"] {
  display: none;
}

.process-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 40px;
}

.process-note {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.95rem;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 60px;
  perspective: 1200px;
}

.process-card {
  position: relative;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(47, 128, 255, 0.2);
  border-radius: 20px;
  padding: 48px 40px;
  min-height: auto;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(47, 128, 255, 0.1) inset,
    0 0 60px rgba(47, 128, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.process-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(47, 128, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.process-card:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(-2deg) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(47, 128, 255, 0.3) inset,
    0 0 100px rgba(47, 128, 255, 0.15);
  border-color: rgba(47, 128, 255, 0.4);
}

.process-card:hover::before {
  opacity: 1;
}

.process-card:hover::after {
  opacity: 1;
}

.process-card:nth-child(1) {
  transform: translateZ(20px) rotateY(-5deg);
}

.process-card:nth-child(2) {
  transform: translateZ(40px);
  z-index: 2;
}

.process-card:nth-child(3) {
  transform: translateZ(20px) rotateY(5deg);
}

.process-card:nth-child(1):hover {
  transform: translateY(-12px) translateZ(30px) rotateY(-8deg) scale(1.02);
}

.process-card:nth-child(2):hover {
  transform: translateY(-12px) translateZ(50px) scale(1.02);
}

.process-card:nth-child(3):hover {
  transform: translateY(-12px) translateZ(30px) rotateY(8deg) scale(1.02);
}

.process-card-center {
  justify-self: center;
  grid-column: 2;
  max-width: 100%;
  margin-top: 0;
}

.process-steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-steps article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.process-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.step {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(47, 128, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(47, 128, 255, 0.3);
  transform: translateZ(10px);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.process-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(47, 128, 255, 0.3) 50%, transparent 100%);
  opacity: 0.4;
}

.process-card:hover .step {
  transform: translateZ(20px) scale(1.1);
}

.process-card h3 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
  transform: translateZ(5px);
  transition: transform 0.4s ease;
  letter-spacing: -0.02em;
}

.process-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 20px;
  line-height: 1.4;
}

.process-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  opacity: 0.9;
}

.process-card:hover h3 {
  transform: translateZ(15px);
  color: var(--accent);
}

.process-card p {
  color: var(--muted);
  line-height: 1.7;
  transform: translateZ(0);
  transition: transform 0.4s ease;
}

.process-card:hover p {
  transform: translateZ(10px);
  color: rgba(255, 255, 255, 0.9);
}

.services .service-grid,
.projects .project-grid,
.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid article,
.project-card,
.testimonial-grid article,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-grid ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.services-header {
  display: grid;
  gap: 16px;
  text-align: left;
  margin-bottom: 40px;
}

.services-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

.services-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 8px 0 0;
  font-weight: 400;
}

.services-intro {
  max-width: 800px;
  margin: 0 0 48px;
  color: var(--muted);
  line-height: 1.7;
}

.services-intro p {
  margin: 0 0 16px;
}

.services-closing {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.services-closing p {
  margin: 0 0 12px;
}

.services-closing p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

.services-accordion {
  display: grid;
  gap: 12px;
}

.service-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
}

.service-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
}

.service-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: #2f80ff;
  transition: transform 0.2s ease;
}

.service-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  color: var(--muted);
}

.service-panel p {
  margin: 0 0 12px;
}

.service-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 600;
  color: var(--text);
}

.service-item.open .service-panel {
  max-height: 220px;
  opacity: 1;
}

.service-item.open .service-icon {
  transform: rotate(45deg);
}

.project-card {
  display: grid;
  gap: 8px;
}

.project-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.projects-stacked {
  margin-top: var(--section-gap);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.projects-header h2 {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
}

.projects-note {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.95rem;
}

.stacked-wrapper {
  position: relative;
  display: grid;
  gap: 32px;
  padding-bottom: 200px;
}

.stacked-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stacked-card {
  position: sticky;
  top: 110px;
  height: clamp(320px, 48vw, 520px);
  border-radius: 12px;
  background: var(--card-image) center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center top;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stacked-card[data-stacked="1"] {
  background-position: center top;
}

.stacked-card-link:hover .stacked-card {
  transform: scale(1.02);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.stacked-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}

.card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-year {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.card-logo {
  z-index: 2;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.7),
    0 4px 12px rgba(0, 0, 0, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
}

.testimonial-grid article p {
  margin-top: 0;
  color: var(--muted);
}

.testimonial-grid h4 {
  margin: 16px 0 0;
}

.contact {
  margin-top: var(--section-gap);
  padding-bottom: 120px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 100px;
  align-items: flex-start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-eyebrow {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.contact-heading {
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
}

.contact-subtitle {
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: url('assets/logo.svg') center/contain no-repeat;
  background-color: #000000;
  flex-shrink: 0;
}

.contact-name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

.contact-role {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--text);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card-content {
  flex: 1;
}

.contact-card-content h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-card-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.contact-card-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.contact-card-button svg {
  width: 16px;
  height: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 20px;
}

.contact-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.contact-check-label {
  gap: 12px;
}

.contact-honeypot {
  display: none !important;
}

.hcaptcha-slot {
  min-height: 68px;
}

.contact-check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.contact-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-input:focus {
  border-bottom-color: var(--accent);
}

.contact-input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.contact-input select,
select.contact-input {
  background: transparent;
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-family: inherit;
  font-size: 0.95rem;
}

select.contact-input option {
  color: #000;
}

.contact-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  padding-top: 12px;
}

.btn-contact-submit {
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  display: block;
}

.btn-contact-submit:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 128, 255, 0.3);
}

.btn-contact-submit:hover .btn-dot {
  background: var(--text);
}

.btn-contact-submit:active {
  transform: translateY(0);
}

.form-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.success {
  color: #6ee7b7;
}

.form-status.error {
  color: #fca5a5;
}

.marquee {
  margin-top: var(--section-gap);
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  background: transparent;
}

.marquee + .marquee {
  margin-top: 2px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 24px;
  animation: marquee 14s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
}

.marquee-word {
  color: var(--text);
}

.marquee-star {
  color: var(--accent);
  font-size: 1.1em;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

.site-footer {
  margin-top: var(--section-gap);
  padding: 56px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, rgba(51, 120, 246, 0.08), transparent 55%), #0b0b0b;
}

.footer-top,
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
}

.footer-top {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.footer-brand p {
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
  opacity: 0.9;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.powered-band {
  width: 100%;
  background: radial-gradient(circle at top, rgba(51, 120, 246, 0.08), transparent 55%), #0b0b0b;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 10px 12px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Tablet and below */
@media (max-width: 1024px) {
  .site-header {
    width: calc(100% - 32px);
    top: 16px;
  }

  .nav {
    padding: 10px 24px;
    gap: 24px;
  }

  .nav-links {
    gap: 24px;
    font-size: 0.85rem;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .contact-inner {
    gap: 60px;
  }

  .process-grid {
    gap: 32px;
  }

  .projects-header {
    flex-direction: column;
    gap: 20px;
  }

  .projects-note {
    max-width: 100%;
  }
}

/* Mobile landscape and below */
@media (max-width: 860px) {
  :root {
    --section-gap: 80px;
  }

  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    border-radius: 20px;
    overflow: visible;
    left: 12px;
    right: 12px;
    transform: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 8px 16px;
    gap: 16px;
  }

  .logo img {
    height: 28px;
  }

  .nav-center {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: linear-gradient(180deg, rgba(18, 22, 34, 0.98), rgba(6, 8, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    z-index: 2000;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 14px;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-center.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-center a {
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: 12px;
    border-bottom: none;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .nav-center a:hover {
    background: rgba(47, 128, 255, 0.15);
    transform: translateX(4px);
  }

  .nav-toggle {
    display: block;
  }

  .btn-cta {
    font-size: 0.85rem;
    padding: 8px 18px;
  }

  main {
    padding: 0 16px;
  }

  .hero-full {
    padding-top: 70px;
    min-height: 60vh;
  }

  .hero-overlay {
    padding: 50px 16px 30px;
  }

  .hero-top {
    top: 50px;
    padding: 0 16px;
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }

  .hero-copy,
  .hero-services {
    text-align: left;
    font-size: 0.85rem;
  }

  .hero-title {
    margin-top: -20px;
  }

  .hero-title img {
    width: min(95vw, 600px);
  }

  .hero-thumb {
    position: static;
    margin: 20px auto 0;
    width: 100px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .process-note {
    max-width: 100%;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    perspective: 800px;
  }

  .process-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .process-card:nth-child(1),
  .process-card:nth-child(2),
  .process-card:nth-child(3) {
    transform: translateZ(0);
  }

  .process-card:nth-child(1):hover,
  .process-card:nth-child(2):hover,
  .process-card:nth-child(3):hover {
    transform: translateY(-8px) translateZ(20px) scale(1.01);
  }

  .step {
    font-size: 2.5rem;
  }

  .process-card h3 {
    font-size: 1.3rem;
  }

  .services-header {
    margin-bottom: 24px;
  }

  .service-trigger {
    font-size: 1.5rem;
  }

  .projects-header {
    margin-bottom: 32px;
  }

  .stacked-wrapper {
    padding-bottom: 80px;
  }

  .stacked-card {
    position: relative;
    top: 0;
    height: clamp(280px, 60vh, 400px);
  }

  .card-tag,
  .card-year {
    top: 16px;
    font-size: 0.75rem;
  }

  .card-tag {
    left: 16px;
    right: auto;
    max-width: 65%;
  }

  .card-year {
    right: 16px;
    left: auto;
  }

  .card-logo {
    font-size: 1.8rem;
  }

  .contact {
    padding-bottom: 80px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-heading {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .contact-cards {
    margin-top: 24px;
  }

  .logo-track {
    gap: 48px;
    padding: 20px;
  }

  .logo-icon {
    height: 28px;
  }
}

/* Mobile portrait */
@media (max-width: 640px) {
  :root {
    --section-gap: 64px;
  }

  .site-header {
    width: calc(100% - 16px);
    top: 8px;
    border-radius: 16px;
  }

  .nav {
    padding: 6px 12px;
  }

  .logo img {
    height: 24px;
  }

  .btn-cta {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  main {
    padding: 0 12px;
  }

  .hero-full {
    padding-top: 60px;
    min-height: 55vh;
  }

  .hero-overlay {
    padding: 40px 12px 24px;
  }

  .hero-top {
    top: 40px;
    padding: 0 12px;
    gap: 16px;
  }

  .hero-copy,
  .hero-services {
    font-size: 0.8rem;
  }

  .hero-title {
    margin-top: -10px;
    letter-spacing: 0.04em;
  }

  .hero-title img {
    width: min(98vw, 500px);
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .section-header {
    margin-bottom: 24px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .process-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .step {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .process-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .service-trigger {
    font-size: 1.3rem;
    padding: 10px 0;
  }

  .service-panel {
    font-size: 0.9rem;
  }

  .service-tags {
    gap: 10px;
    font-size: 0.85rem;
  }

  .stacked-card {
    position: relative;
    top: 0;
    height: clamp(250px, 55vh, 350px);
    border-radius: 8px;
  }

  .stacked-wrapper {
    padding-bottom: 40px;
  }

  .card-tag {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .card-year {
    top: 12px;
    right: 12px;
    font-size: 0.8rem;
  }

  .card-logo {
    font-size: 1.5rem;
  }

  .contact {
    padding-bottom: 60px;
  }

  .contact-heading {
    font-size: clamp(2rem, 10vw, 3.5rem);
    line-height: 1;
  }

  .contact-subtitle {
    font-size: 0.85rem;
  }

  .contact-person {
    gap: 16px;
    margin-top: 16px;
  }

  .contact-avatar {
    width: 56px;
    height: 56px;
  }

  .contact-name {
    font-size: 0.9rem;
  }

  .contact-role {
    font-size: 0.85rem;
  }

  .contact-cards {
    gap: 10px;
    margin-top: 20px;
  }

  .contact-card {
    padding: 14px 16px;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
  }

  .contact-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-card-content h3 {
    font-size: 0.9rem;
  }

  .contact-card-content p {
    font-size: 0.8rem;
  }

  .contact-form {
    gap: 24px;
    margin-top: 16px;
  }

  .contact-label {
    font-size: 0.85rem;
  }

  .contact-input {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .btn-contact-submit {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .logo-track {
    gap: 32px;
    padding: 16px;
  }

  .logo-icon {
    height: 24px;
  }

  .about-grid {
    gap: 16px;
  }

  .projects-header h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}

/* Very small devices */
@media (max-width: 400px) {
  .site-header {
    width: calc(100% - 12px);
  }

  .nav {
    padding: 6px 10px;
  }

  .hero-title img {
    width: 95vw;
  }

  .contact-heading {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .process-card {
    padding: 20px 16px;
  }

  .step {
    font-size: 2rem;
  }
}
