/* ==========================================================================
   Home page only.
   ========================================================================== */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.8) 50%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 10; max-width: 800px; }

.hero-title { font-size: clamp(32px, 5vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; opacity: 0; transform: translateY(100%); animation: revealText 1s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.hero-title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.25s; }
@keyframes revealText { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-description { font-size: 18px; color: var(--grey-light); line-height: 1.7; max-width: 560px; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.45s; }
.hero-cta { display: flex; gap: 16px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.65s; }

/* Section base (home's overflow:hidden variant — differs from sub-pages) */
.section { padding: 80px 5%; overflow: hidden; }
.section-header { margin-bottom: 48px; }
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--grey);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--grey); }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; }

/* Clients (home) */
.clients-section { background: var(--dark); }
.clients-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.clients-stats { display: flex; flex-wrap: wrap; gap: 48px; }
.client-stat-number { font-size: 56px; font-weight: 700; letter-spacing: -2px; }
.client-stat-label { font-size: 13px; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; }
.clients-text { font-size: 17px; color: var(--grey-light); line-height: 1.8; }
.clients-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.category-tag {
  padding: 10px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 13px;
  color: var(--grey-light);
  transition: all 0.3s ease;
}
.category-tag:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.clients-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}
.client-logo {
  background: var(--dark);
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s ease;
}
.client-logo:hover { background: rgba(255,255,255,0.08); }
.client-logo img { max-width: 80%; max-height: 40px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.5; transition: all 0.3s ease; }
.client-logo-fallback { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--grey-light); opacity: 0.6; text-align: center; line-height: 1.3; overflow-wrap: break-word; padding: 0 6px; transition: opacity 0.3s ease; }
.client-logo:hover .client-logo-fallback { opacity: 1; }
.client-logo:hover img { opacity: 1; }

/* About (home) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
#about-images-container { position: relative; height: 500px; }
#about-main-img { position: absolute; top: 0; left: 0; width: 75%; height: 350px; object-fit: cover; border-radius: 8px; filter: grayscale(40%); transition: filter 0.5s ease; }
#about-secondary-img { position: absolute; bottom: 0; right: 0; width: 55%; height: 250px; object-fit: cover; border-radius: 8px; filter: grayscale(40%); transition: filter 0.5s ease; }
#about-images-container:hover #about-main-img, #about-images-container:hover #about-secondary-img { filter: grayscale(0%); }
.about-text { font-size: 17px; color: var(--grey-light); line-height: 1.8; margin-bottom: 24px; }
.about-text strong { color: var(--white); }
.about-mission { padding: 20px 24px; background: var(--grey-dark); border-radius: 12px; border-left: 3px solid var(--white); margin-top: 32px; }
.about-mission-label { font-size: 11px; color: var(--grey-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.about-mission-text { font-size: 18px; font-weight: 600; }

/* Values (home) */
.values-section { background: var(--dark); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 32px; transition: all 0.4s ease; }
.value-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.value-icon { width: 48px; height: 48px; background: rgba(17,89,235,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all 0.3s ease; color: var(--blue); }
.value-icon svg { width: 24px; height: 24px; }
.value-icon img { width: 24px; height: 24px; object-fit: contain; }
.value-card:hover .value-icon { background: var(--blue); transform: scale(1.1); color: var(--white); }
.value-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.value-text { font-size: 14px; color: var(--grey-light); line-height: 1.6; }

/* Services (home) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 32px; transition: all 0.4s ease; cursor: pointer; position: relative; overflow: hidden; }
.service-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-6px); border-color: rgba(255,255,255,0.15); }
.service-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-icon { width: 48px; height: 48px; background: rgba(17,89,235,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.service-icon svg { width: 24px; height: 24px; stroke: var(--blue); stroke-width: 1.5; fill: none; }
.service-icon img { width: 24px; height: 24px; object-fit: contain; }
.service-card:hover .service-icon { background: var(--blue); }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-number { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--grey); }
.service-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-text { font-size: 14px; color: var(--grey-light); line-height: 1.6; }

/* Locations (home) */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.location-card { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; cursor: pointer; text-decoration: none; }
.location-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: all 0.6s ease; }
.location-card:hover img { filter: grayscale(0%); transform: scale(1.08); }
.location-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 32px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.location-name { font-size: 24px; font-weight: 700; color: var(--white); }
.location-country { font-size: 13px; color: var(--grey-light); margin-top: 4px; }

/* Experience (home) */
.experience-section { background: var(--dark); position: relative; overflow: hidden; }
.experience-bg {
  position: absolute; top: 0; right: 0; width: 45%; height: 100%;
  background-size: cover; background-position: center;
  filter: grayscale(100%); opacity: 0.15; mask-image: linear-gradient(to left, black, transparent);
}
.experience-content { position: relative; z-index: 10; max-width: 600px; }
.experience-text { font-size: 17px; color: var(--grey-light); line-height: 1.8; margin-bottom: 20px; }
.experience-text.highlight { color: var(--white); font-style: italic; }

/* CTA (home) */
.cta-section { padding: 100px 5%; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%); max-width: 100%;
}
.cta-title { font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; position: relative; }
.cta-subtitle { font-size: 17px; color: var(--grey-light); margin-bottom: 32px; position: relative; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; position: relative; }

/* Marquee */
.marquee { padding: 16px 0; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); background: var(--black); width: 100%; max-width: 100vw; }
.marquee-track { display: flex; animation: marquee 35s linear infinite; width: max-content; }
.marquee-item {
  flex-shrink: 0; padding: 0 32px; font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 2px; color: var(--grey); display: flex; align-items: center; gap: 32px;
}
.marquee-item::after { content: '◆'; font-size: 5px; color: var(--grey); opacity: 0.6; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Interactive Pattern Section */
.interactive-section { padding: 120px 5% 140px; position: relative; overflow: hidden; background: var(--dark); margin-bottom: 40px; }
.pattern-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-repeat: repeat; background-size: 400px; background-position: center;
  opacity: 0.02; animation: patternMove 60s linear infinite;
}
@keyframes patternMove { 0% { background-position: 0 0; } 100% { background-position: 400px 400px; } }
.interactive-content { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; max-width: 1400px; margin: 0 auto; }
.interactive-text { padding-right: 40px; }
.interactive-title { font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 20px; }
.highlight-word { color: var(--blue); position: relative; display: inline-block; }
.highlight-word::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease; }
.highlight-word:hover::after { transform: scaleX(1); transform-origin: left; }
.interactive-desc { font-size: 17px; color: var(--grey-light); line-height: 1.7; }

.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pattern-cell { aspect-ratio: 1; cursor: pointer; perspective: 1000px; }
.pattern-inner {
  position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); transform-style: preserve-3d;
}
.pattern-cell:hover .pattern-inner { transform: rotateY(10deg) rotateX(-5deg) scale(1.05); border-color: var(--blue); box-shadow: 0 25px 50px rgba(17,89,235,0.2); }
.pattern-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: all 0.5s ease; transform: scale(1); }
.pattern-cell:hover .pattern-img { opacity: 1; transform: scale(1.1) rotate(5deg); }
.pattern-img-custom { opacity: 0.85; } /* an uploaded photo should read clearly, not dimmed like the abstract brand texture */
.pattern-cell:hover .pattern-img-custom { opacity: 1; transform: scale(1.08); }
.pattern-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(10,10,10,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all 0.4s ease; z-index: 2;
}
.pattern-icon svg { width: 26px; height: 26px; stroke: var(--white); stroke-width: 1.5; fill: none; }
.pattern-icon img { width: 28px; height: 28px; object-fit: contain; }
.pattern-cell:hover .pattern-icon { background: var(--blue); border-color: var(--blue); transform: translate(-50%, -50%) scale(1.1); }
.pattern-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); display: flex; align-items: flex-end; justify-content: center; }
.pattern-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--white); text-align: center; opacity: 0.8; transition: all 0.4s ease; }
.pattern-cell:hover .pattern-label { opacity: 1; color: var(--blue); }

.floating-patterns { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.floating-pattern {
  position: absolute; width: 200px; height: 200px;
  background-repeat: no-repeat; background-size: contain; background-position: center;
  opacity: 0.03;
}
.fp-1 { top: 10%; right: 0; animation: float1 20s ease-in-out infinite; }
.fp-2 { bottom: 20%; left: 0; animation: float2 25s ease-in-out infinite; width: 150px; height: 150px; }
.fp-3 { top: 50%; right: 10%; animation: float3 18s ease-in-out infinite; width: 100px; height: 100px; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-30px, 30px) rotate(180deg); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(20px, -20px) rotate(-180deg); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-20px, 40px) rotate(90deg); } }

@media (max-width: 900px) {
  .interactive-content { grid-template-columns: 1fr; gap: 40px; }
  .interactive-text { padding-right: 0; text-align: center; }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .section-tag { justify-content: center; }
}

/* Responsive */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: 80vh; padding: 120px 5% 60px; }
  .hero-title { font-size: clamp(28px, 6vw, 42px); }
  .hero-description { font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  #about-images-container { height: 350px; }
  #about-main-img { width: 70%; height: 280px; }
  #about-secondary-img { width: 50%; height: 200px; }
  .clients-section { padding: 60px 5%; }
  .clients-intro { grid-template-columns: 1fr; gap: 24px; }
  .clients-stats { flex-direction: row; justify-content: center; gap: 40px; }
  .client-stat-number { font-size: 42px; }
  .clients-logos { grid-template-columns: repeat(3, 1fr); }
  .client-logo { padding: 16px; }
  .client-logo img { max-height: 30px; }
  .locations-grid { grid-template-columns: 1fr; }
  .interactive-section { padding: 80px 5% 100px; }
}
@media (max-width: 600px) {
  .hero { min-height: 70vh; padding: 100px 5% 40px; }
  .hero-title { font-size: clamp(24px, 7vw, 32px); letter-spacing: -0.5px; }
  .hero-description { font-size: 15px; margin-bottom: 30px; }
  .section { padding: 60px 5%; }
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .clients-section { padding: 50px 5%; }
  .clients-stats { flex-direction: column; gap: 16px; text-align: center; }
  .client-stat-number { font-size: 36px; }
  .clients-logos { grid-template-columns: repeat(2, 1fr); }
  .client-logo { aspect-ratio: 3/2; padding: 12px; }
  .client-logo img { max-height: 25px; max-width: 70%; }
  .client-logo-fallback { font-size: 10px; }
  .clients-categories { justify-content: center; }
  .category-tag { font-size: 11px; padding: 8px 14px; }
  #about-images-container { height: 300px; }
  #about-main-img { width: 65%; height: 220px; }
  #about-secondary-img { width: 50%; height: 160px; }
  .cta-buttons { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .interactive-section { padding: 60px 5% 80px; }
  .interactive-title { font-size: clamp(28px, 6vw, 36px); }
  .interactive-desc { font-size: 15px; }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pattern-label { font-size: 11px; }
  .location-card { aspect-ratio: 16/10; }
  .location-overlay { padding: 20px; }
  .location-name { font-size: 20px; }
}

/* Leftover Kadence Blocks column markup (from an earlier builder/plugin)
   shouldn't render on the homepage — this file is already homepage-only
   via inc/enqueue.php, but body.home is added too for clarity/safety. */
body.home .kadence-blocks-column-inner {
  display: none !important;
}
