/* Homepage order: custom development, integrations, then compact service cards. */
.home-current { --opening-height: calc(100svh - var(--consent-space)); }

.hp-custom-built {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 7vw, 108px);
  border-top: 1px solid #ffffff24;
  background:var(--lm-night, #030405);
  color: var(--lm-paper, #f8f5ef);
}

.hp-custom-built-layout {
  position:relative;
  z-index:2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.hp-custom-built .eyebrow { color: var(--green); }
.hp-custom-built h2,
.hp-integrations h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.055em;
}
.hp-custom-built h2 em {
  color: var(--green);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}
.hp-custom-built-copy p {
  max-width: 55ch;
  margin: 0;
  color: #bdc7b6;
  font-size: 17px;
  line-height: 1.75;
}
.hp-custom-built-copy .hp-custom-built-statement {
  margin-bottom: 20px;
  color: var(--lm-paper, #f8f5ef);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.hp-custom-built-actions{display:flex;align-items:center;gap:16px 24px;flex-wrap:wrap;margin-top:30px}
.hp-custom-built-actions a{display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:52px;padding:14px 18px;border:1px solid #ffffff30;border-radius:8px;color:#f8f5ef;font-size:13px;font-weight:650;text-decoration:none;transition:transform .22s ease,background .22s ease,border-color .22s ease}
.hp-custom-built-actions a span{font-size:19px;font-weight:400}.hp-custom-built-actions a:hover{transform:translateY(-2px);border-color:#a5f252}
.hp-custom-built-actions .hp-custom-built-primary{border-color:#a5f252;background:#a5f252;color:#11150f}.hp-custom-built-actions .hp-custom-built-primary:hover{background:#bdf77f}
.hp-custom-built-actions .hp-custom-built-support{background:#ffffff08}

.hp-integrations {
  padding-block: clamp(64px, 7vw, 108px) 0;
  background: var(--cream, #fff5ed);
  color: var(--ink, #0d0f0d);
  scroll-margin-top: 100px;
}
.hp-integrations-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.hp-integrations-heading > p {
  max-width: 43ch;
  margin: 0;
  color: #526047;
  font-size: 17px;
  line-height: 1.7;
}
.hp-integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-integrations-grid > li {
  min-width: 0;
  padding: 23px 12px 21px;
  border: 1px solid #0d0f0d1a;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.hp-integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-bottom: 17px;
}
.hp-integration-logo img { width: 40px; height: 40px; object-fit: contain; }
.hp-integration-logo--wordmark img { width: 156px; height: 50px; }
.hp-integrations-grid h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.hp-integrations-grid li > p { margin: 0; color: #62685e; font-size: 12px; line-height: 1.5; }
.hp-integrations-grid > .hp-integration-custom { background: #eaffdc; border-color: #87e64b; }
.hp-integration-custom .hp-integration-logo { color: #2e7400; }
.hp-integrations-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 25px 0 0;
  padding-bottom: clamp(52px, 5vw, 76px);
  border-bottom: 1px solid #0d0f0d26;
  color: #526047;
  font-size: 14px;
  line-height: 1.7;
}
.hp-integrations-note a { color: var(--ink); text-underline-offset: 5px; }
.hp-integrations-note a:hover { color: #2e7400; }

/* Homepage cards reuse the same large two-at-a-time scale as services.html. */
.hp-service-pairs--compact { padding-top: clamp(52px, 5vw, 76px); }
.hp-service-pairs--compact .hp-services-deck {
  display: block;
}
.hp-service-pairs--compact .hp-service-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.hp-service-pairs--compact .hp-service-tile {
  min-height: clamp(400px, 59svh, 570px);
  padding: clamp(28px, 3vw, 44px);
  border-radius: 24px;
}
.hp-service-pairs--compact .hp-service-drawing { display:block; stroke:currentColor; }
.hp-service-pairs--compact .hp-service-kind { display: inline; }
.hp-service-pairs--compact .hp-service-meta { margin-bottom: 65px; }
.hp-service-pairs--compact .hp-service-meta > span:last-child { width: 40px; height: 40px; font-size: 24px; }
.hp-service-pairs--compact .hp-service-copy { max-width: 84%; }
.hp-service-pairs--compact .hp-service-copy h3 { margin-bottom: 20px; font-size: clamp(29px, 3.1vw, 47px); line-height: 1.06; }
.hp-service-pairs--compact .hp-service-copy p { font-size: 15px; line-height: 1.65; }
.hp-service-pairs--compact .hp-service-explore { margin-top: 24px; gap: 20px; }

@media (max-width: 1100px) {
  .hp-integrations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .hp-custom-built-layout { grid-template-columns: 1fr; }
  .hp-custom-built-copy p { font-size: 16px; }
  .hp-custom-built-copy .hp-custom-built-statement { font-size: 22px; }
  .hp-custom-built-actions{align-items:stretch;flex-direction:column}.hp-custom-built-actions a{width:100%}
  .hp-integrations-heading { display: block; margin-bottom: 28px; }
  .hp-integrations-heading > p { margin-top: 23px; font-size: 16px; }
  .hp-integrations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hp-integrations-grid > li { padding: 20px 10px; }
  .hp-integrations-grid h3 { font-size: 14px; }
  .hp-service-pairs--compact .hp-service-pair { grid-template-columns:1fr; gap:18px; margin-bottom:18px; }
  .hp-service-pairs--compact .hp-service-tile { min-height:425px; padding:27px; border-radius:22px; }
  .hp-service-pairs--compact .hp-service-copy { max-width:100%; }
  .hp-service-pairs--compact .hp-service-copy h3 { font-size:36px; }
  .hp-service-pairs--compact .hp-service-kind { display:none; }
}

@media (max-width: 480px) {
  .hp-service-pairs--compact .hp-service-tile { min-height: 425px; }
}

@media(prefers-reduced-motion:reduce){.hp-custom-built-actions a{transition:none!important}}
