/* Work page hero — native implementation (wh) */
.wh {
  --wh-navy: #05122d;
  --wh-lunar: #f4f9fb;
  --wh-silverblue: #e9f5f9;
  --wh-graphite: #4b5563;
  --wh-divider: #dce5ea;
  --wh-gold: #ecb965;
  --wh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wh-header: 96px;
  background: var(--wh-lunar);
  display: block;
}

.wh-inner {
  padding-top: clamp(5.5rem, 8vh, 7.5rem);
  padding-bottom: clamp(3.5rem, 6vh, 5.5rem);
  min-height: max(760px, calc(100svh - var(--wh-header)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wh-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
  gap: clamp(4.5rem, 7vw, 8rem);
  align-items: center;
}

/* ---------- eyebrow ---------- */
.wh-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wh-rule {
  display: block;
  height: 2px;
  width: 46px;
  background: var(--wh-gold);
  transform-origin: left center;
}
.wh-eyebrow span.wh-eyebrow-text {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wh-gold);
}

/* ---------- headline ---------- */
.wh-title {
  margin-top: clamp(2.25rem, 4vh, 3.5rem);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(60px, 5.3vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  color: var(--wh-navy);
}
.wh-title .wh-line {
  display: block;
  white-space: nowrap;
}
.wh-title .wh-gold {
  color: var(--wh-gold);
}

.wh-title-rule {
  margin-top: clamp(1.75rem, 3vh, 2.5rem);
  display: block;
  height: 2px;
  width: 46px;
  background: var(--wh-gold);
  transform-origin: left center;
}

.wh-copy {
  margin-top: 1.4rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(16px, 1.08vw, 18px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--wh-graphite);
  max-width: 590px;
}

/* ---------- statistics ---------- */
.wh-stats {
  margin-top: clamp(3.75rem, 6vh, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wh-stat {
  position: relative;
  padding-right: 0.9rem;
  padding-left: 1.4rem;
}
.wh-stat:first-child {
  padding-left: 0;
}
.wh-stat + .wh-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(75, 85, 99, 0.16);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 700ms var(--wh-ease);
}
.wh.is-in .wh-stat + .wh-stat::before {
  transform: scaleY(1);
}
.wh-stat-num {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(42px, 3.3vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--wh-navy);
  opacity: 0.92;
  transition: opacity 300ms var(--wh-ease);
}
.wh-stat-line {
  display: block;
  margin-top: 0.85rem;
  height: 2px;
  width: 28px;
  background: var(--wh-gold);
  transition: width 300ms var(--wh-ease);
}
.wh-stat-desc {
  margin-top: 0.9rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--wh-graphite);
  opacity: 0.92;
  transition: opacity 300ms var(--wh-ease), color 300ms var(--wh-ease);
}
@media (hover: hover) and (pointer: fine) {
  .wh-stat:hover .wh-stat-line {
    width: 40px;
  }
  .wh-stat:hover .wh-stat-num {
    opacity: 1;
  }
  .wh-stat:hover .wh-stat-desc {
    opacity: 1;
    color: #3b4453;
  }
}

/* ---------- capability list ---------- */
.wh-cap-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wh-cap-list {
  margin-top: clamp(2.25rem, 4vh, 3.5rem);
  background: rgba(244, 249, 251, 0.34);
  border: 1px solid rgba(220, 229, 234, 0.85);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
}
.wh-row {
  display: grid;
  grid-template-columns: 90px 1px minmax(0, 1fr) 52px;
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
  align-items: center;
  min-height: 145px;
  padding-inline: clamp(2rem, 3.25vw, 3.5rem);
  padding-block: clamp(1.75rem, 2.4vw, 2.5rem);
  text-decoration: none;
  background: transparent;
  transition: background-color 320ms var(--wh-ease);
  position: relative;
  outline: none;
}
.wh-row + .wh-row {
  border-top: 1px solid var(--wh-divider);
}
.wh-row-num {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(42px, 3.3vw, 56px);
  line-height: 1;
  color: var(--wh-gold);
  opacity: 0.75;
  transition: opacity 320ms var(--wh-ease);
}
.wh-row-div {
  align-self: center;
  width: 1px;
  height: 72px;
  background: rgba(220, 229, 234, 0.95);
}
.wh-row-title {
  display: block;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(23px, 1.8vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--wh-navy);
  opacity: 0.92;
  transition: opacity 320ms var(--wh-ease);
}
.wh-row-desc {
  display: block;
  margin-top: 0.55rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wh-graphite);
  opacity: 0.85;
  transition: opacity 320ms var(--wh-ease);
}
.wh-row-underline {
  display: block;
  margin-top: 0.85rem;
  height: 2px;
  width: 16px;
  opacity: 0.35;
  background: var(--wh-gold);
  transition: width 320ms var(--wh-ease), opacity 320ms var(--wh-ease);
}
.wh-row:first-child .wh-row-underline {
  width: 36px;
  opacity: 1;
}
.wh-row-note {
  display: block;
  margin-top: 0.9rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wh-gold);
}
.wh-row-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(236, 185, 101, 0.4);
  background: transparent;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: border-color 320ms var(--wh-ease), background-color 320ms var(--wh-ease);
}
.wh-row-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--wh-gold);
  transition: transform 320ms var(--wh-ease);
}

@media (hover: hover) and (pointer: fine) {
  .wh-row:hover {
    background-color: rgba(233, 245, 249, 0.48);
  }
  .wh-row:hover .wh-row-num,
  .wh-row:hover .wh-row-title,
  .wh-row:hover .wh-row-desc {
    opacity: 1;
  }
  .wh-row:hover .wh-row-underline {
    width: 48px;
    opacity: 1;
  }
  .wh-row:hover .wh-row-arrow {
    border-color: rgba(236, 185, 101, 0.9);
    background-color: rgba(236, 185, 101, 0.055);
  }
  .wh-row:hover .wh-row-arrow svg {
    transform: translateX(4px);
  }
}
.wh-row:focus-visible {
  background-color: rgba(233, 245, 249, 0.48);
  outline: 2px solid var(--wh-gold);
  outline-offset: -4px;
}
.wh-row:focus-visible .wh-row-num,
.wh-row:focus-visible .wh-row-title,
.wh-row:focus-visible .wh-row-desc {
  opacity: 1;
}
.wh-row:focus-visible .wh-row-underline {
  width: 48px;
  opacity: 1;
}
.wh-row:focus-visible .wh-row-arrow {
  border-color: rgba(236, 185, 101, 0.9);
  background-color: rgba(236, 185, 101, 0.055);
}

/* ---------- scroll cue ---------- */
.wh-cue-wrap {
  margin-top: clamp(3rem, 5vh, 4.5rem);
  display: flex;
  justify-content: center;
}
.wh-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 8px 16px;
  min-height: 44px;
  outline: none;
}
.wh-cue-line {
  display: block;
  width: 1px;
  height: 42px;
  background: var(--wh-gold);
  transition: height 320ms var(--wh-ease);
}
.wh-cue-arrow {
  color: var(--wh-gold);
  display: block;
  animation: wh-cue-bob 2400ms var(--wh-ease) infinite;
}
.wh-cue-arrow svg {
  width: 16px;
  height: 16px;
}
.wh-cue-label {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wh-graphite);
  opacity: 0.85;
  transition: opacity 320ms var(--wh-ease), color 320ms var(--wh-ease);
}
@keyframes wh-cue-bob {
  0%,
  50% {
    transform: translateY(0);
  }
  62% {
    transform: translateY(5px);
  }
  76%,
  100% {
    transform: translateY(0);
  }
}
@media (hover: hover) and (pointer: fine) {
  .wh-cue:hover .wh-cue-line {
    height: 54px;
  }
  .wh-cue:hover .wh-cue-label {
    opacity: 1;
    color: var(--wh-navy);
  }
  .wh-cue:hover .wh-cue-arrow {
    transform: translateY(3px);
  }
}
.wh-cue:focus-visible {
  outline: 2px solid var(--wh-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- entrance animation ---------- */
.wh [data-wh-anim] {
  opacity: 0;
  transform: translateY(16px);
}
.wh [data-wh-anim="rule"] {
  transform: scaleX(0);
  opacity: 1;
}
.wh.is-in [data-wh-anim] {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--wh-ease), transform 700ms var(--wh-ease);
  transition-delay: var(--wh-delay, 0ms);
}
.wh.is-in [data-wh-anim="rule"] {
  transform: scaleX(1);
  transition: transform 650ms var(--wh-ease);
  transition-delay: var(--wh-delay, 0ms);
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .wh-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3.5rem, 7vh, 5.5rem);
    align-items: start;
  }
  .wh-inner {
    min-height: 0;
  }
  .wh-row {
    min-height: 122px;
  }
}
@media (max-width: 700px) {
  .wh-title {
    font-size: clamp(43px, 11.5vw, 58px);
    line-height: 1.01;
  }
  .wh-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-stat {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1.5rem;
    padding: 1.15rem 0;
  }
  .wh-stat-num {
    grid-column: 1;
    grid-row: 1;
  }
  .wh-stat-line {
    grid-column: 1;
    grid-row: 2;
  }
  .wh-stat-desc {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
  .wh-stat + .wh-stat {
    border-top: 1px solid rgba(75, 85, 99, 0.16);
  }
  .wh-stat + .wh-stat::before {
    display: none;
  }
  .wh-stat-num {
    font-size: 38px;
  }
  .wh-stat-line {
    margin-top: 0.6rem;
  }
  .wh-stat-desc {
    margin-top: 0;
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .wh-row {
    grid-template-columns: 58px minmax(0, 1fr) 44px;
    gap: 1.1rem;
    min-height: 96px;
    padding-inline: 20px;
    padding-block: 26px;
  }
  .wh-row-num {
    font-size: 38px;
  }
  .wh-row-title {
    font-size: 22px;
  }
  .wh-row-arrow {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 560px) {
  .wh-row-div {
    display: none;
  }
}
@media (max-width: 380px) {
  .wh-row {
    padding-inline: 16px;
  }
}
@media (max-width: 520px) {
  .wh-title .wh-line {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wh [data-wh-anim],
  .wh.is-in [data-wh-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .wh .wh-stat + .wh-stat::before {
    transform: scaleY(1);
    transition: none;
  }
  .wh-cue-arrow {
    animation: none;
  }
  .wh-row,
  .wh-row-arrow,
  .wh-row-arrow svg,
  .wh-row-underline,
  .wh-cue-line,
  .wh-cue-label {
    transition: none !important;
  }
  .wh-row:hover .wh-row-arrow svg {
    transform: none;
  }
}
