@layer base {
  html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
}

/* Center homepage scoping form block on large screens. */
@media (min-width: 1024px) {
  body.home #scoping-form > .max-w-7xl > .grid > .lg\:col-span-8 {
    margin-left: auto;
    margin-right: auto;
  }
}

#scoping-form > .max-w-7xl > .max-w-5xl {
  width: 100%;
}

/* =========================================================
   HOMEPAGE FAQ — TRUE HEIGHT-SMOOTH ACCORDION
   JS animates the real height from 0 -> scrollHeight.
   overflow-anchor is disabled to prevent the page from jumping
   while an item above/below the viewport changes height.
   ========================================================= */
#faq-accordion {
  overflow-anchor: none;
}

#faq-accordion .faq-item {
  overflow: hidden;
  overflow-anchor: none;
}

#faq-accordion .faq-answer {
  display: block !important;
  height: 0;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  transition:
    height 420ms cubic-bezier(.22,1,.36,1),
    opacity 260ms ease;
  will-change: height, opacity;
}

#faq-accordion .faq-answer-inner {
  min-height: 0;
}

#faq-accordion .faq-item.is-open .faq-answer {
  opacity: 1;
}

#faq-accordion .faq-icon {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  transform-origin: center;
}

#faq-accordion .faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

#faq-accordion [data-faq-toggle] {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  #faq-accordion .faq-answer,
  #faq-accordion .faq-icon {
    transition: none !important;
  }
}

/* Tech-stack technology rows. */
body.home #tech-stack .hs-stack-list > li {
  display: flex !important;
  align-items: center;
  min-height: 42px;
  padding: .625rem .75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .5rem;
  background: rgb(248 250 252);
}

body.home #tech-stack .hs-stack-list > li > span {
  min-width: 0;
  color: rgb(30 41 59);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 1279px) {
  body.home #tech-stack .hs-stack-list > li > span {
    font-size: 10.5px;
  }
}
