/* =========================================================
   Case pages — enrichment components (2026-10-23)
   Loaded after case.css. Adds: case pager, VEVOR context
   & timeline, Hisense context & progress & points,
   FlexiSpot context & milestones & site-scale bars.
   ========================================================= */

/* ---------- shared: case pager ---------- */

.case-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 60px);
}

.case-pager__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.case-pager__card:hover {
  border-color: #b6c6dd;
  transform: translateY(-2px);
}

.case-pager__label {
  display: block;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.case-pager__name {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
}

.case-pager__card .icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--blue);
}

.case-pager__card--next {
  flex-direction: row-reverse;
  border-color: transparent;
  background: var(--blue);
}

.case-pager__card--next:hover {
  background: var(--blue-dark);
}

.case-pager__card--next .case-pager__label {
  color: var(--white);
}

.case-pager__card--next .case-pager__name {
  color: var(--white);
}

.case-pager__card--next .icon {
  color: var(--white);
}

.theme-vevor .case-pager__card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.theme-vevor .case-pager__card:hover {
  border-color: rgba(143, 174, 255, 0.44);
}

.theme-vevor .case-pager__label {
  color: rgba(255, 255, 255, 0.5);
}

.theme-vevor .case-pager__name {
  color: var(--white);
}

.theme-vevor .case-pager__card .icon {
  color: #94b2ff;
}

.theme-vevor .case-pager__card--next {
  border-color: transparent;
  background: var(--blue);
}

.theme-vevor .case-pager__card--next:hover {
  background: var(--blue-dark);
}

.theme-vevor .case-pager__card--next .case-pager__label {
  color: var(--white);
}

/* ---------- VEVOR: context + timeline + service lists ---------- */

.v-context-wrap {
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: 0;
}

.v-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.v-context__col .case-kicker {
  margin-bottom: 14px;
}

.v-context__col h2 {
  color: var(--white);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 750;
  line-height: 1.5;
}

.v-context__col p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.85;
}

.v-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.v-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12.5px;
  line-height: 1.7;
}

.v-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 1.5px;
  background: #94b2ff;
}

.v-tl-title {
  margin-top: 16px;
  margin-bottom: clamp(20px, 3vw, 34px);
  color: var(--white);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.4;
}

.v-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v-tl-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.v-tl-row:last-child {
  border-bottom: 0;
}

.v-tl-row__phase {
  color: #94b2ff;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.v-tl-row h3 {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.v-tl-row p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12.5px;
  line-height: 1.8;
}

.v-tl-row--now h3 {
  color: #ff9d80;
}

/* ---------- Hisense: context + progress + points ---------- */

.h-context {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.h-context .case-kicker {
  justify-content: center;
}

.h-context h2 {
  margin-top: 16px;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 800;
  line-height: 1.4;
}

.h-context p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.h-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: clamp(24px, 3vw, 36px);
}

.h-prog-node {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.h-prog-node span {
  color: var(--muted-light);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.h-prog-node strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 750;
  line-height: 1.3;
}

.h-prog-node strong em {
  font-style: normal;
  color: var(--blue);
}

.h-prog-node p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.h-prog-arrow {
  display: grid;
  place-items: center;
  padding-inline: clamp(10px, 1.6vw, 22px);
  color: var(--blue);
}

.h-prog-arrow .icon {
  width: 20px;
  height: 20px;
}

.h-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(18px, 2.4vw, 28px);
}

.h-point {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.h-point h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.h-point p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.h-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.h-card ul li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.h-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1.5px;
  background: var(--blue);
}

/* ---------- FlexiSpot: context + milestones + site-scale ---------- */

.f-context {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.f-context h2 {
  margin-top: 16px;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 800;
  line-height: 1.4;
}

.f-context__copy > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.f-meta {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.f-meta h3 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.f-meta dl {
  margin-top: 14px;
  display: grid;
  gap: 0;
}

.f-meta dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.f-meta dl > div:last-child {
  border-bottom: 0;
}

.f-meta dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.f-meta dd {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.f-milestones {
  margin-top: clamp(26px, 3.2vw, 40px);
}

.f-milestones h2 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.4;
}

.f-mile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.f-mile:first-of-type {
  margin-top: 18px;
}

.f-mile b {
  color: #067568;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.f-mile h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

.f-mile p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.f-step ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.f-step ul li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.f-step ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1.5px;
  background: #067568;
}

.f-sites {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.f-sites h2 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 750;
  line-height: 1.4;
}

.f-sites__rows {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.f-sites__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
}

.f-sites__row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.f-sites__bar {
  height: 30px;
  border-radius: 8px;
  background: #eaf3f1;
  overflow: hidden;
}

.f-sites__bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #57c7b9, #10a99a);
}

.f-sites__row b {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.f-sites__row--now b {
  color: #067568;
}

/* ---------- responsive additions ---------- */

@media (max-width: 1080px) {
  .v-context {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .h-progress {
    grid-template-columns: 1fr;
  }

  .h-prog-arrow {
    padding: 8px 0;
    transform: rotate(90deg);
  }

  .h-points {
    grid-template-columns: 1fr;
  }

  .f-context {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .case-pager {
    grid-template-columns: 1fr;
  }

  .v-tl-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .f-mile {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .f-sites__row {
    grid-template-columns: 76px minmax(0, 1fr) 56px;
    gap: 10px;
  }
}

/* =========================================================
   2026-10-23 polish round: VEVOR timeline rail & service
   hover, Hisense progress connector, FlexiSpot chart and
   bar load-in animations
   ========================================================= */

/* ---------- VEVOR: service rows get a hover wash ---------- */

.v-service {
  margin-inline: -18px;
  padding-inline: 18px;
  border-radius: 14px;
  transition: background-color 0.25s var(--ease);
}

.v-service:hover {
  background: rgba(255, 255, 255, 0.035);
}

/* ---------- VEVOR: timeline gets a rail with phase dots ---------- */

.v-timeline {
  position: relative;
}

.v-timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, rgba(148, 178, 255, 0.45), rgba(148, 178, 255, 0.08));
}

.v-tl-row {
  position: relative;
  padding-left: 26px;
}

.v-tl-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(clamp(20px, 2.6vw, 30px) + 6px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94b2ff;
}

.v-tl-row--now::before {
  background: #ff9d80;
  box-shadow: 0 0 0 5px rgba(255, 157, 128, 0.14);
}

/* ---------- Hisense: arrows sit on a connecting line ---------- */

.h-prog-arrow {
  position: relative;
}

.h-prog-arrow::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: #c3d2e8;
}

.h-prog-arrow .icon {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 50%;
  background: var(--paper);
}

/* ---------- FlexiSpot: chart draws itself, bars grow ---------- */

.f-chart__plot path[stroke="#10a99a"] {
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
  animation: f-draw 1.5s var(--ease) 0.35s forwards;
}

@keyframes f-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.f-chart__plot path[fill="url(#f-area)"] {
  opacity: 0;
  animation: f-fade 0.9s ease 0.9s forwards;
}

.f-chart__plot circle {
  opacity: 0;
  animation: f-fade 0.4s ease forwards;
}

.f-chart__plot circle:nth-of-type(3) {
  animation-delay: 0.35s;
}

.f-chart__plot circle:nth-of-type(2) {
  animation-delay: 0.95s;
}

.f-chart__plot circle:nth-of-type(1) {
  animation-delay: 1.5s;
}

@keyframes f-fade {
  to {
    opacity: 1;
  }
}

.f-sites__bar i {
  animation: f-grow 1.1s var(--ease) 0.15s backwards;
}

@keyframes f-grow {
  from {
    width: 0;
  }
}
