/**
 * Kisima homepage — unified layout & interactions
 * Track-record stats live in #home-proof (.home-hero__proof) inside the hero.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.home {
  font-family: 'Plus Jakarta Sans', var(--kisima-font, 'Inter', sans-serif);
  color: #0f172a;
  overflow-x: hidden;
}

.home-section {
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.home-wrap {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.home-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.home-eyebrow--light {
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.home-head h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.home-head p {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ——— Preloader (homepage only — overrides style.css spinner) ——— */
body[data-kisima-footer='skip'] #preloader {
  background: #0f172a !important;
}

body[data-kisima-footer='skip'] #preloader::before {
  display: none !important;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader .preloader-logo {
  width: 80px;
  height: auto;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

#preloader .preloader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

#preloader .preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  border-radius: 99px;
  animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ——— Hero (cinematic video) ——— */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--kisima-header-h, 76px) + 1.5rem) 0 5.5rem;
  overflow: hidden;
  isolation: isolate;
}

.home-hero__cinema {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-hero__sheet {
  position: relative;
  z-index: 1;
}

.home-hero__sheet-notch {
  display: none;
}

.home-hero__sub--short {
  display: none;
}

@media (min-width: 768px) {
  .home-hero__caption {
    margin: 0;
    padding: 0;
  }
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-hero__video {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: heroVideoDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroVideoDrift {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.home-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 40%, transparent 0%, rgba(8, 15, 30, 0.55) 100%),
    linear-gradient(105deg, rgba(6, 12, 28, 0.92) 0%, rgba(6, 12, 28, 0.55) 42%, rgba(6, 12, 28, 0.25) 68%, rgba(6, 12, 28, 0.5) 100%);
  z-index: 1;
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(8, 15, 30, 0.97) 0%, transparent 28%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 4;
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.home-hero__panel {
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: heroPanelIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

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

.home-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 0.85rem;
}

.home-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: heroLivePulse 2s ease-out infinite;
}

@keyframes heroLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.home-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-hero__line {
  display: block;
  animation: heroLineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__line:nth-child(1) { animation-delay: 0.35s; }
.home-hero__line:nth-child(2) { animation-delay: 0.5s; }

.home-hero__line--accent {
  background: linear-gradient(100deg, #fde68a 0%, #6ee7b7 45%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.home-hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 34rem;
  animation: heroLineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: heroLineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.home-btn--lg {
  padding: 1rem 1.65rem;
  font-size: 1rem;
}

/* ——— Hero proof strip (blue stats band) ——— */
.home-hero__proof {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 2.5rem));
  margin: clamp(0.5rem, 2vw, 1.25rem) auto 0;
  animation: heroLineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.home-hero__proof-inner {
  padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.75rem);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.97) 0%, rgba(37, 99, 235, 0.94) 52%, rgba(29, 78, 216, 0.97) 100%);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 20px;
  box-shadow:
    0 20px 56px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-hero__proof-label {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  text-align: center;
}

.home-hero__proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-hero__proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-hero__proof-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.home-hero__proof-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 10px;
}

.home-hero__proof-item--rating i {
  color: #fde047;
  background: rgba(234, 179, 8, 0.22);
}

.home-hero__proof-item strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.home-hero__proof-item strong em {
  font-style: normal;
}

.home-hero__proof-item span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #bfdbfe;
  line-height: 1.35;
}

.home-hero__rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: heroRailIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

@keyframes heroRailIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-hero__card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.home-hero__card:hover {
  transform: translateX(-4px);
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(15, 23, 42, 0.72);
}

.home-hero__card-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.15rem;
  color: #93c5fd;
}

.home-hero__card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.home-hero__card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

.home-hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.25rem;
  z-index: 4;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  pointer-events: none;
}

.home-hero__tags {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: heroMarquee 32s linear infinite;
}

.home-hero__tags span {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.home-hero__tags span::before {
  content: '◆';
  margin-right: 0.75rem;
  color: rgba(52, 211, 153, 0.5);
  font-size: 0.5rem;
  vertical-align: middle;
}

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

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn--primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-btn--wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.home-hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.home-hero__scroll:hover {
  color: #fff;
}

.home-hero__scroll-ring {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: heroScrollBounce 2.2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__video,
  .home-hero__tags,
  .home-hero__live-dot,
  .home-hero__scroll-ring {
    animation: none;
  }

  .home-hero__panel,
  .home-hero__line,
  .home-hero__sub,
  .home-hero__actions,
  .home-hero__proof,
  .home-hero__rail {
    animation: none;
  }
}

/* ——— Services ——— */
.home-services {
  background: #fff;
}

#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.home-service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}

.home-service-card__img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.home-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-service-card:hover .home-service-card__img img {
  transform: scale(1.06);
}

.home-service-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-service-card__body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.home-service-card__body p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.home-service-card__link {
  font-weight: 700;
  font-size: 0.88rem;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-service-card__link:hover {
  color: #1d4ed8;
  gap: 0.55rem;
}

.home-service-card--1 { --home-service-accent: #2563eb; }
.home-service-card--2 { --home-service-accent: #7c3aed; }
.home-service-card--3 { --home-service-accent: #059669; }
.home-service-card--4 { --home-service-accent: #ea580c; }

/* Pending grids (single loader UX) */
.home-grid-pending {
  display: grid;
  gap: 1rem;
  min-height: 140px;
}

.home-grid-pending::before {
  content: '';
  grid-column: 1 / -1;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: homeShimmer 1.2s ease-in-out infinite;
}

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

.home-grid-error {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  margin: 0;
}

/* ——— Process ——— */
.home-process {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.home-process__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-step:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1);
}

.home-step__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.home-step:nth-child(1) .home-step__num { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.home-step:nth-child(2) .home-step__num { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.home-step:nth-child(3) .home-step__num { background: linear-gradient(135deg, #059669, #047857); }
.home-step:nth-child(4) .home-step__num { background: linear-gradient(135deg, #f97316, #ea580c); }

.home-step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.home-step p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ——— About ——— */
.home-about {
  background: #fff;
}

.home-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.home-about__text p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.home-about__img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.home-about__img img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.home-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-value {
  padding: 1.35rem;
  background: #f8fafc;
  border-radius: 14px;
  border-left: 4px solid #2563eb;
}

.home-value:nth-child(2) { border-left-color: #7c3aed; }
.home-value:nth-child(3) { border-left-color: #059669; }

.home-value strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.home-value p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ——— Featured work ——— */
.home-work {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}

#work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.home-work-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.home-work-card:hover {
  transform: translateY(-8px);
  color: inherit;
}

.home-work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.home-work-card__body {
  padding: 1.25rem 1.5rem;
}

.home-work-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  margin-bottom: 0.5rem;
  display: block;
}

.home-work-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.home-work-card p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.home-work__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ——— Insights / blog ——— */
.home-insights {
  background: #fff;
}

#insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.home-insight-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-insight-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
}

.home-insight-card__tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  width: fit-content;
}

.home-insight-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e40af;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.home-insight-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 1rem;
}

.home-insight-card__meta {
  flex: 0;
  margin: -0.5rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.home-insight-card a {
  font-weight: 700;
  font-size: 0.88rem;
  color: #2563eb;
  text-decoration: none;
}

/* ——— Network (logos only — no stats) ——— */
.kisima-close__network .kisima-close__stats {
  display: none !important;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact CTA copy must stay readable (no scroll-hide) */
.kisima-close__contact-header,
.kisima-close__contact-header[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Responsive */
@media (min-width: 768px) {
  .home-hero__proof-label {
    text-align: left;
  }

  .home-hero__proof-item--rating strong em {
    color: #fde047;
  }
}

@media (max-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .home-hero__rail {
    display: none;
  }

  .home-hero__proof {
    width: min(1180px, calc(100% - 2.5rem));
  }

  .home-hero__vignette {
    background:
      radial-gradient(ellipse 90% 80% at 50% 30%, transparent 0%, rgba(8, 15, 30, 0.65) 100%),
      linear-gradient(180deg, rgba(6, 12, 28, 0.88) 0%, rgba(6, 12, 28, 0.55) 55%, rgba(6, 12, 28, 0.85) 100%);
  }
}

@media (max-width: 900px) {
  .home-hero__proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-about__grid {
    grid-template-columns: 1fr;
  }

  .home-values {
    grid-template-columns: 1fr;
  }

  .home-hero__foot {
    bottom: 4rem;
  }
}

/* ——— Phone only (≤767px) — desktop/laptop unchanged ——— */
@media (max-width: 767px) {
  .home {
    --home-gutter: max(1.25rem, env(safe-area-inset-left, 0px));
    --home-gutter-end: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .home-section {
    padding: 3.5rem var(--home-gutter) 3.75rem var(--home-gutter-end);
  }

  .home-wrap {
    width: 100%;
    max-width: 100%;
  }

  .home-eyebrow {
    font-size: 0.68rem;
    padding: 0.38rem 0.85rem;
  }

  .home-head {
    text-align: left;
    max-width: none;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
  }

  .home-services .home-head,
  .home-work .home-head,
  .home-insights .home-head {
    border-bottom-color: rgba(37, 99, 235, 0.2);
  }

  .home-head h2 {
    font-size: clamp(1.5rem, 6.8vw, 1.95rem);
    letter-spacing: -0.02em;
  }

  .home-head p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* — Hero: cinema top + action sheet (not a tall thin column) — */
  .home-hero {
    min-height: auto;
    height: auto;
    display: block;
    padding: var(--kisima-header-h, 76px) 0 0;
    justify-content: flex-start;
  }

  .home-hero__cinema {
    position: relative;
    inset: auto;
    height: clamp(268px, 44vh, 360px);
    width: 100%;
  }

  .home-hero__video {
    animation: none;
    transform: scale(1.12);
    object-position: center 40%;
  }

  .home-hero__grain {
    display: none;
  }

  .home-hero__vignette {
    background: linear-gradient(
      180deg,
      rgba(6, 12, 28, 0.35) 0%,
      rgba(6, 12, 28, 0.2) 40%,
      rgba(6, 12, 28, 0.88) 100%
    );
  }

  .home-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(8, 15, 30, 0.92) 0%,
      rgba(8, 15, 30, 0.25) 45%,
      transparent 70%
    );
  }

  .home-hero__inner {
    width: 100%;
    max-width: none;
    margin: -2.75rem 0 0;
    padding: 0;
    position: relative;
    z-index: 5;
    display: block;
  }

  .home-hero__sheet {
    background: linear-gradient(165deg, #0f172a 0%, #111c33 45%, #0c1222 100%);
    border-radius: 28px 28px 0 0;
    padding: 0 var(--home-gutter) 1.35rem var(--home-gutter-end);
    box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(147, 197, 253, 0.2);
  }

  .home-hero__sheet-notch {
    display: block;
    width: 44px;
    height: 5px;
    margin: 0.7rem auto 0.5rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
  }

  .home-hero__panel {
    padding: 0 0 0.85rem;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    animation: none;
  }

  .home-hero__caption {
    margin-top: calc(-1 * clamp(268px, 44vh, 360px) + 7.25rem);
    margin-bottom: 0.85rem;
    padding: 0 0.15rem;
    position: relative;
    z-index: 2;
  }

  .home-hero__live {
    display: inline-flex;
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.35);
  }

  .home-hero__title {
    font-size: clamp(1.95rem, 9.5vw, 2.45rem);
    margin: 0;
    line-height: 1.02;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
  }

  .home-hero__line {
    animation: none;
  }

  .home-hero__line--accent {
    display: block;
    margin-top: 0.15rem;
  }

  .home-hero__eyebrow {
    display: none;
  }

  .home-hero__sub--long {
    display: none;
  }

  .home-hero__sub--short {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 1.1rem;
    animation: none;
  }

  .home-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0;
    animation: none;
  }

  .home-hero__actions .home-btn--wa {
    grid-column: 1 / -1;
    padding: 1.05rem 1rem;
    font-size: 1rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  }

  .home-btn {
    width: 100%;
    border-radius: 14px;
    padding: 0.85rem 0.65rem;
    font-size: 0.88rem;
  }

  .home-hero__rail {
    display: none !important;
  }

  .home-hero__foot,
  .home-hero__scroll {
    display: none !important;
  }

  /* — Proof band (blue stats, separate from action sheet) — */
  .home-hero__proof {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 var(--home-gutter) 1.35rem var(--home-gutter-end);
    animation: none;
  }

  .home-hero__proof-inner {
    padding: 1rem 0.75rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 48%, #1d4ed8 100%);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  }

  .home-hero__proof-label {
    margin-bottom: 0.65rem;
    font-size: 0.62rem;
  }

  .home-hero__proof-grid {
    gap: 0.45rem;
  }

  .home-hero__proof-item {
    padding: 0.65rem 0.35rem;
    border-radius: 12px;
  }

  .home-hero__proof-item i {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .home-hero__proof-item strong {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .home-hero__proof-item--rating strong em {
    color: #fde047;
  }

  .home-hero__proof-item span {
    font-size: 0.62rem;
  }

  .home-hero__sheet {
    padding-bottom: 0.75rem;
  }

  /* — Services — full-width story cards on phone — */
  .home-services {
    background: #f8fafc;
  }

  #services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  #services-grid .home-service-card {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.1);
    border-top: 4px solid var(--home-service-accent, #2563eb);
  }

  #services-grid .home-service-card__img {
    height: 168px;
    width: 100%;
  }

  #services-grid .home-service-card__img img {
    min-height: 168px;
    height: 168px;
  }

  #services-grid .home-service-card__body {
    padding: 1.2rem 1.25rem 1.35rem;
  }

  #services-grid .home-service-card__body h3 {
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
  }

  #services-grid .home-service-card__body p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  #services-grid .home-service-card__link {
    font-size: 0.9rem;
    padding: 0.55rem 0;
  }

  .home-grid-pending#services-grid {
    min-height: 200px;
  }

  /* — Process — timeline — */
  .home-process {
    background: #eef2f7;
  }

  .home-process__steps {
    gap: 0;
    padding-left: 0.5rem;
  }

  .home-step {
    position: relative;
    margin-bottom: 1rem;
    padding: 1.2rem 1.15rem 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .home-step::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 2.5rem;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(180deg, #93c5fd, #cbd5e1);
  }

  .home-step:last-child::before {
    display: none;
  }

  .home-step:hover {
    transform: none;
  }

  .home-step__num {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }

  .home-step h3 {
    font-size: 1.05rem;
  }

  /* — About — */
  .home-about {
    background: #fff;
  }

  .home-about__grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .home-about__img {
    order: -1;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.18);
  }

  .home-about__text p {
    font-size: 0.95rem;
  }

  .home-value {
    padding: 1.2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  }

  /* — Projects — */
  .home-work {
    background: linear-gradient(180deg, #eff6ff 0%, #ecfdf5 100%);
  }

  #work-grid {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  #work-grid .home-work-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  }

  #work-grid .home-work-card img {
    height: 200px;
  }

  #work-grid .home-work-card__body {
    padding: 1.2rem 1.25rem 1.35rem;
  }

  .home-work__cta {
    margin-top: 1.5rem;
  }

  .home-work__cta .home-btn,
  .home-insights .home-work__cta .home-btn {
    width: 100%;
    max-width: none;
    padding: 1rem;
    border-radius: 14px;
  }

  /* — Insights — */
  .home-insights {
    background: #fff;
  }

  #insights-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .home-insight-card {
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    border-top: 3px solid #2563eb;
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  }

  .home-insight-card h3 {
    font-size: 1.05rem;
    color: #1e3a8a;
  }
}

/* Floating call — homepage only (also inlined in index.html for cache safety) */
body.kisima-home-page > .home-float-call {
  position: fixed !important;
  right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9980 !important;
  margin: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff !important;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-float-call:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.55);
}

body.menu-open.kisima-home-page > .home-float-call {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
