/* 04 · Ngân hàng Trà — 1680 × 1032 (Figma 4019:3140) */
.tea { padding: 80px 0; height: 1032px; }
.tea__stage { position: relative; height: 872px; }

.tea__bg { position: absolute; left: 50%; top: -114px; width: 1680px; height: 1127px; margin-left: -840px; overflow: hidden; }
.tea__scene { position: absolute; inset: 0; }
.tea__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }

/*
 * Ảnh người theo tab: chỉ hiện trong ô khung vàng (toạ độ khung trong ảnh nền 1680×1127:
 * trái 364, trên 477, 951×550) → phần nền ngoài khung luôn giữ nguyên.
 * Hiện bằng "quét sáng" ngang: mask gradient trượt từ trái sang phải.
 */
.tea__people {
  clip-path: inset(477px 365px 100px 364px round 16px);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
          mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1s var(--ease-out-expo), mask-position 1s var(--ease-out-expo);
  z-index: 1;
}
.tea__people.is-active { -webkit-mask-position: 0 0; mask-position: 0 0; z-index: 2; }
.tea__people.is-instant { transition: none; }

/* Lá trà: khung xoay 144.7° (matrix Figma) */
.tea__leaves { position: absolute; left: -140px; top: 80px; width: 443.623px; height: 392.978px; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.tea__leaves img { width: 405.989px; height: 194.221px; max-width: none; object-fit: cover; object-position: bottom; transform: matrix(-0.8165, 0.57735, -0.57735, -0.8165, 0, 0); }

.tea__intro {
  position: absolute; left: 533px; top: 0; width: 613px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center;
}
.tea__copy { display: flex; flex-direction: column; gap: 24px; }

.tea__frame {
  position: absolute; left: calc(50% - 0.5px); top: 363px; width: 951px; height: 550px; margin-left: -475.5px; z-index: 3;
  border: 8px solid #f3e97b; border-radius: 16px; overflow: hidden;
  background: linear-gradient(to bottom, rgba(33, 48, 33, 0) 55.286%, #213021);
  box-shadow: 0 40px 80px -40px rgba(20, 40, 10, .55);
}
.tea__frame-title {
  position: absolute; left: 467.5px; top: 242px; width: 613px; transform: translateX(-50%);
  font-size: 40px; line-height: 1.25; font-weight: 700; color: rgba(255, 255, 255, .96); text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  transition: opacity .35s, transform .5s var(--ease-out-expo);
}
.tea__frame-title.is-swapping { opacity: 0; transform: translate(-50%, 10px); }

.tea__frame-bottom {
  position: absolute; left: -8px; bottom: -8px; width: 951px; padding: 40px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.tea__gauge-wrap { height: 113.914px; transition: opacity .4s, transform .5s var(--ease-out-expo); }
.tea__gauge { zoom: 1.3214; }
.tea__gauge .gauge__label { color: #fff; }

/* Tabs 3 nút ghép (Vay vốn | Gửi tiết kiệm | Đầu tư) */
.seg-tabs { display: flex; gap: 2px; align-items: center; }
.seg-tabs__item {
  height: 48px; padding: 4px; font-weight: 700; font-size: 14px; line-height: 24px; color: #fff; white-space: nowrap;
  background: rgba(0, 0, 0, .25); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-radius: 4px; transition: background .35s, color .35s;
}
.seg-tabs__item { min-width: 0; padding-inline: 16px; }
.seg-tabs__item--start { border-radius: 99px 4px 4px 99px; padding-inline: 20px 16px; }
.seg-tabs__item--end { border-radius: 4px 99px 99px 4px; padding-inline: 16px 20px; }
.seg-tabs__item:hover { background: rgba(0, 0, 0, .4); }
.seg-tabs__item.is-active { background: #fff; color: var(--c-primary); padding-inline: 16px; }
