/* Cáp Điện TCT — CSS trang Giới thiệu (chỉ nạp ở trang này). */

:root { --tct-ease: cubic-bezier(.22,.61,.36,1); }

/* ============ HERO ============ */
.tct-ab-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: 56px 112px;
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(226,113,29,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(31,85,133,.55), transparent 65%),
    linear-gradient(135deg, #0f3557 0%, #0a2740 55%, #071d33 100%);
}
/* Lưới kỹ thuật mờ phía sau */
.tct-ab-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  pointer-events: none;
}
.tct-ab-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.tct-ab-hero__text { min-width: 0; }
.tct-ab-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.01em; margin: 6px 0 18px; }
.tct-ab-hero__lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #dbe6f0; max-width: 46ch; margin: 0 0 18px; }
.tct-ab-hero__legal {
  display: inline-block; margin: 0; padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: #c5d3e2;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.tct-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #a9c0d6; margin-bottom: 22px; }
.tct-crumbs a { color: #a9c0d6; text-decoration: none; }
.tct-crumbs a:hover { color: var(--vs-accent); }
.tct-crumbs span[aria-current] { color: #fff; font-weight: 600; }

.tct-ab-hero__art { min-width: 0; }
.tct-ab-hero__art svg { display: block; width: 100%; height: auto; max-width: 460px; margin-left: auto; overflow: visible; }

/* Hiệu ứng vào trang của hero — chạy bằng CSS ngay khi tải, không cần cuộn */
@keyframes tctUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes tctDraw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes tctPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes tctSpin { to { transform: rotate(360deg); } }
@keyframes tctFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tctPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }

.tct-hero-in { opacity: 0; animation: tctUp .8s var(--tct-ease) forwards; }
.tct-hero-in:nth-child(1) { animation-delay: .05s; }
.tct-hero-in:nth-child(2) { animation-delay: .15s; }
.tct-hero-in:nth-child(3) { animation-delay: .25s; }
.tct-hero-in:nth-child(4) { animation-delay: .38s; }
.tct-hero-in:nth-child(5) { animation-delay: .5s; }

.tct-art-wire { stroke-dasharray: 900; stroke-dashoffset: 900; animation: tctDraw 1.8s var(--tct-ease) .2s forwards; }
.tct-art-wire--2 { animation-delay: .4s; }
.tct-art-wire--3 { animation-delay: .6s; }
.tct-art-cable { animation: tctFloat 6s ease-in-out 2s infinite; transform-box: fill-box; }
.tct-art-ring { transform-origin: center; transform-box: fill-box; animation: tctSpin 40s linear infinite; }
.tct-art-core { opacity: 0; transform-origin: center; transform-box: fill-box; animation: tctPop .55s var(--tct-ease) forwards; }
.tct-art-core:nth-child(1) { animation-delay: .7s; }
.tct-art-core:nth-child(2) { animation-delay: .8s; }
.tct-art-core:nth-child(3) { animation-delay: .88s; }
.tct-art-core:nth-child(4) { animation-delay: .96s; }
.tct-art-core:nth-child(5) { animation-delay: 1.04s; }
.tct-art-core:nth-child(6) { animation-delay: 1.12s; }
.tct-art-core:nth-child(7) { animation-delay: 1.2s; }
.tct-art-pulse circle { transform-origin: center; transform-box: fill-box; animation: tctPulse 2.4s ease-out 2s infinite; }

/* ============ SỐ LIỆU ============ */
.tct-ab-stats { position: relative; z-index: 2; margin-top: -64px; padding-block: 0 24px; }
.tct-ab-stats__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--vs-border); border-radius: 20px;
  box-shadow: 0 24px 50px -20px rgba(15,53,87,.32);
}
.tct-ab-stats__grid li { position: relative; padding: 26px 24px; min-width: 0; text-align: left; }
.tct-ab-stats__grid li + li::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--vs-border); }
.tct-ab-stats__ico {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 12px; color: var(--vs-accent); background: rgba(226,113,29,.1);
}
.tct-ab-stats__ico svg { width: 22px; height: 22px; }
.tct-ab-stats__grid strong { display: block; font-size: 32px; line-height: 1; font-weight: 800; color: var(--vs-primary); letter-spacing: -.01em; margin-bottom: 6px; }
.tct-ab-stats__grid li > span:last-child { font-size: 13.5px; color: #5a6470; }

/* ============ CÂU CHUYỆN ============ */
.tct-ab-story { padding-block: 72px; }
.tct-ab-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tct-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vs-accent); }
.tct-ab-story__text { min-width: 0; }
.tct-ab-story__text h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; margin: 0 0 18px; }
.tct-ab-story__body p { font-size: 16px; line-height: 1.75; color: #4a5562; margin: 0 0 14px; }
.tct-ab-story__body p:first-child { font-size: 17px; color: #2e3a46; }
.tct-ab-story__body strong { color: var(--vs-primary); }

.tct-ab-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tct-ab-points li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--vs-bg-light); border: 1px solid var(--vs-border); border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--vs-primary); line-height: 1.35;
  transition: border-color .2s, transform .2s;
}
.tct-ab-points li:hover { border-color: var(--vs-accent); transform: translateY(-2px); }
.tct-ab-points svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--vs-accent); }

/* Cụm ảnh biểu trưng */
.tct-ab-visual { position: relative; z-index: 0; min-width: 0; padding: 0 0 56px 0; }
.tct-ab-visual::before {
  content: ""; position: absolute; left: -18px; top: -18px; z-index: -1; width: 58%; height: 70%;
  border-radius: 22px; background: linear-gradient(135deg, var(--vs-accent), #f39448); opacity: .95;
}
.tct-ab-visual__main { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(15,53,87,.45); }
.tct-ab-visual__main img { display: block; width: 100%; height: auto; aspect-ratio: 4/3.2; object-fit: cover; transition: transform .8s var(--tct-ease); }
.tct-ab-visual:hover .tct-ab-visual__main img { transform: scale(1.05); }
.tct-ab-visual__sub {
  position: absolute; right: -14px; bottom: 0; width: 52%; margin: 0;
  border-radius: 16px; overflow: hidden; border: 6px solid #fff;
  box-shadow: 0 20px 40px -14px rgba(15,53,87,.5);
}
.tct-ab-visual__sub img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.tct-ab-visual__badge {
  position: absolute; left: 18px; bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 36px -12px rgba(15,53,87,.45);
  animation: tctFloat 5s ease-in-out infinite;
}
.tct-ab-visual__badge-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
  color: #fff; background: linear-gradient(135deg, #1f5585, var(--vs-primary));
}
.tct-ab-visual__badge-ico svg { width: 22px; height: 22px; }
.tct-ab-visual__badge span:last-child { font-size: 12.5px; color: #5a6470; line-height: 1.3; }
.tct-ab-visual__badge strong { display: block; font-size: 15px; color: var(--vs-primary); }
.tct-ab-visual__dots {
  position: absolute; right: 18%; top: -26px; width: 96px; height: 96px; z-index: -1;
  background-image: radial-gradient(rgba(15,53,87,.25) 2px, transparent 2px);
  background-size: 14px 14px;
}

/* ============ HỒ SƠ DOANH NGHIỆP ============ */
.tct-ab-profile { padding-block: 64px; background: var(--vs-bg-light); }
.tct-ab-profile h2 { margin: 0 0 24px; }
.tct-ab-profile__list {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 0;
  background: #fff; border: 1px solid var(--vs-border); border-radius: 18px; overflow: hidden;
}
.tct-ab-profile__list > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--vs-border); min-width: 0; transition: background .2s; }
.tct-ab-profile__list > div:nth-child(odd):not(.tct-ab-profile__wide) { border-right: 1px solid var(--vs-border); }
.tct-ab-profile__list > div:last-child { border-bottom: 0; }
.tct-ab-profile__list > div:hover { background: #fffaf5; }
.tct-ab-profile__wide { grid-column: 1 / -1; }
.tct-ab-profile__list dt { font-size: 12px; font-weight: 700; color: #7d8a97; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.tct-ab-profile__list dd { margin: 0; font-size: 14.5px; color: var(--vs-primary); font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.tct-ab-profile__list a { color: var(--vs-accent); text-decoration: none; }
.tct-ab-profile__list a:hover { text-decoration: underline; }

/* ============ THƯƠNG HIỆU ============ */
.tct-ab-brands { padding-block: 72px 24px; }
.tct-ab-brands h2 { margin: 0 0 26px; }
.tct-ab-brands__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tct-ab-brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; padding: 22px 12px 16px; background: #fff; text-decoration: none;
  border: 1px solid var(--vs-border); border-radius: 16px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tct-ab-brand:hover { border-color: var(--vs-accent); transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(15,53,87,.35); }
.tct-ab-brand__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; }
.tct-ab-brand__logo img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .75; transition: filter .3s, opacity .3s;
}
.tct-ab-brand:hover .tct-ab-brand__logo img { filter: none; opacity: 1; }
.tct-ab-brand__word { font-weight: 900; font-size: 19px; letter-spacing: .04em; color: #8a96a3; transition: color .3s; }
.tct-ab-brand:hover .tct-ab-brand__word { color: var(--vs-primary); }
.tct-ab-brand__name { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #8a96a3; }

/* ============ CÔNG TRÌNH ============ */
.tct-ab-projects { padding-block: 56px 80px; }
.tct-ab-projects .tct-section-head { align-items: flex-end; margin-bottom: 24px; }
.tct-ab-projects h2 { margin: 0; }
.tct-ab-projects__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tct-ab-proj { position: relative; display: block; min-width: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; text-decoration: none; background: var(--vs-bg-soft); }
.tct-ab-proj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--tct-ease); }
.tct-ab-proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,25,42,.88) 100%); }
.tct-ab-proj:hover .tct-ab-proj__img { transform: scale(1.07); }
.tct-ab-proj__name {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3;
}
.tct-ab-proj__name svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--vs-accent); transition: transform .25s; }
.tct-ab-proj:hover .tct-ab-proj__name svg { transform: translateX(4px); }

/* ============ HIỆU ỨNG KHI CUỘN (chỉ khi JS chạy được) ============ */
.tct-anim [data-anim] { opacity: 0; transform: translateY(32px); transition: opacity .75s var(--tct-ease), transform .75s var(--tct-ease); }
.tct-anim [data-anim="left"] { transform: translateX(-40px); }
.tct-anim [data-anim].is-in { opacity: 1; transform: none; }
.tct-anim-off [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .tct-ab-brands__grid { grid-template-columns: repeat(3, 1fr); }
  .tct-ab-story__grid { gap: 44px; }
}
@media (max-width: 900px) {
  .tct-ab-hero__grid { grid-template-columns: 1fr; }
  .tct-ab-hero__art { position: absolute; right: -110px; top: -40px; width: 280px; opacity: .14; pointer-events: none; }
  .tct-ab-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .tct-ab-stats__grid li:nth-child(3)::before { display: none; }
  .tct-ab-stats__grid li:nth-child(n+3) { border-top: 1px solid var(--vs-border); }
  .tct-ab-story__grid { grid-template-columns: 1fr; }
  .tct-ab-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .tct-ab-projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tct-ab-hero { padding-block: 34px 92px; }
  .tct-ab-hero h1 { font-size: 34px; }
  .tct-crumbs { margin-bottom: 16px; }
  .tct-ab-stats { margin-top: -60px; }
  .tct-ab-stats__grid li { padding: 18px 16px; }
  .tct-ab-stats__grid strong { font-size: 26px; }
  .tct-ab-stats__ico { width: 38px; height: 38px; margin-bottom: 10px; }
  .tct-ab-story { padding-block: 48px; }
  .tct-ab-story__body p, .tct-ab-story__body p:first-child { font-size: 15.5px; }
  .tct-ab-points { grid-template-columns: 1fr; }
  .tct-ab-visual { padding-bottom: 44px; }
  .tct-ab-visual::before { left: -10px; top: -10px; }
  .tct-ab-visual__sub { right: -6px; width: 50%; border-width: 4px; }
  .tct-ab-visual__badge { left: 8px; bottom: 14px; padding: 9px 12px 9px 9px; }
  .tct-ab-visual__badge-ico { width: 34px; height: 34px; }
  .tct-ab-profile { padding-block: 48px; }
  .tct-ab-profile__list { grid-template-columns: 1fr; }
  .tct-ab-profile__list > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; border-right: 0 !important; }
  .tct-ab-brands { padding-block: 48px 16px; }
  .tct-ab-brands__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tct-ab-brand__logo img { filter: none; opacity: 1; }
  .tct-ab-projects { padding-block: 40px 56px; }
  .tct-ab-projects__grid { gap: 10px; }
  .tct-ab-proj { aspect-ratio: 3/4; border-radius: 14px; }
  .tct-ab-proj__name { left: 12px; right: 12px; bottom: 12px; font-size: 13.5px; }
}

/* Tôn trọng chế độ giảm chuyển động: mọi thứ hiện ngay, không animation */
@media (prefers-reduced-motion: reduce) {
  .tct-hero-in, .tct-art-core { opacity: 1 !important; animation: none !important; }
  .tct-art-wire { stroke-dashoffset: 0 !important; animation: none !important; }
  .tct-art-cable, .tct-art-ring, .tct-art-pulse circle, .tct-ab-visual__badge { animation: none !important; }
  .tct-anim [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tct-ab-visual:hover .tct-ab-visual__main img, .tct-ab-proj:hover .tct-ab-proj__img,
  .tct-ab-brand:hover, .tct-ab-points li:hover { transform: none; }
}

/* Chốt an toàn (about.js): nếu animation bị treo, hiện ngay mọi thứ của hero. */
.tct-anim-off .tct-hero-in, .tct-anim-off .tct-art-core { opacity: 1 !important; animation: none !important; }
.tct-anim-off .tct-art-wire { stroke-dashoffset: 0 !important; animation: none !important; }
