/*
 * Block "intro_welcome" — Giới thiệu — lời chào (ADR-0086). Tự chứa (màu, nền, chữ, nút trên khối) như hero-orbit.css nên giống nhau ở mọi
 * giao diện; bộ chọn bắt đầu bằng .blk.blk-welcome đủ mạnh để thắng .blk-section / h2 / img / a của giao diện. Chỉ CSS: transform /
 * opacity / --biw-a; tắt chuyển động khi người xem chọn "giảm chuyển động".
 */
@property --biw-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.blk.blk-welcome {
  --w-bg: #050A14; --w-ink: #E9F1FB; --w-muted: #B4C3D8; --w-accent: #35E0A1; --w-cyan: #3CC9FF; --w-violet: #8B7CFF; --w-gold: #E8C27A;
  --w-on-accent: #04130D; --w-ease: cubic-bezier(.2, .8, .2, 1);
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; width: 100%; max-width: none; margin: 0;
  padding: clamp(64px, 8vw, 112px) 0; border: 0; border-radius: 0; color: var(--w-ink); font-size: 16px; line-height: 1.6; text-align: left;
  background: radial-gradient(50% 60% at 6% 20%, rgba(53, 224, 161, .12), transparent 70%), radial-gradient(45% 55% at 96% 80%, rgba(139, 124, 255, .14), transparent 70%), var(--w-bg);
}
.blk.blk-welcome *, .blk.blk-welcome *::before, .blk.blk-welcome *::after { box-sizing: border-box; }
.blk-welcome__fx, .blk-welcome__fx > span { position: absolute; pointer-events: none; }
.blk-welcome__fx { inset: 0; z-index: -1; overflow: hidden; }
.blk-welcome__glow { width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .22; }
.blk-welcome__glow--1 { top: -180px; right: 18%; background: var(--w-cyan); animation: biw-drift 18s ease-in-out infinite alternate; }
.blk-welcome__glow--2 { bottom: -220px; left: 8%; background: var(--w-accent); animation: biw-drift 22s ease-in-out infinite alternate-reverse; }

.blk-welcome__grid { position: relative; display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; width: 100%;
  max-width: var(--max, 1200px); margin-inline: auto; padding-inline: var(--gutter, 20px); }
@media (min-width: 960px) { .blk-welcome--media .blk-welcome__grid { grid-template-columns: 1.1fr .9fr; } }

/* ---------- Chữ ---------- */
.blk.blk-welcome .blk-welcome__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--w-gold); font-size: 13px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; }
.blk.blk-welcome .blk-welcome__eyebrow::before { content: ''; flex: none; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--w-gold)); }
.blk.blk-welcome .blk-welcome__title { max-width: 18ch; margin: 0 0 26px; padding: 0; border: 0; font-family: var(--display, inherit); font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance;
  background: linear-gradient(100deg, #FFFFFF 0%, #C9FFEA 34%, #7FE3FF 58%, #B6A9FF 78%, #FFFFFF 100%) 0 0 / 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(53, 224, 161, .25)); animation: biw-shimmer 9s linear infinite; }
.blk.blk-welcome .blk-welcome__title::before, .blk.blk-welcome .blk-welcome__title::after { content: none; }
/* nội dung: vạch sáng gradient bên trái */
.blk.blk-welcome .blk-welcome__body { position: relative; max-width: 640px; padding-left: 24px; color: var(--w-muted); font-size: 17px; line-height: 1.8; }
.blk.blk-welcome .blk-welcome__body::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--w-accent), var(--w-cyan) 55%, var(--w-violet)); box-shadow: 0 0 14px rgba(53, 224, 161, .6); }
.blk.blk-welcome .blk-welcome__body > * { margin: 0; }
.blk.blk-welcome .blk-welcome__body > * + * { margin-top: 14px; }
.blk.blk-welcome .blk-welcome__body :is(strong, b) { color: #FFFFFF; font-weight: 700; }
.blk.blk-welcome .blk-welcome__body a { color: #72F0C6; text-underline-offset: 3px; }
.blk.blk-welcome .blk-welcome__body :is(h2, h3, h4) { color: #F4F8FD; font-size: 1.15em; -webkit-text-fill-color: currentColor; background: none; filter: none; animation: none; }

/* ---------- Số liệu nổi bật ---------- */
.blk.blk-welcome .blk-welcome__stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.blk.blk-welcome .blk-welcome__stats li { display: flex; flex-direction: column; gap: 2px; min-width: 132px; margin: 0; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(140, 175, 220, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.blk.blk-welcome .blk-welcome__stats li::before { content: none; }
.blk.blk-welcome .blk-welcome__stats strong { font-family: var(--display, inherit); font-size: 30px; line-height: 1.1; font-weight: 700;
  background: linear-gradient(115deg, var(--w-accent), var(--w-cyan) 55%, var(--w-violet)); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
.blk.blk-welcome .blk-welcome__stats span { color: var(--w-muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- Nút ---------- */
.blk.blk-welcome .blk-welcome__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.blk.blk-welcome .blk-welcome__btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; text-decoration: none;
  white-space: nowrap; transition: transform .35s var(--w-ease), box-shadow .35s var(--w-ease), background-color .35s var(--w-ease), color .35s var(--w-ease); }
.blk.blk-welcome .blk-welcome__btn--primary { border: 0; color: var(--w-on-accent); background: linear-gradient(115deg, var(--w-accent), var(--w-cyan));
  box-shadow: 0 10px 34px -10px rgba(53, 224, 161, .75); }
.blk.blk-welcome .blk-welcome__btn--primary::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .6) 50%, transparent 75%); transform: translateX(-130%); animation: biw-shine 5.5s ease-in-out infinite; }
.blk.blk-welcome .blk-welcome__btn--primary:hover { color: var(--w-on-accent); transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(53, 224, 161, .9); }
.blk.blk-welcome .blk-welcome__btn--secondary { color: #9BF7D6; background: rgba(53, 224, 161, .04); border: 1px solid rgba(53, 224, 161, .55); }
.blk.blk-welcome .blk-welcome__btn--secondary:hover { color: #FFFFFF; background: rgba(53, 224, 161, .14); border-color: var(--w-accent); box-shadow: 0 0 26px -4px rgba(53, 224, 161, .65); }
.blk.blk-welcome .blk-welcome__btn--link { min-height: 0; padding-inline: 4px; color: var(--w-accent); background: none; border: 0; text-decoration: underline; text-underline-offset: 5px; }
.blk.blk-welcome .blk-welcome__btn:focus-visible { outline: 2px solid var(--w-cyan); outline-offset: 3px; }

/* ---------- Ảnh: khung kính, viền sáng chạy, vòng quỹ đạo phía sau, nhãn số lơ lửng ---------- */
.blk-welcome__visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.blk-welcome__ring { position: absolute; inset: -7%; border-radius: 50%; border: 1px dashed rgba(124, 214, 255, .28); pointer-events: none;
  animation: biw-rotate 60s linear infinite; }
.blk-welcome__ring::before, .blk-welcome__ring::after { content: ''; position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; }
.blk-welcome__ring::before { top: 14.6%; left: 14.6%; background: var(--w-accent); box-shadow: 0 0 14px 4px rgba(53, 224, 161, .75); }
.blk-welcome__ring::after { bottom: 14.6%; right: 14.6%; width: 8px; height: 8px; margin: -4px; background: var(--w-violet); box-shadow: 0 0 14px 4px rgba(139, 124, 255, .75); }
.blk.blk-welcome .blk-welcome__frame { position: relative; isolation: isolate; margin: 0; padding: 10px; border-radius: 28px;
  background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(53, 224, 161, .35); }
.blk.blk-welcome .blk-welcome__frame::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--biw-a), var(--w-accent), transparent 28%, var(--w-cyan) 50%, transparent 72%, var(--w-violet) 88%, var(--w-accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: biw-spin 9s linear infinite; }
.blk.blk-welcome .blk-welcome__frame img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; border: 0; border-radius: 20px; box-shadow: none; }
.blk.blk-welcome .blk-welcome__frame--cover img { aspect-ratio: 4 / 5; object-fit: cover; }
.blk.blk-welcome .blk-welcome__frame--contain img { aspect-ratio: 1; object-fit: contain; padding: 6%; background: radial-gradient(circle at 30% 20%, #FFFFFF, #F3FAF7 60%, #E3F2EC); }
/* nhãn nằm vắt trên mép dưới khung — chỉ che phần viền / nền trắng, không che nội dung ảnh (sơ đồ, logo) */
.blk-welcome__visual:has(.blk-welcome__badge) { margin-bottom: 30px; }
.blk.blk-welcome .blk-welcome__badge { position: absolute; left: 24px; bottom: -28px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px 12px 14px;
  border-radius: 18px; background: rgba(7, 14, 28, .86); border: 1px solid rgba(53, 224, 161, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 28px -6px rgba(53, 224, 161, .55); animation: biw-float 6s ease-in-out infinite; }
.blk.blk-welcome .blk-welcome__badge strong { font-family: var(--display, inherit); font-size: 34px; line-height: 1; font-weight: 700;
  background: linear-gradient(115deg, var(--w-accent), var(--w-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.blk.blk-welcome .blk-welcome__badge span { max-width: 12ch; color: #DCE7F5; font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* ---------- Không ảnh: một cột căn giữa ---------- */
.blk-welcome--center .blk-welcome__grid { max-width: 920px; }
.blk.blk-welcome.blk-welcome--center .blk-welcome__text { text-align: center; }
.blk.blk-welcome.blk-welcome--center .blk-welcome__eyebrow { justify-content: center; }
.blk.blk-welcome.blk-welcome--center .blk-welcome__eyebrow::after { content: ''; flex: none; width: 42px; height: 1px; background: linear-gradient(90deg, var(--w-gold), transparent); }
.blk.blk-welcome.blk-welcome--center .blk-welcome__title { max-width: none; margin-inline: auto; }
.blk.blk-welcome.blk-welcome--center .blk-welcome__body { max-width: 760px; margin-inline: auto; padding: 22px 26px; border-radius: 20px; text-align: left;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(140, 175, 220, .12); }
.blk.blk-welcome.blk-welcome--center .blk-welcome__body::before { left: -1px; top: 22px; bottom: 22px; }
.blk.blk-welcome.blk-welcome--center :is(.blk-welcome__stats, .blk-welcome__actions) { justify-content: center; }

@media (max-width: 599.98px) {
  .blk.blk-welcome .blk-welcome__body { padding-left: 18px; font-size: 16px; line-height: 1.75; }
  /* số liệu: lưới tự chia — 3 số vẫn trên một hàng ở điện thoại */
  .blk.blk-welcome .blk-welcome__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
  .blk.blk-welcome .blk-welcome__stats li { min-width: 0; padding: 12px 12px; }
  .blk.blk-welcome .blk-welcome__stats strong { font-size: 24px; }
  .blk.blk-welcome .blk-welcome__stats span { font-size: 12.5px; }
  .blk.blk-welcome .blk-welcome__badge { left: 14px; bottom: -24px; padding: 10px 14px 10px 12px; }
  .blk.blk-welcome .blk-welcome__badge strong { font-size: 28px; }
  .blk.blk-welcome.blk-welcome--center .blk-welcome__body { padding: 18px 18px 18px 20px; }
}

@keyframes biw-shimmer { to { background-position: -220% 0; } }
@keyframes biw-shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes biw-spin { to { --biw-a: 360deg; } }
@keyframes biw-rotate { to { transform: rotate(360deg); } }
@keyframes biw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes biw-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(60px, 30px, 0); } }

@media (prefers-reduced-motion: reduce) {
  .blk.blk-welcome *, .blk.blk-welcome *::before, .blk.blk-welcome *::after { animation: none !important; }
}
@media print {
  .blk.blk-welcome { padding: 24px 0; color: #111; background: #fff; }
  .blk-welcome__fx, .blk-welcome__ring { display: none !important; }
  .blk.blk-welcome .blk-welcome__title { -webkit-text-fill-color: #111; color: #111; background: none; filter: none; }
  .blk.blk-welcome .blk-welcome__body { color: #333; }
}
