/* Homepage — Client Perspective testimonial section (ht) */
.ht {
  --ht-navy: #05122d;
  --ht-silver: #f4f9fb;
  --ht-graphite: #4b5563;
  --ht-divider: #dce5ea;
  --ht-gold: #ecb965;
  --ht-green: #4aa46c;
  position: relative;
  width: 100%;
  background: var(--ht-navy);
  padding-block: clamp(7rem, 10vw, 10rem);
  scroll-margin-top: 110px;
  overflow: hidden;
}

.ht__inner {
  width: 100%;
  max-width: var(--page-max-width, 1520px);
  margin-inline: auto;
  padding-inline: var(--page-gutter, clamp(16px, 4vw, 64px));
  display: grid;
  gap: clamp(4rem, 7vw, 7.5rem);
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  min-height: 760px;
}

/* ---------- left editorial ---------- */
.ht__left {
  position: sticky;
  top: calc(82px + clamp(2.5rem, 4vw, 4rem));
}

.ht__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ht__eyebrow i {
  display: block;
  height: 1px;
  width: 56px;
  background: var(--ht-gold);
  transform-origin: left center;
}
.ht__eyebrow span {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ht-gold);
}

.ht__h2 {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  font-family: Jost, Inter, sans-serif;
  font-size: clamp(48px, 4.5vw, 68px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ht-silver);
}
.ht__h2 span {
  display: block;
}
.ht__h2 .ht__gold {
  color: var(--ht-gold);
  font-style: italic;
}

.ht__rule {
  height: 1px;
  width: 64px;
  background: var(--ht-gold);
  border: 0;
  margin: 0;
}
.ht__rule--1 {
  margin-top: 2rem;
}
.ht__rule--2 {
  margin-top: 2.5rem;
}

.ht__copy {
  margin-top: 1.5rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: rgba(244, 249, 251, 0.74);
  max-width: 430px;
}
.ht__proof {
  margin-top: 1.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(244, 249, 251, 0.68);
  max-width: 430px;
}

.ht__link {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ht-gold);
  text-decoration: none;
  position: relative;
}
.ht__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 1px;
  width: calc(100% - 34px);
  background: var(--ht-gold);
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ht__link svg {
  width: 20px;
  height: 20px;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .ht__link:hover {
    color: #f5d9a8;
  }
  .ht__link:hover::after {
    width: calc(100% - 16px);
  }
  .ht__link:hover svg {
    transform: translateX(4px);
  }
}

/* ---------- rail ---------- */
.ht__right {
  min-width: 0;
}

.ht__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(620px, 82%);
  gap: clamp(1rem, 1.8vw, 1.75rem);
  padding-inline-end: clamp(3rem, 6vw, 6rem);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
  padding-block: 6px 18px;
}
.ht__rail::-webkit-scrollbar {
  display: none;
}
.ht__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.ht__rail:focus-visible {
  outline: 2px solid var(--ht-gold);
  outline-offset: 4px;
}

/* ---------- card ---------- */
.ht__card {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--ht-silver);
  border: 1px solid rgba(220, 229, 234, 0.6);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(5, 18, 45, 0.055);
  padding: clamp(2.5rem, 4vw, 4rem);
  min-height: clamp(500px, 38vw, 590px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  opacity: 0.86;
  transition:
    opacity 320ms ease,
    border-color 320ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ht__card.is-active {
  opacity: 1;
  border-color: rgba(220, 229, 234, 0.88);
}
@media (hover: hover) {
  .ht__card:hover {
    transform: translateY(-3px);
    border-color: rgba(220, 229, 234, 1);
  }
}




.ht__cardtop {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.ht__count {
  font-family: Jost, Inter, sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--ht-gold);
  letter-spacing: 0.02em;
}
.ht__cat {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ht-gold);
}

.ht__quote {
  margin: clamp(1.75rem, 2.6vw, 2.5rem) 0 0;
  font-family: Jost, Inter, sans-serif;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: -0.025em;
  color: var(--ht-navy);
  max-width: 22ch;
}
.ht__quote .ht__qm {
  color: var(--ht-gold);
}

.ht__dir {
  justify-self: start;
  margin-top: clamp(1.5rem, 2.4vw, 2rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 164, 108, 0.09);
  border: 1px solid rgba(74, 164, 108, 0.11);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #2f7a4d;
  transition: border-color 300ms ease;
}
.ht__dir svg {
  width: 14px;
  height: 14px;
}

.ht__foot {
  margin-top: clamp(2rem, 3vw, 2.75rem);
  padding-top: clamp(1.5rem, 2.2vw, 2rem);
  border-top: 1px solid var(--ht-divider);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
.ht__name {
  font-family: Jost, Inter, sans-serif;
  font-weight: 500;
  font-size: 21px;
  color: var(--ht-navy);
  font-style: normal;
}
.ht__role {
  margin-top: 4px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  color: var(--ht-graphite);
}
.ht__company {
  margin-top: 4px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ht-navy);
}

.ht__plink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ht-navy);
  text-decoration: none;
}
.ht__plink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  height: 1px;
  width: calc(100% - 30px);
  background: var(--ht-gold);
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ht__plink svg {
  width: 18px;
  height: 18px;
  color: var(--ht-gold);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .ht__card:hover .ht__plink::after,
  .ht__plink:hover::after {
    width: calc(100% - 16px);
  }
  .ht__card:hover .ht__plink svg,
  .ht__plink:hover svg {
    transform: translateX(4px);
  }
}

/* ---------- controls ---------- */
.ht__controls {
  margin-top: clamp(2rem, 3vw, 2.75rem);
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.ht__btn {
  width: 52px;
  height: 52px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(236, 185, 101, 0.46);
  color: var(--ht-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 300ms ease,
    background-color 300ms ease;
}
.ht__btn svg {
  width: 20px;
  height: 20px;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .ht__btn:not(:disabled):hover {
    border-color: rgba(236, 185, 101, 0.85);
    background: rgba(236, 185, 101, 0.055);
  }
  .ht__btn--prev:not(:disabled):hover svg {
    transform: translateX(-3px);
  }
  .ht__btn--next:not(:disabled):hover svg {
    transform: translateX(3px);
  }
}
.ht__btn:disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
.ht__btn:focus-visible,
.ht__seg:focus-visible,
.ht__link:focus-visible,
.ht__plink:focus-visible {
  outline: 2px solid var(--ht-gold);
  outline-offset: 4px;
}

.ht__progress {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ht__index {
  font-family: Jost, Inter, sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--ht-gold);
  white-space: nowrap;
}
.ht__index em {
  font-style: normal;
  color: rgba(244, 249, 251, 0.52);
  font-size: 16px;
}
.ht__segs {
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 120px;
}
.ht__seg {
  flex: 1;
  height: 2px;
  min-height: 2px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.ht__seg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(220, 229, 234, 0.24);
  transition: background-color 300ms ease;
}
.ht__seg[data-state="done"]::before {
  background: rgba(236, 185, 101, 0.72);
}
.ht__seg[data-state="active"]::before {
  background: var(--ht-gold);
}

.ht__hint {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: rgba(244, 249, 251, 0.64);
}
.ht__hint svg {
  width: 16px;
  height: 16px;
}

.ht__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ---------- reveal ---------- */
.ht [data-ht-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ht.is-revealed [data-ht-reveal] {
  opacity: 1;
  transform: none;
}
.ht__eyebrow i {
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: scaleX(0);
}
.ht.is-revealed .ht__eyebrow i {
  transform: scaleX(1);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ht__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: clamp(3rem, 6vw, 4rem);
  }
  .ht__left {
    position: static;
    max-width: 700px;
  }
  .ht__rail {
    grid-auto-columns: min(760px, 86vw);
  }
}

@media (max-width: 700px) {
  .ht__h2 {
    font-size: clamp(42px, 11vw, 56px);
  }
  .ht__h2 span {
    display: inline;
  }
  .ht__h2 .ht__gold::after {
    content: " ";
  }
  .ht__rail {
    grid-auto-columns: minmax(0, 88vw);
    gap: 16px;
    padding-inline-end: 24px;
  }
  .ht__card {
    padding: 26px;
    min-height: auto;
    border-radius: 14px;
  }
  .ht__quote {
    font-size: clamp(23px, 6.5vw, 29px);
    line-height: 1.4;
    max-width: none;
  }
  .ht__foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .ht__controls {
    gap: 1rem;
  }
  .ht__hint {
    display: none;
  }
}

@media (max-width: 430px) {
  .ht__inner {
    padding-inline: 20px;
  }
}
@media (max-width: 360px) {
  .ht__inner {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ht [data-ht-reveal],
  .ht.is-revealed [data-ht-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ht__eyebrow i {
    transform: scaleX(1);
    transition: none;
  }
  .ht__card,
  .ht__card:hover,
  .ht__btn svg,
  .ht__link svg,
  .ht__plink svg {
    transition: none;
    transform: none;
  }
}

@media (max-width: 700px) {
  .ht__plink {
    white-space: nowrap;
  }
  .ht__dir {
    letter-spacing: 0.1em;
  }
}
