/**
 * Home Page — clean, clear marketplace layout.
 * Scoped under .home-page / page-template-home_page.
 */

html:has(body.page-template-home_page) {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

body.page-template-home_page {
  --home-ink: #0f1c2e;
  --home-muted: #5a6578;
  --home-line: #e4ebf4;
  --home-line-strong: #d0dbeb;
  --home-soft: #f3f7fc;
  --home-soft-2: #eaf1fa;
  --home-white: #ffffff;
  --home-blue: #3b7ddd;
  --home-blue-dark: #245fba;
  --home-navy: #0e2742;
  --home-coral: #e4572e;
  --home-coral-dark: #c9451f;
  --home-radius: 18px;
  --home-radius-sm: 12px;
  --home-shadow:
    0 1px 2px rgba(15, 28, 46, 0.04), 0 12px 32px rgba(15, 28, 46, 0.06);
  --home-shadow-lg:
    0 4px 12px rgba(15, 28, 46, 0.05), 0 22px 48px rgba(15, 28, 46, 0.08);
  --home-font:
    "Manrope", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--home-white);
  color: var(--home-ink);
}

body.page-template-home_page .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.2);
}

body.page-template-home_page .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(228, 235, 244, 0.95);
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.05);
}

body.page-template-home_page,
body.page-template-home_page .home-page {
  font-family: var(--home-font);
  color: var(--home-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-template-home_page .site-main {
  overflow: visible;
}

.home-page {
  overflow: visible;
}

.home-page a {
  text-decoration: none;
}

.home-page button {
  font: inherit;
}

.home-page > section {
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h, 72px);
}

/* ——— Hero — two-column reference layout ——— */
.home-hero {
  position: relative;
  isolation: isolate;
  /* Sticky header is in-flow; pull hero under it so the banner is a true
     full-viewport plane, then pad for the header and center the content. */
  display: grid;
  place-items: center;
  box-sizing: border-box;
  margin-top: calc(-1 * var(--header-h, 72px));
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: var(--header-h, 72px) 0 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}

.home-hero-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(70% 80% at 12% 0%, rgba(59, 125, 221, 0.14), transparent 55%),
    radial-gradient(50% 50% at 95% 10%, rgba(228, 87, 46, 0.06), transparent 50%),
    linear-gradient(180deg, #f2f7ff 0%, #ffffff 72%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--container, 1100px));
  margin-inline: auto;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.home-hero-heading {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--home-ink);
  text-wrap: balance;
}

.home-hero-desc {
  margin: 1.15rem 0 0;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #536074;
  font-weight: 500;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.home-hero-visual {
  margin: 0;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(208, 219, 235, 0.7);
  box-shadow:
    0 8px 24px rgba(15, 28, 46, 0.06),
    0 24px 56px rgba(15, 28, 46, 0.1);
  will-change: transform;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.home-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.home-hero-scroll:hover {
  opacity: 1;
}

.home-hero-scroll-cue {
  width: 1.2rem;
  height: 1.85rem;
  border: 1.5px solid rgba(36, 95, 186, 0.35);
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
}

.home-hero-scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--home-blue);
  transform: translateX(-50%);
  animation: home-scroll-dot 1.6s ease-in-out infinite;
}

@keyframes home-scroll-dot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  70% {
    opacity: 0.15;
    transform: translateX(-50%) translateY(0.75rem);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0.95rem);
  }
}

/* ——— Buttons ——— */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--home-radius-sm);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.home-btn--primary {
  background: var(--home-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(59, 125, 221, 0.28);
}

.home-btn--primary:hover {
  background: var(--home-blue-dark);
  color: #fff;
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--home-line-strong);
  color: var(--home-ink);
}

.home-btn--ghost:hover {
  background: var(--home-white);
  border-color: var(--home-blue);
  color: var(--home-blue-dark);
}

.home-btn--light {
  background: #fff;
  color: var(--home-navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.home-btn--light:hover {
  background: #f7faff;
  color: var(--home-navy);
}

/* ——— Section heads ——— */
.home-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.home-section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 42rem;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--home-ink);
}

.home-section-head p {
  margin: 0.85rem 0 0;
  color: var(--home-muted);
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ——— Solutions band ——— */
.home-solutions {
  padding: 4.5rem 0 5.5rem;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 28%, #ffffff 100%);
  border-top: 1px solid rgba(228, 235, 244, 0.95);
}

.home-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: var(--home-white);
  color: var(--home-ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.home-chip:hover {
  border-color: #c5d6f2;
  box-shadow: 0 8px 20px rgba(15, 28, 46, 0.06);
}

.home-chip.is-active {
  border-color: #b7d0f5;
  background: linear-gradient(180deg, #eef4ff 0%, #e7f0fc 100%);
  color: var(--home-ink);
  box-shadow: 0 10px 22px rgba(36, 95, 186, 0.12);
}

.home-chip-label {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.home-chip-icon {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--home-soft);
  border: 1px solid rgba(208, 219, 235, 0.7);
  position: relative;
}

.home-chip.is-active .home-chip-icon {
  background: #fff;
  border-color: #c5d6f2;
}

.home-chip-icon::before {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border: 1.75px solid var(--home-blue);
  border-radius: 3px;
}

.home-chip.is-active .home-chip-icon::before {
  border-color: var(--home-blue);
}

.home-chip-icon--chart::before {
  border: none;
  background:
    linear-gradient(var(--home-blue), var(--home-blue)) 0 100% / 22% 45% no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) 39% 100% / 22% 70% no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) 78% 100% / 22% 55% no-repeat;
}

.home-chip.is-active .home-chip-icon--chart::before {
  background:
    linear-gradient(var(--home-blue), var(--home-blue)) 0 100% / 22% 45% no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) 39% 100% / 22% 70% no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) 78% 100% / 22% 55% no-repeat;
}

.home-chip-icon--layers::before {
  border: none;
  background:
    linear-gradient(var(--home-blue), var(--home-blue)) center 18% / 78% 2px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) center 50% / 78% 2px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) center 82% / 78% 2px no-repeat;
}

.home-chip.is-active .home-chip-icon--layers::before {
  background:
    linear-gradient(var(--home-blue), var(--home-blue)) center 18% / 78% 2px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) center 50% / 78% 2px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) center 82% / 78% 2px no-repeat;
}

.home-chip-icon--spark::before {
  border: none;
  background:
    radial-gradient(circle at 50% 50%, var(--home-blue) 0 28%, transparent 30%),
    conic-gradient(from 20deg, transparent 0 70%, var(--home-blue) 0 78%, transparent 0);
  border-radius: 50%;
}

.home-chip.is-active .home-chip-icon--spark::before {
  background:
    radial-gradient(circle at 50% 50%, var(--home-blue) 0 28%, transparent 30%),
    conic-gradient(from 20deg, transparent 0 70%, var(--home-blue) 0 78%, transparent 0);
}

.home-chip-icon--bot::before {
  border-radius: 4px;
  border-color: var(--home-coral);
}

.home-chip.is-active .home-chip-icon--bot::before {
  border-color: #ffb39a;
}

/* Solution detail */
.home-solution-detail {
  margin-top: 1.75rem;
}

.home-solution-panel[hidden] {
  display: none;
}

.home-solution-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--home-line);
  border-radius: calc(var(--home-radius) + 2px);
  background: linear-gradient(160deg, #f8fbff 0%, #ffffff 45%, #ffffff 100%);
  box-shadow: var(--home-shadow);
}

.home-solution-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.home-solution-copy > p {
  margin: 0.85rem 0 0;
  color: var(--home-muted);
  line-height: 1.7;
  max-width: 40rem;
  font-weight: 500;
  font-size: 1.02rem;
}

.home-feature-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.home-feature-list li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.55rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--home-ink);
  line-height: 1.45;
}

.home-feature-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--home-blue);
  border-bottom: 2px solid var(--home-blue);
  transform: rotate(-45deg);
}

.home-solution-copy .home-btn {
  margin-top: 1.6rem;
}

.home-solution-visual {
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--home-soft);
  min-height: 14rem;
}

.home-solution-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Products ——— */
.home-products {
  position: relative;
  padding: 5.25rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

.home-rail-wrap {
  position: relative;
}

.home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.45rem 0.15rem 1.25rem;
  scrollbar-width: none;
}

.home-rail::-webkit-scrollbar {
  display: none;
}

.home-product-card {
  --product-accent: #3b7ddd;
  --product-banner: linear-gradient(135deg, #5ea0ef 0%, #3b7ddd 55%, #2f6ccc 100%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(208, 219, 235, 0.85);
  border-radius: 18px;
  background: var(--home-white);
  box-shadow:
    0 4px 14px rgba(15, 28, 46, 0.05),
    0 16px 36px rgba(15, 28, 46, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.home-product-card--violet {
  --product-accent: #6b5ce7;
  --product-banner: linear-gradient(135deg, #8b7cf0 0%, #6b5ce7 55%, #5646d4 100%);
}

.home-product-card--indigo {
  --product-accent: #314fad;
  --product-banner: linear-gradient(135deg, #4d6fd0 0%, #314fad 55%, #243f8f 100%);
}

.home-product-card--sky {
  --product-accent: #2f8fd4;
  --product-banner: linear-gradient(135deg, #5eb4e8 0%, #2f8fd4 55%, #2278b8 100%);
}

.home-product-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--product-accent) 28%, #d0dbeb);
  box-shadow:
    0 8px 20px rgba(15, 28, 46, 0.07),
    0 22px 44px rgba(15, 28, 46, 0.1);
}

.home-product-banner {
  position: relative;
  height: 5.25rem;
  background: var(--product-banner);
  flex-shrink: 0;
}

.home-product-badge {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  backdrop-filter: blur(4px);
}

.home-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 1.35rem 1.35rem 1.1rem;
}

.home-product-title {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  line-height: 1.2;
}

.home-product-title:hover {
  color: var(--product-accent);
}

.home-product-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--product-accent);
  line-height: 1.4;
  font-weight: 650;
}

.home-product-desc {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5a6578;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-features {
  margin-top: 0.35rem;
}

.home-product-features-label {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--home-ink);
  letter-spacing: -0.01em;
}

.home-product-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.home-product-features-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #536074;
  font-weight: 500;
}

.home-product-features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--product-accent);
}

.home-product-footer {
  margin-top: auto;
  padding: 0.95rem 1.35rem 1.15rem;
  border-top: 1px solid #e8eef6;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--product-accent, var(--home-blue));
  transition:
    color 0.2s ease,
    gap 0.2s ease,
    transform 0.2s ease;
}

.home-text-link:hover {
  color: var(--home-blue-dark);
  gap: 0.5rem;
}

.home-text-link span {
  transition: transform 0.2s ease;
}

.home-text-link:hover span {
  transform: translateX(3px);
}

.home-rail-next {
  position: absolute;
  right: -0.35rem;
  top: 42%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--home-line);
  background: var(--home-white);
  box-shadow: var(--home-shadow);
  color: var(--home-ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}

.home-rail-next:hover {
  background: var(--home-blue);
  border-color: var(--home-blue);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

/* ——— Partners ——— */
.home-partners {
  padding: 4.5rem 0;
  background: #ffffff;
}

.home-partners-row {
  display: grid;
  gap: 1.15rem;
}

.home-partner {
  padding: 1.6rem 1.6rem;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}

.home-partner--accent {
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 70%);
  border-color: #d3e1f7;
}

.home-partner img {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 0.75rem;
}

.home-partner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #3d4a5c;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ——— CTA ——— */
.home-cta {
  padding: 1.5rem 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.home-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.25rem 1.85rem;
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(125deg, #245fba 0%, #3b7ddd 55%, #5a94e0 100%);
  box-shadow: 0 18px 40px rgba(36, 95, 186, 0.22);
  color: #fff;
}

.home-cta-copy {
  max-width: 40rem;
}

.home-cta-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.15;
  color: #fff;
}

.home-cta-copy p {
  margin: 0.8rem 0 0;
  color: rgba(235, 242, 255, 0.86);
  line-height: 1.65;
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 36rem;
}

.home-cta .home-btn span {
  font-size: 1.1rem;
  line-height: 1;
}

/* ——— Contact ——— */
.home-contact {
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(180deg, #f3f7fc 0%, #ffffff 55%);
}

.home-contact-form {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.85rem 1.6rem 1.9rem;
  border: 1px solid var(--home-line);
  border-radius: calc(var(--home-radius) + 2px);
  background: var(--home-white);
  box-shadow: var(--home-shadow-lg);
}

.home-contact-form .algo-form {
  max-width: none;
}

.home-contact-form .algo-form__title {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
}

.home-contact-form .algo-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem 1rem;
}

.home-contact-form .algo-form__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.home-contact-form .algo-form__control,
.home-contact-form .algo-form__fields select,
.home-contact-form .algo-form__fields textarea,
.home-contact-form .algo-form__fields input {
  width: 100%;
  border-radius: 10px;
  border-color: #d5deea;
  background: #fbfcfe;
  min-height: 46px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.home-contact-form .algo-form__control:focus,
.home-contact-form .algo-form__fields select:focus,
.home-contact-form .algo-form__fields textarea:focus,
.home-contact-form .algo-form__fields input:focus {
  border-color: var(--home-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.14);
}

.home-contact-form .algo-form__submit {
  border-radius: var(--home-radius-sm);
  background: var(--home-blue);
  min-height: 48px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(59, 125, 221, 0.26);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.home-contact-form .algo-form__submit:hover {
  background: var(--home-blue-dark);
  transform: translateY(-1px);
}

.home-contact-form .algo-form__field {
  margin: 0;
}

@media (min-width: 560px) {
  .home-contact-form .algo-form__fields {
    grid-template-columns: 1fr 1fr;
  }

  .home-contact-form .algo-form__field:nth-child(n + 5) {
    grid-column: 1 / -1;
  }
}

/* ——— Footer ——— */
body.page-template-home_page .site-footer {
  background: var(--color-footer, #0e2742);
  padding: 2.75rem 0 0;
  font-family: var(--home-font);
  text-align: left;
}

body.page-template-home_page .footer-grid {
  gap: 2rem 2.5rem;
  padding-bottom: 2rem;
}

body.page-template-home_page .footer-bottom {
  background: transparent;
}

/* ——— Motion ——— */
.home-page .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.home-page .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.home-page .reveal-delay {
  --reveal-delay: 90ms;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.page-template-home_page) {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .home-page .reveal,
  .home-chip,
  .home-btn,
  .home-product-card,
  .home-hero-visual img,
  .home-hero-scroll-cue::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-hero-wash,
  .home-hero-visual {
    transform: none !important;
  }
}

/* ——— Breakpoints ——— */
@media (min-width: 720px) {
  .home-chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .home-rail {
    grid-auto-columns: minmax(300px, 350px);
  }

  .home-cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.4rem 2.5rem;
  }

  .home-cta .home-btn {
    flex-shrink: 0;
  }
}

@media (min-width: 960px) {
  .home-hero-inner,
  .home-hero-inner--media {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 3.75rem;
    align-items: center;
  }

  .home-hero-visual img {
    aspect-ratio: 4 / 3;
    min-height: 20rem;
  }

  .home-solutions {
    padding: 5.25rem 0 6rem;
  }

  .home-solution-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 2.4rem 2.5rem;
    gap: 2.5rem;
  }

  .home-products {
    padding: 6rem 0;
  }

  .home-partners {
    padding: 5rem 0;
  }

  .home-contact {
    padding: 5rem 0 6rem;
  }

  .home-rail-next {
    right: -0.75rem;
  }

  body.page-template-home_page .footer-grid {
    grid-template-columns: 1.35fr 1fr 1.15fr;
  }
}

@media (max-width: 719px) {
  .home-rail-next {
    display: none;
  }

  .home-hero {
    min-height: 100svh;
  }

  .home-hero-heading {
    font-size: 2.25rem;
  }

  .home-hero-inner {
    gap: 1.75rem;
  }

  .home-hero-visual img {
    min-height: 14rem;
  }

  .home-hero-scroll {
    bottom: 0.75rem;
  }

  .home-solutions {
    padding: 3.25rem 0 3.75rem;
  }

  .home-products,
  .home-partners,
  .home-contact {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-contact-form {
    padding: 1.4rem 1.15rem 1.5rem;
  }
}
