/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}
.btn-primary:hover { background: #be123c; border-color: #be123c; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  color: #1e293b;
  border-color: #cbd5e1;
}
.btn-outline-dark:hover { border-color: #e11d48; color: #e11d48; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; padding: 14px; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
}
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0f172a;
  padding: 120px 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0f172a url('https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?w=1600&q=80') center/cover no-repeat;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.72) 45%,
    rgba(30, 58, 138, 0.5) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-mute {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.hero-mute:hover {
  background: rgba(225, 29, 72, 0.85);
  border-color: #e11d48;
  transform: scale(1.06);
}
.hero-mute.is-unmuted {
  border-color: rgba(96, 165, 250, 0.6);
}
@media (max-width: 640px) {
  .hero-mute {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}
/* Pause video when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #93c5fd;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #60a5fa, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e11d48;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label.light { color: #93c5fd; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-header p {
  color: #64748b;
  font-size: 16px;
}

/* ===== WELCOME ===== */
.welcome {
  padding: 100px 0;
  background: #fff;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.welcome-left h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 20px;
}
.welcome-left p {
  color: #475569;
  margin-bottom: 16px;
  font-size: 15px;
}
.welcome-left blockquote {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid #e11d48;
  background: #f8fafc;
  font-style: italic;
  color: #334155;
  font-size: 15px;
  border-radius: 0 8px 8px 0;
}
.why-card {
  background: #1e3a5f;
  color: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.15);
}
.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.why-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}
.why-card .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: #f8fafc;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.service-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.service-body {
  padding: 24px;
}
.service-icon {
  width: 36px;
  height: 36px;
  background: #fef2f2;
  color: #e11d48;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}
.service-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.service-body p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.55;
}
.learn-more {
  font-size: 13px;
  font-weight: 600;
  color: #e11d48;
  transition: gap 0.2s;
}
.learn-more:hover { color: #be123c; }

/* ===== WORK ===== */
.work {
  padding: 100px 0;
  background: #fff;
}
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover, .filter.active {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.work-item:hover img { transform: scale(1.06); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

/* ===== MISSION ===== */
.mission {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 40px;
  align-items: center;
}
.mission-block p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.mission-visual {
  text-align: center;
}
.globe-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}
.globe-icon svg { width: 100%; height: 100%; }
.mission-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ===== VALUES ===== */
.values {
  padding: 40px 0;
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.values-title {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.values-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.values-list span {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
}

/* ===== WHO WE SERVE ===== */
.serve {
  padding: 100px 0;
  background: #f8fafc;
}
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.serve-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.serve-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.1);
}
.serve-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #e11d48;
  opacity: 0.3;
  margin-bottom: 12px;
}
.serve-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.serve-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: #fff;
}
.testimonial-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: #f8fafc;
  border-radius: 20px;
  position: relative;
}
.quote-mark {
  font-size: 72px;
  font-weight: 800;
  color: #e11d48;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-text {
  font-size: 20px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #e11d48);
}
.testimonial-author strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
.testimonial-author span {
  font-size: 13px;
  color: #64748b;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.dot.active { background: #e11d48; }

/* ===== PRODUCTS ===== */
.products {
  padding: 100px 0;
  background: #f8fafc;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.05);
  display: flex;
  flex-direction: column;
}
.product-icon {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}
.product-card p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.55;
}
.product-cta {
  background: #1e3a5f;
  color: #fff;
  justify-content: center;
  text-align: center;
}
.product-cta h3 { color: #fff; }
.product-cta p { color: rgba(255,255,255,0.75); }
.product-cta .btn { align-self: center; }

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: #fff;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}
.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: #94a3b8;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
  color: #e11d48;
}
.faq-item p {
  padding: 0 0 20px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: #f8fafc;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-left h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
}
.contact-left > p {
  color: #475569;
  margin-bottom: 28px;
  font-size: 15px;
}
.contact-info {
  margin-bottom: 32px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #e11d48;
  font-size: 15px;
  margin-bottom: 16px;
}
.ci-icon {
  width: 36px;
  height: 36px;
  background: #fef2f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s;
}
.social-links a:hover {
  background: #e11d48;
  color: #fff;
}
.consult-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}
.consult-box p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.55;
}
.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225,29,72,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-group {
  display: flex;
  gap: 20px;
  padding-top: 4px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.radio-group input { width: auto; accent-color: #e11d48; }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #fff;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col .social-links { margin: 16px 0; }
.footer-col .social-links a {
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: inline-flex;
  margin-bottom: 0;
}
.footer-col .social-links a:hover { background: #e11d48; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid,
  .work-grid,
  .serve-grid,
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .mission-visual { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav, .header-ctas { display: none; }
  .mobile-toggle { display: flex; }
  .welcome-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid,
  .work-grid,
  .serve-grid,
  .products-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ===== ANIMATIONS ===== */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger > *.reveal,
.stagger > *.reveal-scale {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Hero entrance */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 {
  opacity: 0;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-desc {
  opacity: 0;
  animation: fadeUp 0.8s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-stats {
  opacity: 0;
  animation: fadeUp 0.8s 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(225, 29, 72, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Button interactive polish */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}
.btn-primary.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Service / product / serve cards hover lift */
.service-card,
.product-card,
.serve-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover,
.product-card:hover:not(.product-cta),
.serve-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.service-card .service-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-img {
  transform: scale(1.06);
}
.service-icon,
.product-icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease;
}
.service-card:hover .service-icon,
.product-card:hover .product-icon {
  transform: scale(1.12) rotate(-4deg);
  background: #fee2e2;
}

/* Work grid filter transition */
.work-item {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-item.filtering-out {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.work-item.filtering-in {
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Why card & testimonial */
.why-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

/* Globe float */
.globe-icon {
  animation: float 5s ease-in-out infinite;
}

/* Nav link underline animation */
.nav a {
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e11d48;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover::after {
  width: 100%;
}

/* Filter pills */
.filter {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter:hover {
  transform: translateY(-2px);
}
.filter.active {
  transform: scale(1.05);
}

/* FAQ smooth open */
.faq-item {
  transition: background 0.25s ease;
}
.faq-item[open] {
  background: #f8fafc;
  border-radius: 8px;
  margin: 4px 0;
  padding: 0 12px;
}
.faq-item p {
  animation: fadeUp 0.35s ease;
}

/* Form focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transition: border-color 0.2s, box-shadow 0.25s;
}

/* Logo spin subtle on hover */
.logo img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo:hover img {
  transform: rotate(12deg) scale(1.08);
}

/* Values pills */
.values-list span {
  transition: all 0.3s ease;
  cursor: default;
}
.values-list span:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: #e11d48;
  color: #fff;
  transform: translateY(-2px);
}

/* Stat number counter ready */
.stat-num {
  display: inline-block;
  transition: transform 0.3s ease;
}
.stat:hover .stat-num {
  transform: scale(1.1);
  color: #60a5fa;
}

/* Header slide-in */
.header {
  animation: slideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #60a5fa);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1001;
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #be123c;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.5);
}

/* =========================================================
   CSS KEYFRAME ANIMATIONS LIBRARY
   ========================================================= */

/* --- Entrance / exit --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-80px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(80px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes scaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.85); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-12deg) scale(0.9); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

/* --- Continuous / ambient --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  60% { transform: translateY(-7px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  70% { transform: scale(1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* --- Gradient & color motion --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes textShine {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.15);
  }
  50% {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.25);
  }
}

/* --- Attention --- */
@keyframes attention {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(0.95) rotate(-2deg); }
  20%, 40% { transform: scale(1.05) rotate(2deg); }
  50% { transform: scale(1) rotate(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Ripple --- */
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Progress / loading --- */
@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}
@keyframes loadingDots {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   APPLY KEYFRAME ANIMATIONS TO SITE ELEMENTS
   ========================================================= */

/* Hero accent text shine */
.hero h1 .accent {
  background: linear-gradient(90deg, #60a5fa, #e11d48, #60a5fa, #e11d48);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 4s linear infinite;
}

/* Hero badge */
.hero-badge {
  animation: fadeUp 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             pulse 3s 1.2s ease-in-out infinite;
}

/* Logo continuous subtle float */
.logo img {
  animation: floatSlow 6s ease-in-out infinite;
}
.logo:hover img {
  animation: none;
  transform: rotate(12deg) scale(1.08);
}

/* Service / product icons on hover */
.service-card:hover .service-icon {
  animation: bounce 0.7s ease;
}
.product-card:hover .product-icon {
  animation: wiggle 0.5s ease;
}

/* Why Choose Us list sequential entrance */
.why-card li {
  opacity: 0;
  animation: fadeLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.why-card li:nth-child(1) { animation-delay: 0.15s; }
.why-card li:nth-child(2) { animation-delay: 0.25s; }
.why-card li:nth-child(3) { animation-delay: 0.35s; }
.why-card li:nth-child(4) { animation-delay: 0.45s; }
.why-card li:nth-child(5) { animation-delay: 0.55s; }
.why-card li:nth-child(6) { animation-delay: 0.65s; }
.why-card .check {
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.why-card li:nth-child(1) .check { animation-delay: 0.2s; }
.why-card li:nth-child(2) .check { animation-delay: 0.3s; }
.why-card li:nth-child(3) .check { animation-delay: 0.4s; }
.why-card li:nth-child(4) .check { animation-delay: 0.5s; }
.why-card li:nth-child(5) .check { animation-delay: 0.6s; }
.why-card li:nth-child(6) .check { animation-delay: 0.7s; }

/* Mission globe float + slow spin */
.globe-icon {
  animation: float 5s ease-in-out infinite, spinSlow 40s linear infinite;
}
.globe-icon:hover {
  animation: pulse 1s ease-in-out infinite;
}

/* Core values pills staggered scale-in */
.values-list span {
  opacity: 0;
  animation: scaleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.values-list span:nth-child(1) { animation-delay: 0.05s; }
.values-list span:nth-child(2) { animation-delay: 0.1s; }
.values-list span:nth-child(3) { animation-delay: 0.15s; }
.values-list span:nth-child(4) { animation-delay: 0.2s; }
.values-list span:nth-child(5) { animation-delay: 0.25s; }
.values-list span:nth-child(6) { animation-delay: 0.3s; }
.values-list span:nth-child(7) { animation-delay: 0.35s; }
.values-list span:hover {
  animation: heartbeat 0.8s ease;
}

/* Serve card number pulse */
.serve-card:hover .serve-num {
  animation: pulse 0.8s ease;
  opacity: 0.6;
}

/* Testimonial quote mark */
.quote-mark {
  animation: fadeDown 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.testimonial-card:hover .quote-mark {
  animation: heartbeat 1s ease;
}

/* Active testimonial dot */
.dot.active {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Product CTA border glow */
.product-cta {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Form focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: borderGlow 2s ease-in-out infinite;
}

/* Primary CTA ambient pulse */
.btn-primary.pulse {
  animation: pulse-glow 2.2s ease-in-out infinite;
}

/* Back to top pop-in */
.back-to-top.visible {
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll progress shimmer */
.scroll-progress {
  position: relative;
  overflow: hidden;
}
.scroll-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* Hero overlay gradient motion */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.78) 40%,
    rgba(30, 58, 138, 0.55) 70%,
    rgba(15, 23, 42, 0.9) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

/* Filter active pop */
.filter.active {
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Work overlay label */
.work-overlay span {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.work-item:hover .work-overlay span {
  transform: translateY(0);
  opacity: 1;
  animation: fadeUp 0.35s ease;
}

/* Social icons spin on hover */
.social-links a:hover {
  animation: spin 0.5s ease;
}

/* Stat number bounce */
.stat:hover .stat-num {
  animation: bounce 0.6s ease;
}

/* =========================================================
   REUSABLE UTILITY ANIMATION CLASSES
   ========================================================= */
.anim-fade-in { animation: fadeIn 0.6s ease both; }
.anim-fade-up { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-fade-down { animation: fadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-fade-left { animation: fadeLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-fade-right { animation: fadeRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-scale-in { animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-pop-in { animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-zoom-in { animation: zoomIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-rotate-in { animation: rotateIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-float { animation: float 4s ease-in-out infinite; }
.anim-pulse { animation: pulse 2s ease-in-out infinite; }
.anim-spin { animation: spin 1s linear infinite; }
.anim-bounce { animation: bounce 1s ease infinite; }
.anim-wiggle { animation: wiggle 0.6s ease; }
.anim-shake { animation: shake 0.5s ease; }
.anim-heartbeat { animation: heartbeat 1.2s ease infinite; }
.anim-gradient {
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

/* Delay helpers */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* =========================================================
   CSS SCROLL-DRIVEN ANIMATIONS
   Progressive enhancement — falls back to JS reveals
   ========================================================= */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* --- Scroll progress bar driven by page scroll --- */
    .scroll-progress {
      animation: none; /* cancel any time-based */
      transform-origin: left center;
      transform: scaleX(0);
      animation: sda-progress linear forwards;
      animation-timeline: scroll(root block);
      animation-range: 0% 100%;
    }
    @keyframes sda-progress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
    /* Keep the shimmer as a separate overlay effect */
    .scroll-progress::after {
      animation: shimmer 2s linear infinite;
    }

    /* --- View-timeline reveals (replace JS opacity toggles when supported) --- */
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
      animation: sda-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
      animation-duration: 1ms; /* Firefox compat + hide if unsupported mid-path */
    }
    .reveal-left {
      opacity: 1;
      transform: none;
      transition: none;
      animation: sda-fade-left linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
      animation-duration: 1ms;
    }
    .reveal-right {
      opacity: 1;
      transform: none;
      transition: none;
      animation: sda-fade-right linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
      animation-duration: 1ms;
    }
    .reveal-scale {
      opacity: 1;
      transform: none;
      transition: none;
      animation: sda-scale-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
      animation-duration: 1ms;
    }

    @keyframes sda-fade-up {
      from { opacity: 0; transform: translateY(40px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes sda-fade-left {
      from { opacity: 0; transform: translateX(-48px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes sda-fade-right {
      from { opacity: 0; transform: translateX(48px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes sda-scale-in {
      from { opacity: 0; transform: scale(0.9); }
      to   { opacity: 1; transform: scale(1); }
    }

    /* Stagger via animation-range offsets on grid children */
    .stagger > *.reveal-scale:nth-child(1) { animation-range: entry 0% entry 80%; }
    .stagger > *.reveal-scale:nth-child(2) { animation-range: entry 5% entry 85%; }
    .stagger > *.reveal-scale:nth-child(3) { animation-range: entry 10% entry 90%; }
    .stagger > *.reveal-scale:nth-child(4) { animation-range: entry 0% entry 80%; }
    .stagger > *.reveal-scale:nth-child(5) { animation-range: entry 5% entry 85%; }
    .stagger > *.reveal-scale:nth-child(6) { animation-range: entry 10% entry 90%; }
    .stagger > *.reveal-scale:nth-child(7) { animation-range: entry 0% entry 80%; }
    .stagger > *.reveal-scale:nth-child(8) { animation-range: entry 5% entry 85%; }
    .stagger > *.reveal-scale:nth-child(9) { animation-range: entry 10% entry 90%; }

    /* --- Parallax-ish hero background via scroll timeline --- */
    .hero {
      background-attachment: scroll;
    }
    .hero-overlay {
      /* keep gradientShift for ambient motion; add slight opacity shift on scroll */
      animation:
        gradientShift 12s ease infinite,
        sda-hero-dim linear both;
      animation-timeline: auto, scroll(root block);
      animation-range: normal, 0% 40%;
    }
    @keyframes sda-hero-dim {
      from { opacity: 1; }
      to   { opacity: 0.85; }
    }

    /* --- Header shrink / densify over first portion of scroll --- */
    .header {
      animation: sda-header-solid linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 120px;
      animation-duration: 1ms;
    }
    @keyframes sda-header-solid {
      from {
        background: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(8px);
      }
      to {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
      }
    }

    /* --- Service / work cards: subtle scale as they enter --- */
    .service-card,
    .work-item {
      animation: sda-card-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
      animation-duration: 1ms;
    }
    @keyframes sda-card-rise {
      from { opacity: 0.4; transform: translateY(32px) scale(0.96); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* --- Mission globe: rotate slightly linked to view progress --- */
    .globe-icon {
      animation:
        float 5s ease-in-out infinite,
        spinSlow 40s linear infinite,
        sda-globe-tilt linear both;
      animation-timeline: auto, auto, view();
      animation-range: normal, normal, entry 0% exit 100%;
    }
    @keyframes sda-globe-tilt {
      from { filter: brightness(0.85); }
      50%  { filter: brightness(1.1); }
      to   { filter: brightness(0.9); }
    }

    /* --- Section headers: scrub in over entry --- */
    .section-header {
      animation: sda-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
      animation-duration: 1ms;
    }

    /* --- Values pills: cascade via range offsets --- */
    .values-list span {
      opacity: 1;
      animation: sda-scale-in linear both;
      animation-timeline: view();
      animation-duration: 1ms;
    }
    .values-list span:nth-child(1) { animation-range: entry 0% entry 50%; }
    .values-list span:nth-child(2) { animation-range: entry 5% entry 55%; }
    .values-list span:nth-child(3) { animation-range: entry 10% entry 60%; }
    .values-list span:nth-child(4) { animation-range: entry 15% entry 65%; }
    .values-list span:nth-child(5) { animation-range: entry 20% entry 70%; }
    .values-list span:nth-child(6) { animation-range: entry 25% entry 75%; }
    .values-list span:nth-child(7) { animation-range: entry 30% entry 80%; }

    /* --- Contact form slide from right as section enters --- */
    .contact-right {
      animation: sda-fade-right linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
      animation-duration: 1ms;
    }
    .contact-left {
      animation: sda-fade-left linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
      animation-duration: 1ms;
    }

    /* --- Back-to-top visibility could stay JS; optional pure CSS is hard --- */

  } /* prefers-reduced-motion */
} /* @supports */

/* Feature detection note for unsupported browsers:
   The earlier .reveal / IntersectionObserver JS path remains active.
   When scroll-driven animations are supported, the CSS above overrides
   the transition-based reveals with timeline-linked keyframes. */

/* =========================================================
   MULTI-PAGE LAYOUT STYLES
   ========================================================= */

.nav a.active-nav {
  color: #fff;
}
.nav a.active-nav::after {
  width: 100%;
}

.page-hero {
  padding: 140px 0 64px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: -0.3px;
}
.page-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.65;
}

.cta-band {
  padding: 72px 0;
  background: #0f172a;
  color: #fff;
  text-align: center;
}
.cta-band-inner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-band-inner p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
}

/* Services detail page */
.services-page {
  padding: 64px 0 80px;
  background: #f8fafc;
}
.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  scroll-margin-top: 90px;
}
.service-detail-icon {
  width: 56px;
  height: 56px;
  background: #fef2f2;
  color: #e11d48;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.service-detail-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}
.service-detail-body .lead {
  font-size: 16px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 12px;
}
.service-detail-body p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.bullet-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #475569;
}
.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e11d48;
  font-weight: 700;
  font-size: 12px;
}

/* Work page extras */
.work-grid-page {
  grid-template-columns: repeat(3, 1fr);
}
.work-item-page {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}
.work-item-page img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.work-item-page .work-overlay {
  opacity: 0;
}
.work-item-page:hover .work-overlay {
  opacity: 1;
}
.work-meta {
  padding: 16px 18px 20px;
}
.work-meta h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.work-meta p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.products-page-grid .product-card {
  min-height: 280px;
}

.form-note {
  margin-top: 12px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
}

.faq-item a {
  color: #e11d48;
  font-weight: 500;
}
.faq-item a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .work-grid-page {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .work-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Honeypot — hidden from users */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.form-status--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-status--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}
