/* ===== HOME PAGE ===== */
.hero-poly { display: block; cursor: pointer; }
.hero-poly-inner { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), filter 0.4s ease; }
.hero-poly:hover .hero-poly-inner { transform: scale(1.035); filter: drop-shadow(0 0 34px rgba(46,59,224,0.4)); }
@media (max-width: 820px) { .hero-poly { display: none; } }

.hero-word { display: inline-block; opacity: 0; animation: heroWordIn 0.9s cubic-bezier(.16,.84,.32,1) forwards; }
.hero-sub { opacity: 0; animation: heroWordIn 0.9s cubic-bezier(.16,.84,.32,1) forwards; animation-delay: 0.7s; }
.hero-cta { opacity: 0; animation: heroWordIn 0.9s cubic-bezier(.16,.84,.32,1) forwards; animation-delay: 0.95s; }

/* Stat tiles */
.stat-tile { position: relative; width: clamp(220px, 19vw, 420px); aspect-ratio: 271 / 237; animation: floatY 6s ease-in-out infinite; will-change: transform, filter; transition: transform 0.6s cubic-bezier(.16,.84,.32,1), filter 0.6s cubic-bezier(.16,.84,.32,1); cursor: pointer; }
.stat-tile:hover { transform: scale(1.06) !important; animation-play-state: paused; filter: drop-shadow(0 0 22px rgba(232,18,46,0.3)) drop-shadow(0 0 22px rgba(46,59,224,0.25)); }
.stat-tile-visual { position: absolute; inset: 0; }
.stat-tile-bg { position: absolute; inset: 0; -webkit-mask: url(assets/tile-mask.svg) center / contain no-repeat; mask: url(assets/tile-mask.svg) center / contain no-repeat; background: rgba(255,255,255,0.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.stat-tile-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tile-outline { position: absolute; inset: 0; -webkit-mask: url(assets/tile-stroke.svg) center / contain no-repeat; mask: url(assets/tile-stroke.svg) center / contain no-repeat; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)); }
.stat-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 36px; }
.stat-num { font-size: clamp(38px, 3.2vw, 56px); font-weight: 700; line-height: 1; }
.stat-label { font-size: clamp(13.5px, 1.1vw, 17px); font-weight: 600; color: #fff; margin: 8px 0 7px; }
.stat-desc { font-size: 13.5px; line-height: 1.6; color: #b6b9c8; max-width: 420px; }
.stats-desktop { display: flex; justify-content: center; align-items: center; margin-top: clamp(48px, 6vw, 84px); }
.stats-desktop .stat-tile { margin-left: -18px; margin-right: -18px; flex-shrink: 0; }
.stats-desktop .stat-tile:nth-child(2) { animation-delay: -1.5s; }
.stats-desktop .stat-tile:nth-child(3) { animation-delay: -3s; }
.stats-desktop .stat-tile:nth-child(4) { animation-delay: -4.5s; }
.stats-desktop .stat-tile:nth-child(1) .tile-outline { background: linear-gradient(135deg, rgba(232,18,46,0.85), rgba(255,255,255,0.10) 70%); }
.stats-desktop .stat-tile:nth-child(2) .tile-outline { background: linear-gradient(135deg, rgba(232,18,46,0.48), rgba(255,255,255,0.12) 55%, rgba(46,59,224,0.26)); }
.stats-desktop .stat-tile:nth-child(3) .tile-outline { background: linear-gradient(135deg, rgba(232,18,46,0.24), rgba(255,255,255,0.12) 48%, rgba(46,59,224,0.5)); }
.stats-desktop .stat-tile:nth-child(4) .tile-outline { background: linear-gradient(135deg, rgba(255,255,255,0.10) 30%, rgba(46,59,224,0.85)); }
.stats-mobile { display: none; justify-content: center; align-items: flex-start; margin-top: clamp(48px, 6vw, 84px); }
.stats-col-left { display: flex; flex-direction: column; gap: 26px; margin-right: -18px; z-index: 2; }
.stats-col-right { display: flex; flex-direction: column; gap: 26px; margin-top: calc(clamp(220px, 19vw, 420px) * 237 / 271 / 2 + 13px); z-index: 1; }
.stats-col-left .stat-tile:nth-child(1) .tile-outline, .stats-col-right .stat-tile:nth-child(1) .tile-outline { background: linear-gradient(135deg, rgba(232,18,46,0.85), rgba(255,255,255,0.10) 70%); }
@media (max-width: 500px) { #stats { transform: scale(0.82); transform-origin: top center; } }
@media (max-width: 880px) {
  .stats-desktop { display: none !important; }
  .stats-mobile { display: flex !important; }
  .stats-mobile { flex-direction: column; align-items: center !important; gap: 10px; }
  .stats-mobile .stats-col-left, .stats-mobile .stats-col-right { display: contents !important; margin: 0 !important; }
  .stats-mobile .stat-tile { width: min(74vw, 310px) !important; align-self: center; }
  .stats-mobile .stats-col-left .stat-tile:nth-child(1) { order: 1; }
  .stats-mobile .stats-col-left .stat-tile:nth-child(2) { order: 2; }
  .stats-mobile .stats-col-right .stat-tile:nth-child(1) { order: 3; }
  .stats-mobile .stats-col-right .stat-tile:nth-child(2) { order: 4; }
  .stats-mobile .stat-tile .stat-content { padding: 0 clamp(26px, 9vw, 40px) !important; }
  .stats-mobile .stat-tile .stat-num { font-size: clamp(34px, 9vw, 44px) !important; }
  .stats-mobile .stat-tile .stat-label { font-size: 15px !important; margin: 7px 0 6px !important; }
  .stats-mobile .stat-tile .stat-desc { font-size: 13.5px !important; line-height: 1.5 !important; }
}

/* Products */
#product-rail::-webkit-scrollbar { display: none; }
.prod-card { transition: transform 0.35s cubic-bezier(.25,.8,.35,1), opacity 0.35s cubic-bezier(.25,.8,.35,1); cursor: pointer; flex: 0 0 auto; width: clamp(250px, 30vw, 360px); margin: 0 11px; scroll-snap-align: center; display: block; text-decoration: none; color: inherit; }
.prod-card-inner { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.prod-card-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,0.78)); pointer-events: none; }
.prod-label { position: absolute; left: 22px; bottom: 20px; font-size: 23px; font-weight: 700; pointer-events: none; }
@media (max-width: 760px) { #product-rail .prod-card { width: clamp(260px, 76vw, 340px) !important; margin: 0 5px !important; } }

/* Team */
.team-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; border: 1.5px solid #2d3a63; box-sizing: border-box; }
.team-card:hover { transform: translateY(-9px); box-shadow: 0 22px 50px rgba(0,0,0,0.5); }
.team-card-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 14%; }
.team-card-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.84)); pointer-events: none; }
.team-label-wrap { position: absolute; left: 16px; right: 12px; bottom: 14px; pointer-events: none; }
.team-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.team-title { font-size: 12px; color: #c9ccd8; margin-top: 2px; }
.featured-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.featured-team-grid .team-card-bg { background-position: 50% 16%; }
.tablet-team-grid { display: none; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mid-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.extra-team-grid-1 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.extra-team-grid-2 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; margin-top: 18px; }
.extra-team-grid-2 .team-card:nth-child(1) { grid-column: 2 / span 2; }
.extra-team-grid-2 .team-card:nth-child(2) { grid-column: 4 / span 2; }
.extra-team-grid-2 .team-card:nth-child(3) { grid-column: 6 / span 2; }
@media (min-width: 561px) and (max-width: 1100px) {
  .people-intro { grid-template-columns: 1fr !important; }
  .featured-team-grid, .mid-team-grid, .extra-team-grid-1, .extra-team-grid-2 { display: none !important; }
  .tablet-team-grid { display: grid !important; }
}
@media (max-width: 560px) {
  .mid-team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .extra-team-grid-1, .extra-team-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .extra-team-grid-1 .team-card, .extra-team-grid-2 .team-card { grid-column: auto !important; }
  .team-card .team-name { font-size: 12px !important; }
  .team-card .team-title { font-size: 10px !important; margin-top: 0 !important; }
  .team-card .team-label-wrap { bottom: 10px !important; }
}

/* People bg glow */
.people-glow-red { position: absolute; width: 46%; height: 80%; left: 0; top: -10%; background: radial-gradient(closest-side, rgba(232,18,46,0.85), transparent 70%); filter: blur(70px); animation: bgDrift1 36s ease-in-out infinite; will-change: transform; }
.people-glow-blue { position: absolute; width: 46%; height: 80%; right: 0; bottom: -10%; background: radial-gradient(closest-side, rgba(46,59,224,0.85), transparent 70%); filter: blur(70px); animation: bgDrift2 44s ease-in-out infinite; will-change: transform; }

/* Clients marquee */
.marquee-mask { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: polyMarquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); padding-right: clamp(40px, 5vw, 72px); }
.marquee-group img { height: 30px; width: auto; object-fit: contain; opacity: 0.82; }
