/* Work page — final Clarity Selector conversion section (wf) */

.wf {
  background: #e9f5f9;
  padding-top: clamp(6rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
  scroll-margin-top: 110px;
}

.wf * {
  box-sizing: border-box;
}

.wf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 9rem);
  align-items: center;
}

@media (min-width: 1100px) {
  .wf-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(560px, 1.04fr);
  }
}

/* ---------- animation primitives ---------- */
.wf [data-wf-anim] {
  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);
  transition-delay: var(--wf-delay, 0ms);
}

.wf [data-wf-anim="rule"] {
  transform: none;
  opacity: 1;
  width: 0;
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--wf-delay, 0ms);
}

.wf.is-in [data-wf-anim] {
  opacity: 1;
  transform: none;
}

.wf.is-in [data-wf-anim="rule"] {
  width: var(--wf-rule-w, 34px);
}

/* ---------- left editorial ---------- */
.wf-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wf-rule {
  display: block;
  height: 1px;
  background: #ecb965;
  flex: none;
}

.wf-eyebrow {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #05122d;
}

.wf-heading {
  margin-top: clamp(2.75rem, 4vw, 4rem);
  font-family: Jost, system-ui, sans-serif;
  font-size: clamp(44px, 5.3vw, 80px);
  font-weight: 300;
  line-height: 0.99;
  letter-spacing: -0.045em;
  color: #05122d;
}

@media (max-width: 768px) {
  .wf-heading {
    font-size: clamp(44px, 11vw, 58px);
  }
}

.wf-heading span {
  display: block;
}

.wf-lede {
  margin-top: clamp(2.5rem, 4vw, 3.75rem);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.7;
  color: #4b5563;
  max-width: 620px;
}

.wf-confidence {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wf-confidence p {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #05122d;
}

/* ---------- selector panel ---------- */
.wf-panel {
  position: relative;
  background: rgba(244, 249, 251, 0.74);
  border: 1px solid rgba(220, 229, 234, 0.96);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(5, 18, 45, 0.05);
}





.wf-row {
  display: grid;
  grid-template-columns: 72px 1px minmax(0, 1fr) 48px;
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
  align-items: center;
  min-height: 150px;
  padding-inline: clamp(2rem, 3.25vw, 3.25rem);
  padding-block: clamp(1.75rem, 2.6vw, 2.5rem);
  text-decoration: none;
  border-top: 1px solid rgba(220, 229, 234, 0.96);
  background: transparent;
  transition: background-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-row:first-child {
  border-top: 0;
}

.wf-num {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(29px, 2.2vw, 38px);
  line-height: 1;
  color: #ecb965;
  opacity: 0.82;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-vr {
  width: 1px;
  height: 72px;
  background: rgba(75, 85, 99, 0.18);
}

.wf-title {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: rgba(5, 18, 45, 0.9);
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-underline {
  display: block;
  height: 2px;
  width: 14px;
  margin-top: 10px;
  background: #ecb965;
  opacity: 0.35;
  transition:
    width 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-desc {
  margin-top: 0.75rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(75, 85, 99, 0.88);
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  color: #ecb965;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-arrow svg {
  width: 26px;
  height: 26px;
}

@media (hover: hover) {
  .wf-row:hover {
    background: rgba(244, 249, 251, 0.9);
  }
  .wf-row:hover .wf-num {
    opacity: 1;
  }
  .wf-row:hover .wf-title {
    color: #05122d;
  }
  .wf-row:hover .wf-desc {
    color: #4b5563;
  }
  .wf-row:hover .wf-underline {
    width: 44px;
    opacity: 1;
  }
  .wf-row:hover .wf-arrow {
    transform: translateX(4px);
  }
}

.wf-row:focus-visible {
  outline: 2px solid #ecb965;
  outline-offset: -4px;
  background: rgba(244, 249, 251, 0.9);
}

.wf-row:focus-visible .wf-num {
  opacity: 1;
}

.wf-row:focus-visible .wf-title {
  color: #05122d;
}

.wf-row:focus-visible .wf-underline {
  width: 44px;
  opacity: 1;
}

.wf-row:focus-visible .wf-arrow {
  transform: translateX(4px);
}

/* ---------- CTA rail ---------- */
.wf-rail {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #f4f9fb;
  border: 1px solid #dce5ea;
  border-radius: 18px;
  overflow: hidden;
  align-items: stretch;
}

@media (min-width: 1100px) {
  .wf-rail {
    grid-template-columns: minmax(0, 1.2fr) 1px minmax(18rem, 0.8fr) 1px minmax(15rem, 0.65fr);
  }
}

.wf-rail-div {
  background: #dce5ea;
  width: 100%;
  height: 1px;
}

@media (min-width: 1100px) {
  .wf-rail-div {
    width: 1px;
    height: auto;
  }
}

.wf-rail-cell {
  padding: clamp(2rem, 3vw, 3rem);
  display: flex;
  align-items: center;
}

.wf-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  position: relative;
  padding-left: 1.4rem;
  min-height: 44px;
}

.wf-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #ecb965;
  opacity: 0.7;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-cta-label {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(5, 18, 45, 0.92);
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-cta-underline {
  display: block;
  height: 2px;
  width: 34px;
  margin-top: 10px;
  background: #ecb965;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-cta-arrow {
  color: #ecb965;
  display: flex;
  align-items: center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-cta-arrow svg {
  width: 26px;
  height: 26px;
}

@media (hover: hover) {
  .wf-cta:hover .wf-cta-underline {
    width: 54px;
  }
  .wf-cta:hover .wf-cta-arrow {
    transform: translateX(5px);
  }
  .wf-cta:hover .wf-cta-label {
    color: #05122d;
  }
  .wf-cta:hover::before {
    opacity: 1;
  }
}

.wf-cta:focus-visible,
.wf-direct:focus-visible {
  outline: 2px solid #ecb965;
  outline-offset: 4px;
}

.wf-reassure {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
}

.wf-reassure svg {
  width: 22px;
  height: 22px;
  color: #4aa46c;
  flex: none;
}

.wf-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: rgba(5, 18, 45, 0.9);
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.wf-direct-text {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.wf-direct-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: #ecb965;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-direct svg {
  width: 18px;
  height: 18px;
  color: #ecb965;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .wf-direct:hover {
    color: #05122d;
  }
  .wf-direct:hover .wf-direct-text::after {
    width: calc(100% + 14px);
  }
  .wf-direct:hover svg {
    transform: translateX(3px);
  }
}




/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .wf-rail-cell {
    justify-content: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .wf-rail {
    grid-template-columns: 1fr 1px 1fr;
  }
  .wf-rail > .wf-rail-cell:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid #dce5ea;
  }
  .wf-rail > .wf-rail-div:first-of-type {
    display: none;
  }
}

@media (max-width: 768px) {
  .wf-rail > .wf-rail-cell + .wf-rail-cell {
    border-top: 1px solid #dce5ea;
  }
  .wf-rail-div {
    display: none;
  }
}

@media (max-width: 560px) {
  .wf-row {
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 1rem;
    min-height: 104px;
    padding-inline: 20px;
    padding-block: 26px;
  }
  .wf-vr {
    display: none;
  }
  .wf-title {
    font-size: 21px;
  }
  .wf-desc {
    font-size: 14.5px;
  }
  .wf-num {
    font-size: 26px;
  }
  .wf-arrow svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf [data-wf-anim],
  .wf.is-in [data-wf-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .wf [data-wf-anim="rule"],
  .wf.is-in [data-wf-anim="rule"] {
    width: var(--wf-rule-w, 34px) !important;
    transition: none !important;
  }
  .wf-row,
  .wf-arrow,
  .wf-underline,
  .wf-cta-arrow,
  .wf-cta-underline,
  .wf-direct svg,
  .wf-direct-text::after {
    transition: none !important;
  }
  .wf-row:hover .wf-arrow,
  .wf-cta:hover .wf-cta-arrow,
  .wf-direct:hover svg {
    transform: none !important;
  }
}

@media (min-width: 1440px) {
  .wf-heading span {
    white-space: nowrap;
  }
}
