/* ================================================================
   CÔNG NGHỆ THEO TỪNG MỤC TIÊU — thiết bị nhóm theo chức năng.
   Trái: danh sách nhóm (tab, thanh chạy tự chuyển). Giữa: khung vòm ảnh
   đổi dần + ảnh máy trong vòng tròn. Phải: mô tả, ưu điểm, thiết bị.
   Nền tối, lớp ảnh mờ đổi theo nhóm đang chọn.
   ================================================================ */
.tech{position:relative;overflow:hidden;isolation:isolate;color:#F7F3EA;
  background:radial-gradient(70% 90% at 62% 46%,#3A463F 0%,#2A332E 55%,#1F2622 100%)}
.tech-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.tech-bg img{position:absolute;inset:-12%;width:124%;height:124%;object-fit:cover;opacity:0;
  filter:blur(70px) saturate(.6) brightness(.62);transition:opacity 1.6s ease}
.tech-bg img.on{opacity:.5}
.tech-bg::after{content:"";position:absolute;inset:0;
  background:radial-gradient(60% 70% at 50% 50%,transparent 0%,rgba(31,38,34,.55) 70%,rgba(31,38,34,.9) 100%),
             linear-gradient(180deg,rgba(31,38,34,.55),transparent 22%,transparent 78%,rgba(31,38,34,.6))}
.tech .wrap{z-index:2}
.tech-head{max-width:780px;margin:0 auto}
.tech .eyebrow{color:#E2CB9C}
.tech .h-sec{color:#F7F3EA}
.tech .h-sec em{display:block}
.tech .lede{color:rgba(247,243,234,.74);margin:20px auto 0;max-width:640px}

.tech-grid{display:grid;grid-template-columns:minmax(240px,290px) minmax(290px,420px) minmax(0,1fr);
  gap:clamp(30px,4.4vw,72px);align-items:center;margin-top:clamp(48px,5.4vw,80px)}

/* ---------- danh sách nhóm ---------- */
.tech-nav{display:flex;flex-direction:column}
.tech-nav button{all:unset;box-sizing:border-box;position:relative;display:flex;gap:16px;align-items:baseline;cursor:pointer;
  padding:20px 0 21px;border-top:1px solid rgba(234,219,185,.13);transition:padding .5s cubic-bezier(.2,.7,.2,1)}
.tech-nav button:last-child{border-bottom:1px solid rgba(234,219,185,.13)}
.tech-nav i{font-family:var(--serif);font-style:italic;font-size:19px;color:rgba(205,175,120,.55);min-width:26px;transition:color .4s}
.tech-nav b{display:block;font-family:var(--serif);font-weight:500;font-size:clamp(20px,1.7vw,24px);line-height:1.2;
  color:rgba(247,243,234,.55);transition:color .4s}
.tech-nav small{display:block;margin-top:6px;font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(247,243,234,.34);transition:color .4s}
.tech-nav button:hover{padding-left:8px}
.tech-nav button:hover b{color:rgba(247,243,234,.85)}
.tech-nav button.on{padding-left:10px}
.tech-nav button.on i{color:#E2CB9C}
.tech-nav button.on b{color:#fff}
.tech-nav button.on small{color:#CDAF78}
.tech-nav button:focus-visible{outline:1px solid #CDAF78;outline-offset:4px;border-radius:4px}
.tbar{position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--champ);background-size:230% 100%;
  transform:scaleX(0);transform-origin:left;transition:transform .5s}
.tech-nav button.on .tbar{transform:scaleX(1)}
.tech-nav button.on.run .tbar{animation:techBar var(--dur,7s) linear both}
@keyframes techBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ---------- khung vòm ---------- */
.tech-stage{position:relative;justify-self:center;width:100%;max-width:420px}
.tech-stage::before{content:"";position:absolute;inset:-14px;border:1px solid rgba(205,175,120,.42);
  border-radius:999px 999px 36px 36px;pointer-events:none}
.tech-stage::after{content:"";position:absolute;left:8%;right:8%;bottom:-40px;height:60px;z-index:-1;
  background:radial-gradient(50% 50% at 50% 50%,rgba(0,0,0,.45),transparent 70%);filter:blur(8px)}
.tech-frame{position:relative;aspect-ratio:4/5;border-radius:999px 999px 24px 24px;overflow:hidden;
  background:#1F2622;box-shadow:0 50px 90px -40px rgba(0,0,0,.65);touch-action:pan-y}
.tf{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 1.1s ease,clip-path 1.3s cubic-bezier(.7,0,.2,1);
  clip-path:inset(100% 0 0 0 round 0)}
.tf.on{opacity:1;clip-path:inset(0 0 0 0 round 0);z-index:1}
.tf img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.12);transition:transform 1.6s cubic-bezier(.2,.7,.2,1)}
.tf.on img{transform:scale(1);animation:techKB 11s ease-out .6s both}
@keyframes techKB{from{transform:scale(1)}to{transform:scale(1.07)}}
.tf[data-fit="contain"]{background:radial-gradient(80% 70% at 50% 42%,#FFFFFF 0%,#F2EDE4 58%,#E3DACB 100%)}
.tf[data-fit="contain"] img{object-fit:contain;padding:22% 10% 16%}
.tech-shine{position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(115deg,transparent 38%,rgba(234,216,174,.38) 50%,transparent 62%);transform:translateX(-120%)}
.tech-shine.go{animation:techShine 1.4s cubic-bezier(.4,0,.2,1)}
@keyframes techShine{to{transform:translateX(120%)}}

.tech-ins{position:absolute;left:-46px;bottom:64px;z-index:4;width:132px;aspect-ratio:1;border-radius:50%;padding:6px;
  background:rgba(255,255,255,.08);border:1px solid rgba(226,203,156,.55);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 26px 50px -20px rgba(0,0,0,.6)}
.tech-ins img{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);border-radius:50%;object-fit:cover;
  background:#fff;opacity:0;transform:scale(.86) rotate(-8deg);transition:opacity .8s,transform 1s cubic-bezier(.2,.7,.2,1)}
.tech-ins img.on{opacity:1;transform:none;transition-delay:.25s}
.tech-count{position:absolute;right:-30px;top:16%;z-index:4;writing-mode:vertical-rl;display:flex;align-items:center;gap:10px;
  font-family:var(--serif);color:rgba(247,243,234,.5);letter-spacing:.12em}
.tech-count b{font-weight:500;font-size:30px;font-style:italic;color:#E2CB9C}
.tech-count span{font-size:14px}

/* ---------- mô tả nhóm ---------- */
.tech-panels{display:grid}
.tp{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}
.tp.on{opacity:1;visibility:visible;transition:opacity .6s .15s}
.tp.on>*{animation:techUp .9s cubic-bezier(.2,.7,.2,1) both}
.tp.on>*:nth-child(2){animation-delay:.06s}.tp.on>*:nth-child(3){animation-delay:.12s}
.tp.on>*:nth-child(4){animation-delay:.18s}.tp.on>*:nth-child(5){animation-delay:.24s}
.tp.on>*:nth-child(6){animation-delay:.3s}.tp.on>*:nth-child(7){animation-delay:.36s}
@keyframes techUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.tp-k{display:block;font-size:11px;font-weight:600;letter-spacing:.28em;text-transform:uppercase;color:#CDAF78}
.tp h3{margin:14px 0 0;font-family:var(--serif);font-weight:500;font-size:clamp(32px,3.1vw,48px);line-height:1.08;color:#fff}
.tp p{margin:18px 0 0;font-size:16px;line-height:1.85;color:rgba(247,243,234,.76);max-width:560px}
.tp h4{margin:28px 0 0;font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:#E2CB9C}
.tp-pro{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:12px;max-width:560px}
.tp-pro li{display:flex;gap:14px;align-items:flex-start;font-size:15px;line-height:1.65;color:rgba(247,243,234,.88)}
.tp-pro svg{flex:none;width:24px;height:24px;margin-top:1px;padding:4px;border-radius:50%;border:1px solid rgba(205,175,120,.55);
  fill:none;stroke:#E2CB9C;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;background:rgba(205,175,120,.08)}
.tp-dev{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(234,219,185,.14)}
.tp-dev span,.tp-go span{font-size:10.5px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:rgba(247,243,234,.45);margin-right:6px}
.tp-dev a{font-weight:500;font-size:13px;letter-spacing:.03em;padding:7px 15px;border-radius:999px;
  border:1px solid rgba(226,203,156,.42);color:#EADBB9;background:rgba(255,255,255,.05)}
.tp-go{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:16px}
.tp-go a{position:relative;font-size:14px;color:#F7F3EA;padding-bottom:3px}
.tp-go a::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(205,175,120,.55);transform-origin:right;transition:transform .45s}
.tp-go a::after{content:" \203A";color:#CDAF78}
.tp-go a:hover::before{transform:scaleX(.35)}

.tech + .ctaband{padding-top:clamp(96px,11vw,170px)!important}

/* ---------- máy tính bảng: danh sách thành hàng nút trên cùng ---------- */
@media (max-width:1180px){
  .tech-grid{grid-template-columns:minmax(260px,380px) minmax(0,1fr);align-items:start}
  .tech-nav{grid-column:1/-1;flex-direction:row;gap:10px;overflow-x:auto;scrollbar-width:none;
    margin:0 -20px;padding:4px 20px 6px;scroll-snap-type:x proximity}
  .tech-nav::-webkit-scrollbar{display:none}
  .tech-nav button,.tech-nav button:last-child{flex:none;scroll-snap-align:center;align-items:center;gap:10px;padding:11px 20px;
    border:1px solid rgba(234,219,185,.2);border-radius:999px;overflow:hidden}
  .tech-nav button:hover,.tech-nav button.on{padding-left:20px}
  .tech-nav button.on{border-color:rgba(226,203,156,.7);background:rgba(255,255,255,.06)}
  .tech-nav i{font-size:15px;min-width:0}
  .tech-nav b{font-size:17px}
  .tech-nav small{display:none}
  .tbar{bottom:0;left:18px;right:18px}
  .tech-stage{margin-top:14px}
  .tech-panels{padding-top:18px}
}
/* ---------- điện thoại ---------- */
@media (max-width:760px){
  .tech-grid{grid-template-columns:1fr;gap:34px;margin-top:36px}
  .tech-nav{margin:0 -16px;padding:4px 16px 6px}
  .tech-stage{width:min(76vw,340px);margin-top:18px}
  .tech-ins{width:96px;left:-26px;bottom:40px}
  .tech-count{right:-24px}
  .tech-count b{font-size:24px}
  .tech-panels{padding-top:0}
  .tp h3{font-size:clamp(30px,8.4vw,38px)}
  .tp p{font-size:15.5px}
}
@media (prefers-reduced-motion:reduce){
  .tf,.tf img,.tech-ins img,.tp,.tp.on>*{transition:none!important;animation:none!important}
  .tech-shine{display:none}
}
.tp-dev a{transition:background .35s,border-color .35s,color .35s}
.tp-dev a::after{content:" \203A";color:#CDAF78}
.tp-dev a:hover{background:rgba(226,203,156,.16);border-color:#E2CB9C;color:#fff}
