/* ============================================
   Home Page Styles
   ============================================ */

:root {
  --navy: #0a1628;
  --blue-accent: #64B5F6;
  --green-brand: #3DA935;
}

/* Brand signature — the "Revive" green treatment (upright, per client request) */
.rv {
  color: var(--green-brand);
  font-weight: 800;
}

body.home-page {
  background: #f8fbff;
}

body.home-page .nav {
  position: fixed;
}

body.home-page .nav:not(.scrolled) {
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.5), rgba(7, 15, 28, 0.14) 68%, transparent);
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.home-page .nav:not(.scrolled) .nav-left,
body.home-page .nav:not(.scrolled) .nav-right {
  border-color: rgba(255, 255, 255, 0.14);
}

body.home-page .nav:not(.scrolled) .nav-logo-link:hover {
  opacity: 0.9;
}

body.home-page .nav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

body.home-page .nav:not(.scrolled) .nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

body.home-page .nav:not(.scrolled) .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

body.home-page .nav:not(.scrolled) .nav-link::after {
  background: var(--white);
}

body.home-page .nav:not(.scrolled) .nav-user {
  color: rgba(255, 255, 255, 0.62);
}

body.home-page .nav:not(.scrolled) .nav-user strong {
  color: var(--white);
}

body.home-page .nav:not(.scrolled) .nav-cta {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.home-page .nav:not(.scrolled) .nav-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.home-page .nav:not(.scrolled) .nav-hamburger {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

body.home-page .nav:not(.scrolled) .nav-hamburger:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

body.home-page .nav:not(.scrolled) .nav-hamburger span {
  background: var(--white);
}

/* Call us — light treatment over the transparent hero nav */
body.home-page .nav:not(.scrolled) .nav-call { border-right-color: rgba(255, 255, 255, 0.14); }
body.home-page .nav:not(.scrolled) .nav-call-ico { background: rgba(255, 255, 255, 0.12); color: #fff; }
body.home-page .nav:not(.scrolled) .nav-call-s { color: rgba(255, 255, 255, 0.6); }
body.home-page .nav:not(.scrolled) .nav-call-n { color: #fff; }

/* ====== HOMEPAGE SECTION SPACING ====== */
.hp-about {
  padding-top: 68px;
  padding-bottom: 68px;
}

.hp-projects {
  padding-top: 52px;
  padding-bottom: 68px;
}

.hp-testimonials {
  padding-top: 40px;
  padding-bottom: 68px;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 64px) 0 150px;
  background:
    radial-gradient(120% 92% at 80% 6%, rgba(21, 101, 192, 0.30), transparent 56%),
    radial-gradient(70% 70% at 2% 100%, rgba(61, 169, 53, 0.10), transparent 60%),
    linear-gradient(140deg, #091322, #10233c 52%, #0a1628);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

/* Banner product visual — actual lined fittings */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  border-radius: 40px;
  background:
    radial-gradient(55% 60% at 68% 36%, rgba(61, 169, 53, 0.30), transparent 68%),
    radial-gradient(60% 60% at 28% 72%, rgba(21, 101, 192, 0.34), transparent 70%);
  filter: blur(34px);
}

.hero-visual-card {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.75);
  /* tilt removed per client request — card sits straight (was rotate(-1.4deg)) */
}

.hero-visual-card img {
  display: block;
  width: 100%;
}

.hero-visual-card video {
  display: block;
  width: 100%;
  aspect-ratio: 603 / 396;   /* keep the exact same box the image occupied */
  height: auto;
  object-fit: cover;
  background: #0b1220;        /* behind the poster while the clip loads */
  cursor: pointer;
}

.hero-visual-chip {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 100px;
}

.hero-visual-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-brand);
}

.hero-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 22px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}

.hero-btn svg { width: 15px; height: 15px; }

.hero-btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(21, 101, 192, 0.5);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -6px rgba(21, 101, 192, 0.6);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

/* ====== HERO BEFORE/AFTER BRIDGE ====== */
.hero-ba-float {
  position: relative;
  z-index: 3;
  max-width: var(--content-max);
  margin: -90px auto 0;
  padding: 0 var(--content-pad);
}

.hero-ba-card {
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 34px 70px -28px rgba(10, 22, 40, 0.42);
  border: 1px solid var(--gray-100);
}

.hero-ba-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 18px;
  flex-wrap: wrap;
}

.hero-ba-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
}

.hero-ba-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--gray-900);
}

.hero-ba-title b { font-weight: 700; color: var(--blue); }

.hero-ba-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 7px 14px;
  border-radius: 100px;
}

.hero-ba-hint-ico { color: var(--blue); font-size: 13px; }


/* ====== ABOUT ====== */
.about-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 44px;
}

.about-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray-900);
}

.about-heading .muted { color: var(--gray-500); }

.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
  min-height: 0;
}

.about-image-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8f1fb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-bottom: 32px;
}

.about-stat-value {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 300;
  color: var(--gray-900);
  line-height: 1.15;
}

.about-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 2px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.about-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}


/* ====== SERVICES ====== */
.svc-section {
  background: var(--gray-50);
  padding: 68px 0;
}

.svc-section .section {
  padding-bottom: 0;
}

.svc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.svc-top-left { flex: 1; min-width: 0; }

.svc-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--gray-900);
  max-width: 480px;
}

.svc-top-right {
  max-width: 340px;
  padding-top: 40px;
}

.svc-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
}

.svc-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.svc-image {
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray-200);
  position: relative;
  height: 100%;
  min-height: 400px;
}

.svc-image-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8f1fb, #d1d5db);
}

.svc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--white);
  width: fit-content;
}

.svc-top-left .tag,
.why-top-left .tag,
.proj-top-left .tag,
.hp-testimonials > .tag {
  margin-bottom: 18px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
}

.tag-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}
.tag-dark .tag-dot { background: rgba(255,255,255,0.4); }

.svc-image-tags {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}

.svc-image-tag {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.svc-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 6px;
}

.svc-accordion::-webkit-scrollbar { width: 3px; }
.svc-accordion::-webkit-scrollbar-track { background: transparent; }
.svc-accordion::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.svc-card {
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--gray-200);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.svc-card:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.35);
  outline-offset: 3px;
}

.svc-card:hover { background: var(--gray-100); }
.svc-card.active { background: var(--blue-light); border-color: var(--blue-light); }

.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.svc-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.svc-card-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 24px;
}

.svc-card.active .svc-card-num { color: var(--blue); }

.svc-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

.svc-card.active .svc-card-title { color: var(--gray-900); }

.svc-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.svc-card.active .svc-card-arrow { background: var(--blue); border-color: var(--blue); }
.svc-card-arrow svg { width: 16px; height: 16px; color: var(--gray-500); }
.svc-card.active .svc-card-arrow svg { color: var(--white); }

.svc-card-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 40px;
}

.svc-card.active .svc-card-desc { max-height: 200px; padding-top: 12px; }

.svc-card-desc p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}


/* ====== WHY US (DARK) ====== */
.why-section {
  background: var(--gray-900);
  padding: 68px var(--content-pad) 88px;
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(21,101,192,0.06);
  filter: blur(80px);
}

.why-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.why-top-left { flex: 1; min-width: 0; }

.why-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  max-width: 480px;
}

.why-top-right { max-width: 380px; padding-top: 40px; }

.why-desc-text {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(21,101,192,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.why-card-icon svg { width: 22px; height: 22px; color: #64B5F6; }
.why-card-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.why-card-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* Before/After grid — lives in the hero bridge card */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ba-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  background:
    radial-gradient(circle at top left, rgba(79, 195, 247, 0.18), transparent 55%),
    linear-gradient(145deg, #edf4fb 0%, #dce8f5 100%);
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ba-slider:hover {
  border-color: rgba(21, 101, 192, 0.35);
  box-shadow: 0 18px 36px -16px rgba(10, 22, 40, 0.3);
}

.ba-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(10, 18, 32, 0.08));
  pointer-events: none;
  z-index: 1;
}

.ba-media,
.ba-before-reveal {
  position: absolute;
  inset: 0;
}

.ba-before-reveal {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  overflow: hidden;
  z-index: 2;
}

.ba-media-inner {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 48%),
    linear-gradient(145deg, #edf4fb 0%, #c7d8ea 100%);
}

.ba-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ba-media-inner.is-placeholder,
.ba-image-placeholder {
  width: 100%;
  height: 100%;
}

.ba-image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.16)),
    linear-gradient(145deg, #edf4fb 0%, #d6e3ef 100%);
}

.ba-image-placeholder::before {
  content: 'Image Preview';
  font-size: 10px;
  font-weight: 700;
  color: rgba(17,24,39,0.45);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ba-slider:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 4px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 3px;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.15), 0 0 12px rgba(0,0,0,0.28);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(21, 101, 192, 0.25);
  box-shadow: 0 10px 26px rgba(15,23,42,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.2s ease;
}

.ba-slider:hover .ba-handle-circle { transform: translate(-50%, -50%) scale(1.06); }

.ba-arr { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.ba-arr-l { border-right: 5px solid var(--blue); }
.ba-arr-r { border-left: 5px solid var(--blue); }

.ba-label {
  position: absolute;
  bottom: 12px;
  z-index: 4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  backdrop-filter: blur(8px);
}

.ba-label-b { left: 12px; background: rgba(10, 22, 40, 0.62); }
.ba-label-a { right: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }


/* ====== PROJECTS ====== */
.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.proj-top-left { flex: 1; min-width: 0; }

.proj-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--gray-900);
  max-width: 520px;
}

.proj-top-right { max-width: 340px; padding-top: 40px; }

.proj-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

#proj-small-grid { display: contents; }

.proj-big {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.proj-big-image {
  width: 100%;
  aspect-ratio: 4 / 3.5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 14px;
  position: relative;
}

.proj-big-image-ph { position: absolute; inset: 0; background: linear-gradient(135deg, #e8f1fb, #d1d5db); }
.proj-big-image img,
.proj-small-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-big-type { font-size: 14px; font-weight: 500; color: var(--gray-500); margin-bottom: 4px; }
.proj-big-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.3; }
.proj-big-desc { font-size: 15px; color: var(--gray-500); line-height: 1.7; }

.proj-small {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proj-small-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 10px;
  position: relative;
}

.proj-small-image-ph { position: absolute; inset: 0; background: linear-gradient(135deg, #e8f1fb, #d1d5db); }
.proj-small-type { font-size: 12px; font-weight: 500; color: var(--gray-500); margin-bottom: 2px; }
.proj-small-title { font-size: 14px; font-weight: 600; color: var(--gray-900); line-height: 1.3; }

.proj-cta-wrap { display: flex; align-items: center; justify-content: center; }

.proj-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  background: var(--gray-900);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.proj-cta:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,0.25); }
.proj-cta svg { width: 14px; height: 14px; }
.proj-cta:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.35);
  outline-offset: 3px;
}

.proj-big:focus-visible,
.proj-small:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.35);
  outline-offset: 3px;
  border-radius: 16px;
}


/* ====== TESTIMONIALS ====== */
.test-section {
  text-align: center;
  background: var(--gray-50);
}

.test-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.test-subtitle {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.test-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 32px 0 16px;
  touch-action: pan-y;
}

.test-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-slide { min-width: 100%; padding: 0 20px; }

.test-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--gray-800);
  margin-bottom: 36px;
}

.test-author { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.test-role { font-size: 14px; color: var(--gray-400); font-weight: 500; }

.test-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.test-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.test-btn:hover { border-color: var(--gray-300); color: var(--gray-800); }
.test-btn.dark { background: var(--gray-900); border-color: var(--gray-900); color: var(--white); }
.test-btn.dark:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.test-btn:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.35);
  outline-offset: 3px;
}
.test-btn svg { width: 16px; height: 16px; }

.test-dots { display: flex; gap: 5px; }
.test-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}
.test-dot.active { width: 22px; border-radius: 3px; background: var(--gray-900); }
.test-dot:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.35);
  outline-offset: 4px;
}


/* ====== TOUCH DEVICE HOVER RESETS ====== */
@media (hover: none) {
  .svc-card:hover { background: var(--white); }
  .why-card:hover {
    transform: none;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
  }
  .proj-cta:hover { background: var(--gray-900); transform: none; box-shadow: none; }
  .test-btn:hover { border-color: var(--gray-200); color: var(--gray-500); }
  .test-btn.dark:hover { background: var(--gray-900); border-color: var(--gray-900); color: var(--white); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { max-width: 460px; }
  .about-top { grid-template-columns: 1fr; gap: 16px; }
  .about-bottom { grid-template-columns: 1fr; gap: 28px; }
  .about-image { aspect-ratio: 16/10; max-height: 320px; }
  .about-stats { gap: 12px 22px; }
  .svc-top, .why-top, .proj-top { flex-direction: column; gap: 16px; }
  .svc-top-right, .why-top-right, .proj-top-right { max-width: 100%; padding-top: 0; }
  .svc-top, .why-top, .proj-top { margin-bottom: 32px; }
  .svc-bottom { grid-template-columns: 1fr; gap: 28px; }
  .svc-image { aspect-ratio: 16/10; max-height: 320px; height: auto; min-height: 0; }
  .svc-accordion { max-height: none; overflow-y: visible; }
  .proj-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .proj-big { grid-column: 1 / 3; grid-row: auto; }
  .proj-big-image { aspect-ratio: 16/9; }
  .proj-cta-wrap { grid-column: 1 / 3; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-height) + 40px) 0 130px;
  }
  .hero-label { margin-bottom: 16px; }
  .hero-title { margin-bottom: 16px; }
  .ba-grid { grid-template-columns: 1fr; }
  .hero-ba-float { margin-top: -72px; }
  .hp-about { padding-top: 60px; padding-bottom: 60px; }
  .hp-projects { padding-top: 48px; padding-bottom: 60px; }
  .hp-testimonials { padding-top: 36px; padding-bottom: 60px; }
  .svc-section { padding: 60px 0; }
  .why-section { padding: 60px var(--content-pad) 76px; }
  .about-top { gap: 14px; margin-bottom: 32px; }
  .about-bottom { gap: 24px; }
  .about-stats { gap: 12px 18px; margin-bottom: 24px; }
  .svc-image-tags { bottom: 12px; left: 12px; max-width: calc(100% - 24px); }
  .svc-image-tag { padding: 6px 12px; font-size: 11px; }
  .svc-card.active .svc-card-desc { max-height: 240px; }
  .why-cards { gap: 12px; }
  .why-card { padding: 24px 20px; border-radius: 14px; }
  .ba-wrap { margin-top: -50px; }
  .ba-box { padding: 7px; }
  .proj-grid { gap: 20px; }
  .proj-big-title { font-size: 18px; }
  .proj-big-desc { font-size: 14px; }
  .test-slider { padding: 24px 0 12px; }
  .test-slide { padding: 0 12px; }
  .test-quote { margin-bottom: 28px; }
  .test-nav { margin-top: 24px; }
}

@media (max-width: 640px) {
  .hero-visual { display: none; }
  .hp-about { padding-top: 48px; padding-bottom: 48px; }
  .hp-projects { padding-top: 40px; padding-bottom: 52px; }
  .hp-testimonials { padding-top: 32px; padding-bottom: 52px; }
  .svc-section { padding: 48px 0; }
  .hero {
    padding: calc(var(--nav-height) + 32px) 0 110px;
  }
  .hero-label {
    font-size: 11.5px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
  }
  .hero-title { font-size: 30px; }
  .hero-tagline { font-size: 17px; }
  .hero-ba-float { margin-top: -64px; }
  .about-top { gap: 12px; margin-bottom: 28px; }
  .about-heading { line-height: 1.3; }
  .about-image { aspect-ratio: 4/3; max-height: 240px; }
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
  .about-stat-value { font-size: clamp(28px, 8vw, 34px); }
  .about-stat-label { font-size: 13px; margin-bottom: 8px; }
  .about-desc { font-size: 14px; line-height: 1.75; }
  .svc-top, .why-top, .proj-top { margin-bottom: 24px; }
  .svc-bottom { gap: 20px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-big { grid-column: 1; }
  .proj-cta-wrap { grid-column: 1; }
  .proj-cta { width: 100%; justify-content: center; }
  #proj-small-grid {
    display: grid;
    gap: 18px;
  }
  .why-cards { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-wrap { margin-top: -40px; }
  .ba-box { padding: 6px; border-radius: 16px; }
  .ba-slider {
    border-radius: 10px;
    aspect-ratio: 5 / 4;
  }
  .ba-handle-circle {
    width: 24px;
    height: 24px;
  }
  .ba-label { bottom: 10px; font-size: 9px; padding: 5px 9px; }
  .ba-label-b { left: 10px; }
  .ba-label-a { right: 10px; }
  .why-section { padding: 48px var(--content-pad) 64px; }
  .why-card { padding: 20px 18px; }
  .why-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
  }
  .svc-card {
    padding: 16px;
    border-radius: 14px;
  }
  .svc-card-top { align-items: flex-start; }
  .svc-card-left { gap: 12px; }
  .svc-card-title { font-size: 14px; }
  .svc-card-desc { padding-left: 0; }
  .svc-card.active .svc-card-desc { max-height: 280px; }
  .proj-big-image,
  .proj-small-image { margin-bottom: 12px; }
  .proj-big-type,
  .proj-small-type { font-size: 11.5px; }
  .proj-big-title { font-size: 17px; margin-bottom: 6px; }
  .proj-small-title { font-size: 15px; }
  .test-heading { margin-bottom: 10px; }
  .test-subtitle {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .test-slider { padding: 20px 0 8px; }
  .test-slide { padding: 0 6px; }
  .test-quote {
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .test-author { font-size: 15px; }
  .test-role { font-size: 13px; }
  .test-nav { gap: 10px; }
  .test-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: calc(var(--nav-height) + 28px) 0 100px;
  }
  .hero-title { font-size: 28px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-image { max-height: 220px; }
  .svc-image { max-height: 260px; }
  .svc-card-arrow {
    width: 32px;
    height: 32px;
  }
  .ba-slider { aspect-ratio: 1 / 1; }
  .test-quote { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 14px; }
}

/* ============================================================================
   HOME-PAGE-SPECIFIC ENTRANCE ANIMATIONS
   (Universal fade-in rules live in styles.css; this file only holds the
   home hero stagger and the why-card hover lift.)
   ============================================================================ */

/* Hero entrance — wordmark + tagline + subtitle stagger in on page load */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.hero-label {
  animation: hero-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  animation: hero-fade-in 0.7s 0.10s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-tagline {
  animation: hero-fade-in 0.7s 0.20s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-cta {
  animation: hero-fade-in 0.7s 0.30s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Product visual eases in alongside the hero text */
.hero-visual {
  animation: hero-fade-in 0.7s 0.30s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Before/after bridge card rises in after the hero text settles */
.hero-ba-float {
  animation: hero-fade-in 0.7s 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Gentle hover lift on the "why us" cards */
.why-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* Respect reduced motion: hero entrance + hover lift are turned off explicitly
   here. The shared global rule in styles.css already neutralises all
   transition / animation durations site-wide, but being explicit avoids
   any layout flash on the home hero. */
@media (prefers-reduced-motion: reduce) {
  .hero-label,
  .hero-title,
  .hero-tagline,
  .hero-cta,
  .hero-visual,
  .hero-ba-float {
    animation: none;
  }
  .why-card {
    transition: none;
  }
  .why-card:hover {
    transform: none;
    box-shadow: none;
  }
}
