/* ============ italentbridge.com — layout & components ============ */
/* Token variables: tokens.css. Tweaks ghi đè biến trên :root qua JS.  */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--itb-purple); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-1); line-height: 1.2; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  font-weight: var(--fw-semibold); font-size: 16px; line-height: 1;
  padding: 15px 26px; transition: all var(--dur-ui) var(--ease);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--itb-purple); color: #fff; }
.btn-primary:hover { background: var(--itb-purple-dark); }
.btn-orange { background: var(--itb-orange); color: #fff; }
.btn-orange:hover { filter: brightness(0.94); }
.btn-outline { background: transparent; color: var(--itb-purple); border-color: var(--itb-purple); }
.btn-outline:hover { background: var(--purple-06); }
.btn-ghost { background: transparent; color: var(--itb-purple); }
.btn-ghost:hover { background: var(--purple-06); }
.btn-white { background: #fff; color: var(--itb-purple); }
.btn-white:hover { box-shadow: var(--shadow-md); }
.btn-lg { padding: 18px 34px; font-size: 17px; border-radius: var(--r-lg); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Chips / labels ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-pill); padding: 5px 14px;
  font-size: 13px; font-weight: var(--fw-semibold);
}
.chip-purple { background: var(--purple-06); color: var(--itb-purple); }
.chip-teal   { background: var(--teal-10); color: var(--itb-teal-deep); }
.chip-orange { background: var(--orange-10); color: #c26a10; }
.eyebrow {
  font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--itb-orange);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--ink-2); }
.input {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: #fff; padding: 0 14px;
}
.input input, .input select {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--ink-1); padding: 13px 0; min-width: 0;
}
.input:focus-within { border-color: var(--itb-purple); box-shadow: 0 0 0 3px var(--purple-10); }
.input .ti { color: var(--itb-purple); opacity: 0.55; font-size: 19px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255,252,248,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-1); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.hdr-logo { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); color: var(--itb-purple); font-size: 17px; line-height: 1.05; }
.hdr-logo img { height: 38px; width: auto; }
.hdr-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.hdr-nav a {
  padding: 9px 14px; border-radius: var(--r-sm); color: var(--ink-2);
  font-weight: var(--fw-medium); font-size: 15px; position: relative; white-space: nowrap;
}
.hdr-nav a:hover { color: var(--itb-purple); background: var(--purple-06); }
.hdr-nav a.on { color: var(--itb-purple); font-weight: var(--fw-semibold); }
.hdr-nav a.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2.5px; border-radius: 2px; background: var(--itb-orange);
}
.hdr-cta { display: flex; align-items: center; gap: 10px; }
.hdr-burger { display: none; background: none; border: 0; color: var(--itb-purple); font-size: 26px; padding: 6px; }
.m-menu { display: none; }
.hdr-drop { position: relative; }
.hdr-menu {
  position: absolute; top: 100%; left: 0; min-width: 252px;
  background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-lg);
  box-shadow: 0 18px 46px rgba(36,16,51,0.16); padding: 8px; display: grid; gap: 2px; z-index: 70;
}
.hdr-menu::before { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 10px; }
.hdr-menu a { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--r-md); cursor: pointer; }
.hdr-menu a:hover { background: var(--purple-06); }
.hdr-menu a::after { display: none !important; }

/* ---------- Footer ---------- */
.ftr { background: var(--itb-purple-dark); color: #cbb8ea; margin-top: 96px; }
.ftr a { color: #e4d7f7; }
.ftr a:hover { color: #fff; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.ftr h5 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.ftr-bar { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
.sec { padding: 88px 0; }
.sec-head { max-width: 640px; margin: 0 auto 48px; text-align: center; display: grid; gap: 12px; }
.sec-head h2 { font-size: 34px; font-weight: var(--fw-xbold); color: var(--itb-purple); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow-sm);
}

/* ---------- Progress (test) ---------- */
.prog-track { position: relative; flex: 1; height: 10px; border-radius: 10px; background: var(--purple-10); }
.prog-fill { position: absolute; inset: 0 auto 0 0; border-radius: 10px; background: var(--itb-purple); transition: width 300ms var(--ease); }
.prog-ava {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--itb-orange);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 2px 8px rgba(255,136,29,0.5);
  transition: left 300ms var(--ease); border: 2px solid #fff;
}
.answer {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink-2); border: 1.5px solid var(--line-2);
  border-radius: var(--r-md); padding: 16px 18px; font-size: 15.5px;
  font-weight: var(--fw-medium); min-height: 56px;
  transition: all var(--dur-micro) var(--ease);
}
.answer:hover { border-color: var(--itb-purple); background: var(--purple-06); }
.answer.sel { background: var(--itb-purple); border-color: var(--itb-purple); color: #fff; }
.answer .ti { font-size: 21px; color: var(--purple-30); }
.answer.sel .ti { color: var(--itb-teal-mint); }

/* ---------- Report ---------- */
.rep-wrap { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }
.rep-toc { position: sticky; top: 92px; display: grid; gap: 4px; }
.rep-toc a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); font-weight: var(--fw-medium);
}
.rep-toc a:hover { background: var(--purple-06); color: var(--itb-purple); }
.rep-toc a.lock { color: var(--ink-3); }
.rep-sec { background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-xl); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.rep-sec + .rep-sec { margin-top: 24px; }
.rep-h {
  font-size: 24px; font-weight: var(--fw-xbold); color: var(--itb-purple);
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
}
.rep-num {
  width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--purple-06);
  color: var(--itb-purple); display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: var(--fw-bold);
}
.bar-row { display: grid; grid-template-columns: 170px 1fr 40px; align-items: center; gap: 14px; font-size: 14px; }
.bar-row .nm { color: var(--ink-2); font-weight: var(--fw-medium); text-align: right; }
.bar-row .val { font-weight: var(--fw-bold); color: var(--ink-1); }
.bar-track { height: 12px; border-radius: 8px; background: var(--purple-10); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; background: var(--itb-gray, #757575); }
.bar-row.top .bar-fill { background: var(--itb-orange); }
.bar-row.top .nm { color: var(--itb-purple); font-weight: var(--fw-bold); }
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.det-col { border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden; }
.det-col > .det-h {
  background: var(--itb-purple); color: #fff; text-align: center;
  font-weight: var(--fw-bold); font-size: 15px; letter-spacing: 0.04em; padding: 12px;
}
.det-col:nth-child(2) > .det-h { color: var(--itb-teal); }
.det-cell { padding: 14px 16px; font-size: 14px; border-top: 1px solid var(--line-1); background: #fbfaff; }
.det-cell b { color: var(--ink-1); }

/* ---------- Lock / paywall ---------- */
.lockbox { border: 2px solid var(--orange-30); border-radius: var(--r-xl); overflow: hidden; }
.lock-head { background: #fffaf3; padding: 26px 32px; }
.blurzone { position: relative; padding: 26px 32px; }
.blurzone .content { filter: blur(6px); pointer-events: none; user-select: none; }
.blur-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(255,252,248,0.35), rgba(255,252,248,0.92));
}

/* ---------- Gate banner ---------- */
.gatebar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 70;
  width: min(720px, calc(100% - 32px));
  background: var(--itb-purple); color: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
}
.gatebar.gatebar-compact {
  position: static; left: auto; transform: none; bottom: auto; z-index: auto;
  width: 100%; max-width: none; padding: 16px; gap: 12px;
  flex-direction: column; align-items: stretch; box-shadow: var(--shadow-lg);
}
.rep-toc .gatebar-compact { margin-top: 12px; }

/* ---------- Careers ---------- */
.car-wrap { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 36px; align-items: start; }
.car-side { position: sticky; top: 92px; display: grid; gap: 3px; }
.car-side button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; background: none; border: 0; text-align: left;
  padding: 9px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-2);
  font-weight: var(--fw-medium);
}
.car-side button:hover { background: var(--purple-06); color: var(--itb-purple); }
.car-side button.on { background: var(--itb-purple); color: #fff; }
.car-side button.on .cnt { color: var(--itb-teal-mint); }
.car-side .cnt { font-size: 12px; color: var(--ink-3); }
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.car-card {
  background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-lg);
  padding: 20px; display: grid; gap: 10px; align-content: start;
  transition: all var(--dur-ui) var(--ease); cursor: pointer;
}
.car-card:hover { border-color: var(--purple-30); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- Blog ---------- */
.blog-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all var(--dur-ui) var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- Account ---------- */
.acc-wrap { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 36px; align-items: start; }
.acc-side { background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-xl); padding: 24px 14px; display: grid; gap: 4px; position: sticky; top: 92px; }
.acc-side button {
  display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none;
  text-align: left; padding: 11px 14px; border-radius: var(--r-md); font-size: 15px;
  color: var(--ink-2); font-weight: var(--fw-medium);
}
.acc-side button:hover { background: var(--purple-06); }
.acc-side button.on { background: var(--itb-purple); color: #fff; }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.login-art { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 48px; }

/* ---------- Motifs ---------- */
.ring { position: absolute; border-radius: 50%; border: 2px solid; pointer-events: none; }
.blob { position: absolute; pointer-events: none; }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(42,0,88,0.5);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--r-xl); width: min(480px, 100%);
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line-1); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
  align-items: center; padding: 16px 18px; font-weight: var(--fw-semibold); color: var(--ink-1); font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Motion (sinh động — tôn trọng prefers-reduced-motion) ---------- */
@keyframes itbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes itbSpark { 0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.5; } 50% { transform: scale(1.2) rotate(14deg); opacity: 1; } }
@keyframes itbMarquee { to { transform: translateX(-50%); } }
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; align-items: center; gap: 14px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .float { animation: itbFloat 6.5s ease-in-out infinite; }
  .float-slow { animation: itbFloat 10s ease-in-out infinite; }
  .spark { animation: itbSpark 3s ease-in-out infinite; }
  .marquee-track { animation: itbMarquee 32s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .cta-arrow .ti-arrow-right { transition: transform 240ms var(--ease); }
  .cta-arrow:hover .ti-arrow-right { transform: translateX(5px); }
}

/* ---------- Motion nâng cao (Home C) ---------- */
@keyframes itbSpin { to { transform: rotate(360deg); } }
@keyframes itbSpinRev { to { transform: rotate(-360deg); } }
@keyframes itbPulseRing { 0% { transform: scale(0.65); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }
@keyframes itbBlobMorph {
  0%, 100% { border-radius: 44% 56% 62% 38% / 46% 42% 58% 54%; }
  33% { border-radius: 58% 42% 40% 60% / 56% 60% 40% 44%; }
  66% { border-radius: 38% 62% 56% 44% / 42% 52% 48% 58%; }
}
@keyframes itbWordIn { from { opacity: 0; transform: translateY(85%); } to { opacity: 1; transform: none; } }
@keyframes itbDrift { from { background-position: 0px 0px, 0px 0px; } to { background-position: 48px 34px, -48px -34px; } }
.grow-line { transform: scaleY(0); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-ring { animation: itbSpin 28s linear infinite; }
  .orbit-anti { animation: itbSpinRev 28s linear infinite; }
  .pulse-ring { animation: itbPulseRing 2.6s var(--ease) infinite; }
  .blob-morph { animation: itbBlobMorph 12s ease-in-out infinite; }
  .word-in { animation: itbWordIn 500ms var(--ease); }
  .drift { animation: itbDrift 16s ease-in-out infinite alternate; }
  .grow-line.on { transform: scaleY(1); transition: transform 1400ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .grow-line { transform: none; }
  .pulse-ring { display: none; }
}

/* ---------- Job detail (single job) ---------- */
.job-wrap { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; align-items: start; }
.job-main { display: grid; gap: 8px; }
.job-block { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.job-tabs { display: grid; gap: 2px; }
.job-tab {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: #fff; border: 1px solid var(--line-1);
  border-radius: var(--r-sm); padding: 13px 15px; cursor: pointer;
  font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: 0.03em;
  color: var(--ink-2); transition: all var(--dur-micro) var(--ease); line-height: 1.35;
}
.job-tab:hover { border-color: var(--line-2); }
.job-tab.on { border-color: transparent; }
.job-tab-arrow {
  position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 11px solid var(--itb-purple-dark);
}
.job-content { border-bottom: 1px solid var(--line-1); padding-bottom: 20px; min-height: 200px; }
.job-side { display: grid; gap: 16px; position: sticky; top: 92px; }
.job-side .input { flex-direction: row-reverse; }
.job-side-card { border: 1px solid var(--line-1); border-radius: var(--r-md); padding: 16px 18px; background: #fff; }
.job-side-h { font-size: 16px; font-weight: var(--fw-bold); color: var(--itb-purple-dark); padding-bottom: 8px; border-bottom: 2px solid var(--itb-orange); margin-bottom: 4px; display: inline-block; }
.job-side-list { list-style: none; margin: 8px 0 0; padding: 0; }
.job-side-list li { border-bottom: 1px solid var(--line-1); }
.job-side-list li:last-child { border-bottom: none; }
.job-side-list button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 11px 2px; font-size: 13.5px; color: var(--ink-2); transition: color var(--dur-micro) var(--ease); }
.job-side-list button:hover { color: var(--itb-purple); }

/* ---------- Career tree (Career Exploration) ---------- */
.tree-wrap { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; align-items: start; }
.tree-rail { display: grid; gap: 12px; position: sticky; top: 92px; }
.tree-cluster {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-lg);
  padding: 16px 18px; text-align: left; cursor: pointer;
  transition: all var(--dur-ui) var(--ease);
}
.tree-cluster:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.tree-cluster.on { background: var(--purple-06); border-color: var(--purple-30); box-shadow: var(--shadow-sm); }
.tree-ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; font-size: 22px; }
.tree-cluster-name { font-size: 15px; font-weight: var(--fw-semibold); color: var(--ink-1); line-height: 1.3; }
.tree-pointer {
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-left: 12px solid var(--itb-orange);
}
.tree-panel { background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-xl); padding: 30px 32px; box-shadow: var(--shadow-sm); min-height: 480px; }
.tree-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.tree-group { display: grid; gap: 4px; align-content: start; }
.tree-group-line { height: 3px; width: 100%; border-radius: 3px; margin-bottom: 12px; opacity: 0.9; }
.tree-group-title { font-size: 16px; font-weight: var(--fw-bold); color: var(--itb-purple-dark); display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.tree-diamond { font-size: 11px; }
.tree-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tree-item {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 7px 8px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--ink-2); font-weight: var(--fw-medium);
  transition: all var(--dur-micro) var(--ease);
}
.tree-item .ti { color: var(--itb-orange); transition: transform var(--dur-micro) var(--ease); }
.tree-item:hover { background: var(--purple-06); color: var(--itb-purple); }
.tree-item:hover .ti { transform: translateX(3px); }
.tree-empty { font-size: 13.5px; color: var(--ink-3); font-style: italic; padding: 4px 8px; }

/* ---------- Nền "Lốc xoáy" (vortex) — lấy từ Capability Design, tông premium ---------- */
.vortex-bg {
  background:
    conic-gradient(from 210deg at 88% 4%, rgba(99,219,198,.15), rgba(63,0,138,0) 26%, rgba(255,136,29,.11) 54%, rgba(63,0,138,0) 78%, rgba(99,219,198,.15)),
    radial-gradient(64% 56% at 86% 2%, rgba(99,219,198,.12) 0%, transparent 56%),
    radial-gradient(55% 55% at 26% 26%, rgba(150,80,235,.38) 0%, transparent 62%),
    radial-gradient(140% 120% at 55% -8%, #3e1c84 0%, #281059 34%, #160832 66%, #0b0420 100%);
  color: #fff;
}
.vortex-soft {
  background:
    conic-gradient(from 210deg at 92% 0%, rgba(99,219,198,.10), rgba(63,0,138,0) 30%, rgba(255,136,29,.08) 56%, rgba(63,0,138,0) 80%, rgba(99,219,198,.10)),
    radial-gradient(60% 60% at 20% 20%, rgba(150,80,235,.30) 0%, transparent 62%),
    linear-gradient(150deg, #46209a 0%, #2e1266 44%, #1a0a42 100%);
  color: #fff;
}

/* ===== Phương án F — full-screen scroll motion ===== */
.fsx { height: 100dvh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scroll-behavior: smooth; position: relative; background: #0e0524; }
.fsx::-webkit-scrollbar { width: 0; height: 0; }
.fsp { min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; align-content: center; position: relative; overflow: hidden; padding: 104px 6vw 72px; }
.fsp-light { background: #faf6ee; }
.fsr { opacity: 0; transform: translateY(30px); transition: opacity .72s var(--ease-itb, cubic-bezier(.22,.61,.36,1)), transform .72s var(--ease-itb, cubic-bezier(.22,.61,.36,1)); }
.fsp.is-active .fsr { opacity: 1; transform: none; }
.fsbar-fill { width: 0; transition: width 1.2s cubic-bezier(.22,.61,.36,1) .25s; }
.fsp.is-active .fsbar-fill { width: var(--w, 100%); }
@media (prefers-reduced-motion: reduce) { .fsr { opacity: 1 !important; transform: none !important; } .fsbar-fill { transition: none; } }
.fsnav { position: sticky; top: 0; z-index: 45; margin-bottom: -72px; display: flex; align-items: center; gap: 26px; padding: 20px 6vw; transition: background .3s var(--ease-itb, ease), backdrop-filter .3s; }
.fsnav.dark { background: rgba(250,246,238,.82); backdrop-filter: blur(10px) saturate(120%); border-bottom: 1px solid rgba(0,0,0,.06); }
.fsnav a.fslink { color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.fsnav a.fslink:hover { color: #fff; }
.fsnav.dark a.fslink { color: var(--ink-2); }
.fsnav.dark a.fslink:hover { color: var(--itb-purple); }
.fsdots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 14px; }
.fsdot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(140,140,150,.55); background: transparent; cursor: pointer; padding: 0; transition: all .25s var(--ease-itb, ease); }
.fsdot.on { background: var(--itb-teal); border-color: var(--itb-teal); transform: scale(1.3); box-shadow: 0 0 0 4px rgba(99,219,198,.18); }
.fs-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.72); display: grid; justify-items: center; gap: 3px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.fs-hint .ti { font-size: 22px; animation: fsBounce 1.8s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes fsBounce { 0%,100%{ transform: translateY(0); opacity: .6; } 50%{ transform: translateY(7px); opacity: 1; } }
.fstile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-top: 2px solid var(--tc, var(--itb-teal)); border-radius: 18px; padding: 22px 20px; cursor: pointer; transition: transform .25s var(--ease-itb, ease), background .25s; backdrop-filter: blur(4px); }
.fstile:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
/* Lốc xoáy — dựng lại đúng nền vortex của Capability Design (sáng, tím premium) */
.fsx .vortex-bg, .fsx .vortex-soft {
  position: relative;
  background:
    conic-gradient(from 210deg at 86% 6%, rgba(99,219,198,.17), rgba(63,0,138,0) 24%, rgba(255,136,29,.12) 52%, rgba(63,0,138,0) 78%, rgba(99,219,198,.17)),
    radial-gradient(66% 58% at 84% 4%, rgba(99,219,198,.13) 0%, transparent 56%),
    radial-gradient(55% 55% at 26% 26%, rgba(150,80,235,.40) 0%, transparent 62%),
    radial-gradient(140% 120% at 55% -8%, #3e1c84 0%, #281059 34%, #160832 66%, #0b0420 100%);
}
.fsx .vortex-bg::before, .fsx .vortex-soft::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 32%, transparent 50%, rgba(6,1,20,.45) 100%);
}
.fsx .vortex-bg > *, .fsx .vortex-soft > * { position: relative; z-index: 1; }

/* ---------- Print (Tải PDF báo cáo) ---------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .no-print, .gatebar, .hdr, .ftr { display: none !important; }
  .rep-wrap { grid-template-columns: 1fr; }
  .rep-toc { display: none; }
  body { background: #fff; }
  .rep-sec { box-shadow: none; break-inside: avoid; }
}

/* ================= RESPONSIVE ================= */
/* Header: gập xuống burger sớm (trước khi menu sản phẩm tràn hàng) */
@media (max-width: 1040px) {
  .hdr-nav, .hdr-cta .btn-outline, .hdr-cta .hide-m { display: none; }
  .hdr-burger { display: inline-flex; }
  .m-menu {
    display: grid; gap: 4px; padding: 12px 18px 18px;
    background: #fff; border-bottom: 1px solid var(--line-1);
  }
  .m-menu a { padding: 12px 14px; border-radius: var(--r-sm); font-weight: var(--fw-semibold); color: var(--ink-1); }
  .m-menu a.on { background: var(--purple-06); color: var(--itb-purple); }
}
@media (max-width: 960px) {
  [data-hero="a"], [data-hero-b2="1"], [data-hero="c"], [data-hero="d"], [data-hero="e"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .grid3, .grid4, .car-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .rep-wrap, .car-wrap, .acc-wrap, .tree-wrap { grid-template-columns: 1fr; }
  .rep-toc, .car-side, .acc-side, .tree-rail, .job-side { position: static; }
  .job-wrap { grid-template-columns: 1fr; }
  .job-block { grid-template-columns: 1fr; gap: 12px; }
  .job-tab-arrow { display: none; }
  .tree-rail { grid-template-columns: repeat(2, 1fr); }
  .tree-pointer { display: none; }
  .tree-panel { padding: 24px 22px; }
  .blog-hero { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { min-height: 220px; }
  .sec { padding: 64px 0; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .hdr-nav, .hdr-cta .btn-outline, .hdr-cta .hide-m { display: none; }
  .hdr-burger { display: inline-flex; }
  .m-menu {
    display: grid; gap: 4px; padding: 12px 18px 18px;
    background: #fff; border-bottom: 1px solid var(--line-1);
  }
  .m-menu a { padding: 12px 14px; border-radius: var(--r-sm); font-weight: var(--fw-semibold); color: var(--ink-1); }
  .m-menu a.on { background: var(--purple-06); color: var(--itb-purple); }
  .grid3, .grid4, .car-grid, .blog-grid { grid-template-columns: 1fr; }
  .tree-rail { grid-template-columns: 1fr; }
  .tree-groups { grid-template-columns: 1fr; gap: 24px; }
  .sec { padding: 48px 0; }
  .sec-head h2 { font-size: 26px; }
  .ftr-in { grid-template-columns: 1fr 1fr; padding: 40px 0 28px; }
  .rep-sec { padding: 24px 20px; border-radius: var(--r-lg); }
  .det-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 108px 1fr 34px; gap: 9px; font-size: 12.5px; }
  .gatebar { flex-wrap: wrap; }
  [data-teasers="1"], [data-cols-m="1"] { grid-template-columns: 1fr !important; }
  [data-hero="a"] { padding: 56px 24px 60px !important; }
  [data-hero="a"] h1 { font-size: 33px !important; }
  [data-hero="b"] h1 { font-size: 34px !important; }
  [data-hero="b"] { padding: 64px 24px 48px !important; }
  [data-hero="c"] h1 { font-size: 37px !important; }
  [data-hero="c"] { padding: 56px 24px 64px !important; }
  [data-hero="d"] h1 { font-size: 32px !important; }
  [data-hero="d"] { padding: 52px 24px 56px !important; }
  [data-hero="e"] { min-height: 0 !important; }
  [data-hero="e"] h1 { font-size: 36px !important; }
  [data-cta-m="1"] { justify-self: start !important; }
  [data-screen-label="Test — Hoàn thành phần"] h1 { font-size: 25px !important; }
  [data-screen-label="Kết quả A"] h1, [data-screen-label="Kết quả B"] h1 { font-size: 25px !important; }
  [data-pad-m="1"] { padding: 26px 22px !important; }
  .rep-h { font-size: 20px !important; }
}

/* =====================================================================
   Home F v4 — motion-first · 3-Role Engine · animated scenes
   Vocab bóc từ SO-3RE Motion: ring-draw · glow-glide · orbit · signal loop.
   ===================================================================== */

/* ---- Kinetic headline — clip reveal per line, mở khi panel active ---- */
.kin { display: block; overflow: hidden; padding-bottom: 0.04em; }
.kin > span { display: block; transform: translateY(118%); }
.fsp.is-active .kin > span { animation: kinUp 0.9s var(--ease) both; }
@keyframes kinUp { from { transform: translateY(118%); } to { transform: none; } }

/* ---- Lane colors (từ SO-3RE Motion) dùng cho engine/scene ---- */
.fsx { --lane-ai: #63dbc6; --lane-architect: #bfa3f5; --lane-builder: #ff9a33; --lane-gov: #f0604a; --lane-human: #c4abf2; --lane-gate: #ffce5a; }

/* ---- 3-Role Engine ---- */
.engine { position: relative; width: 100%; max-width: 468px; aspect-ratio: 1 / 1; margin: 0 auto; }
.engine .eng-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eng-ringline { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 1.4; }
.eng-draw { fill: none; stroke: var(--lane-ai); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); filter: drop-shadow(0 0 7px rgba(99,219,198,0.55)); }
.fsp.is-active .eng-draw { animation: engDraw 1.6s var(--ease) 0.25s forwards; }
@keyframes engDraw { to { stroke-dashoffset: 0; } }
.eng-spoke { stroke: rgba(174,255,240,0.16); stroke-width: 1.2; }
.eng-stream { fill: none; stroke: var(--lane-ai); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2.5 15; filter: drop-shadow(0 0 5px rgba(99,219,198,0.75)); opacity: 0; }
.eng-tick { fill: rgba(255,255,255,0.35); }
.eng-signal { fill: #fff; filter: drop-shadow(0 0 8px var(--lane-ai)); }

.eng-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 26%; height: 26%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(99,219,198,0.32), rgba(30,12,64,0.9) 72%);
  border: 1.5px solid rgba(99,219,198,0.7); box-shadow: 0 0 60px -8px var(--lane-ai), inset 0 0 22px -6px rgba(99,219,198,0.6);
  display: grid; place-items: center; z-index: 3;
}
.eng-core img { width: 46%; height: auto; filter: brightness(0) invert(1); }
.eng-core .eng-core-t { font-size: clamp(9px, 1.5vw, 11px); font-weight: 800; letter-spacing: 0.1em; color: var(--itb-teal-mint); margin-top: 3px; }
.eng-halo { position: absolute; top: 50%; left: 50%; width: 26%; height: 26%; border-radius: 50%; border: 1.5px solid rgba(99,219,198,0.5); transform: translate(-50%, -50%); z-index: 2; }

.eng-node { position: absolute; transform: translate(-50%, -50%); display: grid; gap: 6px; justify-items: center; width: 128px; text-align: center; z-index: 4; }
.eng-node .nd-ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 25px;
  color: #fff; background: color-mix(in srgb, var(--nc) 22%, #1c0b3c); border: 1.5px solid var(--nc);
  box-shadow: 0 0 26px -6px var(--nc);
}
.eng-node .nd-name { font-size: 14.5px; font-weight: 800; color: #fff; line-height: 1.1; }
.eng-node .nd-cap { font-size: 11.5px; color: var(--ink-on-brand-soft); line-height: 1.2; }

@media (prefers-reduced-motion: no-preference) {
  .eng-field { animation: itbSpin 64s linear infinite; transform-box: fill-box; transform-origin: center; }
  .eng-field-rev { animation: itbSpinRev 88s linear infinite; transform-box: fill-box; transform-origin: center; }
  .fsp.is-active .eng-stream { animation: engStream 1.7s linear infinite; }
  .eng-node .nd-ic { animation: itbFloat 6.5s ease-in-out infinite; }
  .eng-core { animation: engCorePulse 3.4s ease-in-out infinite; }
  .eng-halo { animation: engHalo 3.4s var(--ease) infinite; }
}
@keyframes engStream { from { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: -35; opacity: 1; } }
@keyframes engCorePulse { 0%, 100% { box-shadow: 0 0 60px -8px var(--lane-ai), inset 0 0 22px -6px rgba(99,219,198,0.6); } 50% { box-shadow: 0 0 92px -6px var(--lane-ai), inset 0 0 26px -4px rgba(99,219,198,0.8); } }
@keyframes engHalo { 0% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); } }

/* ---- Rhythm loop (Human → AI) ---- */
.rhythm { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; max-width: 760px; margin: 0 auto; }
.rhythm-track { position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: rgba(255,255,255,0.14); z-index: 0; }
.rhythm-comet { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lane-gate); box-shadow: 0 0 14px 2px var(--lane-gate); }
.fsp.is-active .rhythm-comet { animation: rhythmRun 3.6s var(--ease) infinite; }
@keyframes rhythmRun { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.rhythm-beat { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; width: 30%; text-align: center; }
.rhythm-beat .rb-dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; color: #fff; background: color-mix(in srgb, var(--bc) 20%, #1c0b3c); border: 2px solid var(--bc); box-shadow: 0 0 24px -6px var(--bc); }
@media (prefers-reduced-motion: no-preference) { .fsp.is-active .rhythm-beat .rb-dot { animation: rbPop 0.6s var(--ease) both; } }
@keyframes rbPop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Fork cards (Bạn là ai) accent ---- */
.forkcard { position: relative; overflow: hidden; }
.forkcard .fk-ring { position: absolute; top: -46px; right: -46px; width: 130px; height: 130px; border-radius: 50%; border: 2px solid var(--fc); opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) { .forkcard:hover .fk-ring { animation: itbSpin 9s linear infinite; } }
.forkcard { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.forkcard:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -30px rgba(63,0,138,0.5); }

/* ---- IKIGAI venn ---- */
.iki { position: relative; width: 100%; max-width: 424px; aspect-ratio: 1 / 1; margin: 0 auto; }
.iki-c { position: absolute; width: 62%; height: 62%; border-radius: 50%; border: 2px solid var(--cc); background: color-mix(in srgb, var(--cc) 22%, transparent); mix-blend-mode: multiply; }
.fsp.is-active .iki-c { animation: ikiPop 0.7s var(--ease) both; }
@keyframes ikiPop { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: none; } }
.iki-lb { position: absolute; font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--itb-purple); text-transform: uppercase; white-space: nowrap; }
.iki-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.7), 0 12px 30px -10px rgba(63,0,138,0.5); }
.iki-core b { font-size: 16px; font-weight: 800; color: var(--itb-purple); letter-spacing: 0.02em; }
@media (prefers-reduced-motion: no-preference) { .fsp.is-active .iki-core { animation: ikiGlow 3s ease-in-out 0.8s infinite; } }
@keyframes ikiGlow { 0%, 100% { box-shadow: 0 0 0 6px rgba(255,255,255,0.7), 0 0 0 0 rgba(99,219,198,0.5); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0.7), 0 0 0 12px rgba(99,219,198,0); } }

/* ---- Stat chips ---- */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .kin > span { transform: none !important; animation: none !important; }
  .eng-draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .eng-stream { opacity: 1 !important; }
  .iki-c { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rhythm-beat .rb-dot { animation: none !important; }
}

/* pilot pulse dot */
.pulse-host::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--itb-orange); }
@media (prefers-reduced-motion: no-preference) { .pulse-host::after { animation: pilotPulse 2s var(--ease) infinite; } }
@keyframes pilotPulse { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

@media (max-width: 900px) {
  .rhythm { flex-direction: column; align-items: center; gap: 20px; }
  .rhythm-track { display: none; }
  .rhythm-beat { width: 100%; max-width: 320px; }
  .rhythm-comet { display: none; }
}

/* ---- SO-3RE Motion blocks: scope dark tokens to the scene, site stays light ---- */
.so3re-scene { --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; --ink-2: rgba(255,255,255,0.80); --ink-3: rgba(255,255,255,0.52); --line-2: rgba(255,255,255,0.16); }
.so3re-scene { position: relative; width: 100%; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 34px 80px -40px rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.12); }

/* Engine không bị cắt trên màn thấp / hẹp */
@media (max-height: 800px) { .engine { max-width: 380px; } }
@media (max-width: 640px) { .engine { max-width: 320px; } .iki { max-width: 340px; } }

/* ---- Hero motif — vòng đồng tâm brand: vẽ + xoay + lõi phát sáng ---- */
.heromotif-svg .hm-ring { fill: none; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); }
.fsp.is-active .heromotif-svg .hm-ring { animation: hmDraw 1.7s var(--ease) forwards; }
@keyframes hmDraw { to { stroke-dashoffset: 0; } }
.hm-core { position: absolute; top: 50%; left: 50%; width: 30%; height: 30%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(99,219,198,0.20), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .heromotif-svg .hm-spin { transform-box: fill-box; transform-origin: center; animation: itbSpin 110s linear infinite; }
  .heromotif-svg .hm-dashrot { transform-box: fill-box; transform-origin: center; animation: itbSpinRev 64s linear infinite; }
  .hm-core { animation: hmPulse 4.2s ease-in-out infinite; }
}
@keyframes hmPulse { 0%, 100% { opacity: 0.45; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.85; transform: translate(-50%,-50%) scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .heromotif-svg .hm-ring { stroke-dashoffset: 0 !important; animation: none !important; } }

/* ---- Journey connector + comet (Panel 2) ---- */
.fs-journey .jline { position: absolute; left: 8%; right: 8%; top: 30px; height: 2px; background: rgba(255,255,255,0.12); z-index: 0; }
.fs-journey .jcomet { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--itb-teal); box-shadow: 0 0 12px 2px var(--itb-teal); }
.fs-journey > div { position: relative; z-index: 1; }
.fsp.is-active .fs-journey .jcomet { animation: jRun 4.4s var(--ease) infinite; }
@keyframes jRun { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 620px) { .fs-journey .jline { display: none; } }
