/* TanTam 2.0 – giao diện tantam.pro.vn · Nguyễn Bá Thế
   Phong cách: nền tối công nghệ, chữ chuyển màu, vệt sáng chéo, thẻ kính. Có chế độ sáng.
   Màu lấy từ theme.json (Giao diện → Trình chỉnh sửa → Phong cách để đổi bộ màu). */

/* ---------- Chế độ sáng: lấy màu sáng của bộ màu đang dùng ---------- */
html[data-theme="light"] {
	--wp--preset--color--base: var(--wp--custom--light--base);
	--wp--preset--color--surface: var(--wp--custom--light--surface);
	--wp--preset--color--surface-2: var(--wp--custom--light--surface-2);
	--wp--preset--color--line: var(--wp--custom--light--line);
	--wp--preset--color--contrast: var(--wp--custom--light--contrast);
	--wp--preset--color--muted: var(--wp--custom--light--muted);
	--wp--preset--color--primary: var(--wp--custom--light--primary);
	--wp--preset--color--primary-2: var(--wp--custom--light--primary-2);
	--wp--preset--color--on-primary: var(--wp--custom--light--on-primary);
	--wp--preset--color--accent: var(--wp--custom--light--accent);
	color-scheme: light;
}
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

:root {
	--tt-bg: var(--wp--preset--color--base);
	--tt-surface: var(--wp--preset--color--surface);
	--tt-surface-2: var(--wp--preset--color--surface-2);
	--tt-line: var(--wp--preset--color--line);
	--tt-ink: var(--wp--preset--color--contrast);
	--tt-muted: var(--wp--preset--color--muted);
	--tt-pri: var(--wp--preset--color--primary);
	--tt-pri-2: var(--wp--preset--color--primary-2);
	--tt-on-pri: var(--wp--preset--color--on-primary);
	--tt-acc: var(--wp--preset--color--accent);
	--tt-grad: linear-gradient(100deg, var(--tt-pri) 0%, var(--tt-pri-2) 100%);
	--tt-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--tt-script: "Dancing Script", "Segoe Script", cursive;
	--tt-r: 18px;
	--tt-glass: color-mix(in srgb, var(--tt-surface) 72%, transparent);
	--tt-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -18px rgba(0, 0, 0, .65);
	/* Logo luôn giữ màu thương hiệu đỏ – xanh lá, không đổi theo bộ màu */
	--tt-logo-g: #2FA864;
	--tt-logo-r: #E5484D;
}
html[data-theme="light"] { --tt-logo-g: #166534; --tt-logo-r: #C62828; --tt-shadow: 0 1px 2px rgba(10, 30, 20, .06), 0 16px 36px -20px rgba(10, 30, 20, .25); --tt-glass: color-mix(in srgb, #fff 80%, transparent); }

body { background: var(--tt-bg); color: var(--tt-ink); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; overflow-x: hidden; }
::selection { background: var(--tt-pri); color: var(--tt-on-pri); }
:focus-visible { outline: 2px solid var(--tt-pri); outline-offset: 3px; border-radius: 6px; }
a { text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.tt-grad { background: var(--tt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nền: lưới mờ + quầng sáng */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background:
		radial-gradient(900px 500px at 12% -10%, color-mix(in srgb, var(--tt-pri) 14%, transparent), transparent 70%),
		radial-gradient(700px 420px at 100% 30%, color-mix(in srgb, var(--tt-acc) 9%, transparent), transparent 70%);
}
body::after {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
	background-image: linear-gradient(color-mix(in srgb, var(--tt-line) 60%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tt-line) 60%, transparent) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Đầu trang ---------- */
.tt-header {
	position: sticky; top: 0; z-index: 60;
	background: color-mix(in srgb, var(--tt-bg) 78%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--tt-line) 80%, transparent);
	padding-top: .65rem; padding-bottom: .65rem;
}
.admin-bar .tt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tt-header { top: 46px; } }
.tt-header__in { gap: 1rem; align-items: center; }
.tt-logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--tt-ink); text-decoration: none; }
.tt-logo__mark { width: 56px; height: 37px; flex: 0 0 56px; transition: transform .35s ease; }
.tt-logo:hover .tt-logo__mark { transform: translate(2px, -3px) rotate(-3deg); }
.tt-logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.tt-logo__txt b { font-weight: 800; font-style: italic; font-size: 1.12rem; letter-spacing: -.02em; color: var(--tt-logo-g); }
.tt-logo__txt small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; color: var(--tt-logo-r); margin-top: 2px; }
.tt-logo--lg .tt-logo__mark { width: 74px; height: 49px; flex-basis: 74px; }
.tt-logo--lg .tt-logo__txt b { font-size: 1.4rem; }
.tt-nav { gap: 1rem; align-items: center; }
.tt-nav .wp-block-navigation { font-size: .9rem; font-weight: 500; gap: 1.6rem; }
.tt-nav .wp-block-navigation a { color: color-mix(in srgb, var(--tt-ink) 82%, transparent); text-decoration: none; position: relative; }
.tt-nav .wp-block-navigation a:hover { color: var(--tt-ink); }
.tt-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--tt-grad); transition: right .25s; }
.tt-nav .wp-block-navigation-item__content:hover::after { right: 0; }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--tt-bg) !important; color: var(--tt-ink) !important; }
.tt-toggle {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
	border: 1px solid var(--tt-line); background: var(--tt-glass); color: var(--tt-ink); font-size: 1rem; line-height: 1;
}
.tt-toggle:hover { border-color: var(--tt-pri); color: var(--tt-pri); }
.tt-ico-sun { display: none; }
html[data-theme="light"] .tt-ico-sun { display: inline; }
html[data-theme="light"] .tt-ico-moon { display: none; }
@media (max-width: 720px) { .tt-hide-sm { display: none !important; } .tt-logo__txt small { display: none; } }

/* ---------- Nút ---------- */
.wp-block-button .wp-block-button__link { border-radius: 12px; font-weight: 600; transition: transform .18s, box-shadow .18s, background-color .18s, border-color .18s; }
.tt-btn-glow .wp-block-button__link, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--tt-grad); color: var(--tt-on-pri); border: 0;
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--tt-pri) 70%, transparent), 0 0 0 1px color-mix(in srgb, #fff 8%, transparent) inset;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--tt-pri) 85%, transparent); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid color-mix(in srgb, var(--tt-pri) 55%, var(--tt-line)); color: var(--tt-ink); background: var(--tt-glass); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--tt-pri); color: var(--tt-pri); transform: translateY(-2px); }
.tt-btn-sm .wp-block-button__link { padding: .55rem 1.1rem; font-size: .86rem; border-radius: 999px; }

/* ---------- Kiểu khối dùng chung ---------- */
.is-style-tt-kicker { font-family: var(--tt-mono); font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tt-muted); margin-bottom: .9rem; }
.is-style-tt-kicker::first-letter { color: var(--tt-pri); }
.is-style-tt-card {
	background: var(--tt-glass); border: 1px solid var(--tt-line); border-radius: var(--tt-r);
	padding: clamp(1.1rem, 2.5vw, 1.6rem); box-shadow: var(--tt-shadow);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .25s, border-color .25s;
}
ul.is-style-tt-tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
ul.is-style-tt-tags li { font-family: var(--tt-mono); font-size: .74rem; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--tt-line); background: var(--tt-glass); color: var(--tt-muted); }
.tt-lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.75; color: color-mix(in srgb, var(--tt-ink) 80%, transparent); max-width: 64ch; }
.tt-muted { color: var(--tt-muted); }
.tt-badge {
	display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem; padding: .5rem 1rem .5rem .8rem; border-radius: 999px;
	font-family: var(--tt-mono); font-size: clamp(.66rem, 1.1vw, .8rem); letter-spacing: .12em; text-transform: uppercase;
	color: color-mix(in srgb, var(--tt-ink) 85%, transparent); border: 1px solid color-mix(in srgb, var(--tt-pri) 55%, transparent);
	background: color-mix(in srgb, var(--tt-pri) 8%, transparent);
}
.tt-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tt-pri); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tt-pri) 25%, transparent); animation: tt-pulse 2s infinite; }
@keyframes tt-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--tt-pri) 0%, transparent); } }

/* ---------- Phần mở đầu ---------- */
.tt-hero { position: relative; min-height: min(100vh - 64px, 980px); display: flex; flex-direction: column; justify-content: center; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); isolation: isolate; overflow: hidden; }
.tt-hero > * { position: relative; z-index: 2; }
.tt-hero__photo { position: absolute !important; z-index: 0 !important; top: 0; right: 0; bottom: 0; width: 60%; margin: 0 !important; max-width: none !important; }
.tt-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%); }
.tt-hero__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(0deg, var(--tt-bg), transparent); pointer-events: none; }
/* vệt sáng chéo */
.tt-hero::before, .tt-hero::after { content: ""; position: absolute; z-index: 1; pointer-events: none; top: -20%; height: 140%; transform: skewX(-24deg); }
.tt-hero::before { right: 56%; width: 200px; background: linear-gradient(180deg, transparent, var(--wp--custom--beam--a), transparent); filter: blur(30px); opacity: .4; animation: tt-beam 9s ease-in-out infinite; }
.tt-hero::after { right: -2%; width: 110px; background: linear-gradient(180deg, transparent, var(--wp--custom--beam--b), transparent); filter: blur(18px); opacity: .5; animation: tt-beam 11s ease-in-out infinite reverse; }
@keyframes tt-beam { 50% { opacity: .2; transform: skewX(-24deg) translateX(40px); } }
.tt-hero__script {
	position: absolute !important; z-index: 2 !important; right: max(clamp(16px, 4vw, 60px), calc((100% - 1240px) / 2)); top: clamp(80px, 16%, 180px); margin: 0 !important; max-width: none !important;
	font-family: var(--tt-script); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.18; color: #fff; transform: rotate(-9deg); text-align: left;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .55); opacity: .92; pointer-events: none;
}
.tt-hero__script::after { content: ""; display: block; width: 70%; height: 2px; margin: .4em 0 0 18%; background: linear-gradient(90deg, transparent, #fff, transparent); }
.tt-hero__content { max-width: 690px; margin-left: max(0px, calc((100% - 1240px) / 2)) !important; margin-right: auto !important; width: 100%; }
.tt-hero__title { font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .98; letter-spacing: -.05em; font-weight: 800; margin: 0 0 1.1rem; }
.tt-hero__title .tt-grad { filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--tt-pri) 35%, transparent)); }
.tt-hero__role { font-weight: 700; letter-spacing: .08em; font-size: clamp(.82rem, 1.4vw, 1rem); color: color-mix(in srgb, var(--tt-ink) 82%, transparent); margin: 0 0 1.4rem; }
.tt-hero__role i { color: var(--tt-acc); font-style: normal; margin: 0 .55em; }
ul.tt-skills { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
ul.tt-skills li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55rem; padding-left: 0; }
ul.tt-skills i { flex: 0 0 22px; font-style: normal; color: var(--tt-pri); font-size: 1.05rem; line-height: 1.3; }
ul.tt-skills b { flex: 1 1 calc(100% - 32px); }
ul.tt-skills small { flex: 0 0 100%; padding-left: calc(22px + .55rem); }
ul.tt-skills b { font-size: .86rem; font-weight: 600; }
ul.tt-skills small { font-size: .74rem; color: var(--tt-muted); }
.tt-hero__cta { gap: .8rem; }
.tt-hero__cta .wp-block-button__link { padding: .95rem 1.45rem; }
ul.tt-values { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
ul.tt-values li {
	min-width: 0; padding: 1rem 1rem 1.05rem; border-radius: 14px; border: 1px solid var(--tt-line); background: var(--tt-glass);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: .15rem; transition: border-color .2s, transform .2s;
}
ul.tt-values li:hover { border-color: color-mix(in srgb, var(--tt-pri) 60%, var(--tt-line)); transform: translateY(-3px); }
ul.tt-values i { display: block; font-style: normal; color: var(--tt-pri); margin-bottom: .55rem; font-size: 1.05rem; }
ul.tt-values b { display: block; font-size: .86rem; }
ul.tt-values small { display: block; }
ul.tt-values small { color: var(--tt-muted); font-size: .74rem; }
html[data-theme="light"] .tt-hero__photo img { opacity: .95; }
@media (max-width: 1100px) {
	.tt-hero__photo { width: 75%; opacity: .45; }
	.tt-hero__script { display: none; }
	ul.tt-skills, ul.tt-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.tt-hero { min-height: 0; padding-top: 0; }
	.tt-hero__photo { position: relative !important; width: calc(100% + 2 * clamp(16px, 4vw, 32px)); height: 420px; margin: 0 calc(-1 * clamp(16px, 4vw, 32px)) -120px !important; opacity: 1; }
	.tt-hero__photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 45%); }
	.tt-hero::before, .tt-hero::after { display: none; }
}

/* ---------- Các mục ---------- */
.tt-section { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); position: relative; }
.tt-section--alt { background: color-mix(in srgb, var(--tt-surface) 55%, transparent); border-top: 1px solid var(--tt-line); border-bottom: 1px solid var(--tt-line); }
.tt-section h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.04em; margin-top: 0; }
.tt-split { gap: clamp(1.5rem, 6vw, 5rem) !important; }
.tt-sechead { margin-bottom: 1.4rem !important; gap: 2rem !important; }
.tt-sechead .tt-muted { font-size: .92rem; margin: 0; }

/* Thẻ dự án */
.tt-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1rem; }
@media (max-width: 760px) { .tt-projects { grid-template-columns: 1fr; } }
.tt-project {
	position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--tt-ink);
	border: 1px solid var(--tt-line); background: var(--tt-surface); box-shadow: var(--tt-shadow); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tt-project::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tt-pri) 14%, transparent), transparent 60%); }
.tt-project:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tt-pri) 50%, var(--tt-line)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--tt-pri) 45%, transparent); }
.tt-project:hover::after { opacity: 1; }
.tt-project__art { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--tt-line); }
.tt-project__art > img { width: 100%; height: 100%; object-fit: cover; }
.tint-a { background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--wp--custom--tint--a) 60%, var(--tt-pri)) 0%, var(--wp--custom--tint--a) 55%); }
.tint-b { background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--wp--custom--tint--b) 65%, var(--tt-acc)) 0%, var(--wp--custom--tint--b) 55%); }
.tint-c { background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--wp--custom--tint--c) 70%, #3b82f6) 0%, var(--wp--custom--tint--c) 55%); }
.tint-d { background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--wp--custom--tint--d) 70%, #f59e0b) 0%, var(--wp--custom--tint--d) 55%); }
html[data-theme="light"] .tt-project__art { filter: saturate(1.05); }
.tt-project__body { position: relative; padding: 1.35rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.tt-project__meta { font-family: var(--tt-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-muted); }
.tt-project__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.tt-project__desc { color: var(--tt-muted); font-size: .9rem; line-height: 1.6; }
.tt-project__link { margin-top: auto; padding-top: .7rem; font-weight: 600; font-size: .86rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.tt-project__link i { font-style: normal; color: var(--tt-pri); transition: transform .2s; display: inline-block; }
.tt-project:hover .tt-project__link i { transform: translate(3px, -3px); }
.tt-project__link em { font-style: normal; font-family: var(--tt-mono); font-size: .7rem; color: var(--tt-muted); margin-left: auto; overflow-wrap: anywhere; }

/* Hình minh họa */
.art-card { width: 190px; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(10, 14, 26, .82); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transform: rotate(-4deg); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); transition: transform .4s; }
.tt-project:hover .art-card { transform: rotate(0deg) scale(1.04); }
.art-card small { display: block; font-family: var(--tt-mono); font-size: .58rem; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }
.art-card small em { font-style: normal; color: var(--tt-acc); margin-left: .3em; }
.art-card strong { display: block; font-size: 1.35rem; margin: .2rem 0 .8rem; }
.art-card > span { display: block; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .22); margin-top: 7px; }
.art-card > span.s { width: 55%; }
.art-card--flow { transform: rotate(3deg); width: 200px; }
.art-card--flow p { display: flex; align-items: center; gap: .6rem; margin: .45rem 0 0; padding-top: .4rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.art-card--flow b { font-size: .8rem; color: #fff; width: 12px; }
.art-card--flow p span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .6); max-width: 70%; }
.art-card--flow p span.s { max-width: 45%; }
.art-wave { display: flex; align-items: center; gap: 12px; }
.art-wave b { display: block; width: 26px; height: 9px; border-radius: 3px; background: color-mix(in srgb, var(--tt-pri) 75%, #fff); animation: tt-eq 1.4s ease-in-out infinite; }
.art-wave b:nth-child(2), .art-wave b:nth-child(4) { height: 16px; animation-delay: .2s; }
.art-wave span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: color-mix(in srgb, var(--tt-pri) 75%, #fff); border: 2px solid color-mix(in srgb, var(--tt-pri) 75%, #fff); }
@keyframes tt-eq { 50% { transform: scaleY(1.8); } }
.art-pill { padding: 1rem 1.6rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 10, 10, .35); color: #fff; font-family: var(--tt-mono); font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.art-pill em { font-style: normal; margin: 0 .9em; display: inline-block; animation: tt-swap 2s ease-in-out infinite; }
@keyframes tt-swap { 50% { transform: scaleX(-1); } }
.art-chart { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.art-chart b { width: 22px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--tt-pri) 85%, #fff), color-mix(in srgb, var(--tt-pri) 30%, transparent)); }
.art-code { font-family: var(--tt-mono); font-size: 2.6rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.art-radio { position: relative; width: 230px; height: 130px; display: grid; place-items: center; }
.art-radio__tower { position: absolute; bottom: 14px; left: 50%; width: 46px; height: 64px; transform: translateX(-50%);
	background: linear-gradient(var(--tt-pri), var(--tt-pri)) 8px 100% / 7px 100% no-repeat, linear-gradient(var(--tt-pri), var(--tt-pri)) 31px 100% / 7px 100% no-repeat; }
.art-radio__tower::before { content: ""; position: absolute; left: 50%; top: -12px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--tt-acc); box-shadow: 0 0 18px var(--tt-acc); }
.art-radio > i { position: absolute; left: 50%; top: 42px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--tt-acc); opacity: 0; animation: tt-ring 2.4s ease-out infinite; }
.art-radio > i:nth-of-type(2) { animation-delay: .8s; }
.art-radio > i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes tt-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.art-chip { position: absolute; top: 8px; right: 0; font-family: var(--tt-mono); font-size: .58rem; font-weight: 700; letter-spacing: .1em; color: #fff; background: color-mix(in srgb, var(--tt-acc) 85%, #000); padding: .25rem .55rem; border-radius: 6px; }
.art-eq { position: absolute; left: 0; bottom: 18px; display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.art-eq b { width: 4px; height: 30%; border-radius: 2px; background: rgba(255, 255, 255, .7); animation: tt-eq2 1s ease-in-out infinite; }
.art-eq b:nth-child(2n) { animation-delay: .25s; } .art-eq b:nth-child(3n) { animation-delay: .5s; }
@keyframes tt-eq2 { 50% { height: 100%; } }

/* Hành trình */
.tt-timeline { position: relative; padding-left: 2rem; }
.tt-timeline::before { content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(180deg, var(--tt-pri), color-mix(in srgb, var(--tt-line) 100%, transparent) 60%); }
.tt-tl { position: relative; padding: 1.1rem 1.3rem; margin-bottom: 1rem; border-radius: 16px; border: 1px solid var(--tt-line); background: var(--tt-glass); transition: border-color .2s, transform .2s; }
.tt-tl:hover { border-color: color-mix(in srgb, var(--tt-pri) 50%, var(--tt-line)); transform: translateX(4px); }
.tt-tl::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: 1.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--tt-bg); border: 2px solid var(--tt-pri); }
.tt-tl.is-now::before { background: var(--tt-pri); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tt-pri) 22%, transparent); }
.tt-tl__date { font-family: var(--tt-mono); font-size: .74rem; letter-spacing: .08em; color: var(--tt-pri); margin: 0 0 .2rem; }
.tt-tl.is-now .tt-tl__date::after { content: "ĐANG CÔNG TÁC"; margin-left: .7rem; font-size: .6rem; letter-spacing: .12em; color: var(--tt-acc); border: 1px solid color-mix(in srgb, var(--tt-acc) 60%, transparent); border-radius: 999px; padding: .1rem .45rem; }
.tt-tl h3 { font-size: 1.12rem; margin: 0 0 .15rem; letter-spacing: -.01em; }
.tt-tl__place { margin: 0 0 .25rem; font-weight: 500; color: color-mix(in srgb, var(--tt-ink) 85%, transparent); }
.tt-tl .tt-muted { margin: 0; font-size: .9rem; }

/* Liên hệ */
.tt-contacts { display: grid; gap: .7rem; margin-top: 1.6rem; }
.tt-contact { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: .85rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--tt-line); background: var(--tt-glass); color: var(--tt-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.tt-contact:hover { border-color: var(--tt-pri); transform: translateX(4px); }
.tt-contact span { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tt-pri) 15%, transparent); color: var(--tt-pri); font-size: 1.1rem; }
.tt-contact b { font-size: .95rem; }
.tt-contact em { font-style: normal; color: var(--tt-muted); font-size: .84rem; font-family: var(--tt-mono); overflow-wrap: anywhere; }
.tt-form { display: grid; gap: 1rem; }
.tt-field { display: grid; gap: .4rem; }
.tt-field span { font-size: .84rem; font-weight: 600; color: color-mix(in srgb, var(--tt-ink) 85%, transparent); }
.tt-form input, .tt-form textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--tt-ink); background: color-mix(in srgb, var(--tt-bg) 70%, transparent); border: 1px solid var(--tt-line); border-radius: 12px; padding: .8rem .95rem; }
.tt-form input:focus, .tt-form textarea:focus { outline: none; border-color: var(--tt-pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tt-pri) 22%, transparent); }
.tt-form button { justify-self: start; border: 0; cursor: pointer; padding: .85rem 1.5rem; border-radius: 12px; font: inherit; font-weight: 600; background: var(--tt-grad); color: var(--tt-on-pri); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--tt-pri) 70%, transparent); }
.tt-form button:hover { transform: translateY(-2px); }
.tt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tt-alert { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; margin: 0 0 1rem; border: 1px solid; }
.tt-alert--ok { color: #BBF7D0; background: #052E16; border-color: #166534; }
.tt-alert--err { color: #FECACA; background: #450A0A; border-color: #991B1B; }
html[data-theme="light"] .tt-alert--ok { color: #166534; background: #DCFCE7; border-color: #86EFAC; }
html[data-theme="light"] .tt-alert--err { color: #991B1B; background: #FEE2E2; border-color: #FCA5A5; }

/* ---------- Blog ---------- */
.tt-page { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.tt-page-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.04em; line-height: 1.06; }
.tt-postlist .wp-block-post-template, .tt-grid { gap: 1.1rem; }
.is-style-tt-card .wp-block-post-featured-image { margin: calc(-1 * clamp(1.1rem, 2.5vw, 1.6rem)) calc(-1 * clamp(1.1rem, 2.5vw, 1.6rem)) 1rem; }
.is-style-tt-card .wp-block-post-featured-image img { border-radius: var(--tt-r) var(--tt-r) 0 0; }
.is-style-tt-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tt-pri) 50%, var(--tt-line)); }
.is-style-tt-card .wp-block-post-title { font-size: 1.12rem; line-height: 1.35; margin: .35rem 0 .5rem; letter-spacing: -.015em; }
.is-style-tt-card .wp-block-post-title a { color: var(--tt-ink); text-decoration: none; }
.is-style-tt-card .wp-block-post-title a:hover { color: var(--tt-pri); }
.tt-date, .wp-block-post-date { font-family: var(--tt-mono); font-size: .74rem; color: var(--tt-muted); }
.wp-block-post-excerpt { color: var(--tt-muted); font-size: .92rem; }
.tt-single .wp-block-post-content { font-size: 1.07rem; line-height: 1.82; }
.tt-single .wp-block-post-content :where(h2, h3) { letter-spacing: -.025em; margin-top: 2.2em; }
.tt-single .wp-block-post-content pre { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 12px; padding: 1rem 1.2rem; overflow: auto; font-size: .9rem; font-family: var(--tt-mono); }
.tt-single .wp-block-post-content :not(pre) > code { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 6px; padding: .1em .35em; font-size: .9em; font-family: var(--tt-mono); }
.tt-single .wp-block-post-content blockquote { border-left: 3px solid var(--tt-pri); margin-left: 0; padding-left: 1.2rem; color: var(--tt-muted); }
.tt-single .wp-block-post-content img { border-radius: 14px; }
.tt-meta { color: var(--tt-muted); font-size: .9rem; gap: .8rem; }
.wp-block-post-terms a { font-family: var(--tt-mono); font-size: .76rem; color: var(--tt-pri); text-decoration: none; }
.tt-postnav { border-top: 1px solid var(--tt-line); padding-top: 1.4rem; margin-top: 2.5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { color: var(--tt-ink); padding: .35rem .75rem; border-radius: 10px; border: 1px solid var(--tt-line); text-decoration: none; }
.wp-block-query-pagination .current { background: var(--tt-pri); color: var(--tt-on-pri); border-color: var(--tt-pri); }
.wp-block-search__input { background: var(--tt-surface); color: var(--tt-ink); border: 1px solid var(--tt-line) !important; border-radius: 12px; padding: .65rem .85rem; }
.tt-404 { text-align: center; }

/* ---------- Chân trang ---------- */
.tt-footer { border-top: 1px solid var(--tt-line); background: color-mix(in srgb, var(--tt-surface) 60%, transparent); padding-top: 3.4rem; padding-bottom: 2rem; }
.tt-footer__cols { gap: 2rem !important; }
.tt-footer__tag { color: var(--tt-muted); max-width: 34ch; margin-top: 1rem; }
.tt-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.tt-footer__links a { color: color-mix(in srgb, var(--tt-ink) 85%, transparent); text-decoration: none; }
.tt-footer__links a:hover { color: var(--tt-pri); }
.tt-footer__copy { border-top: 1px solid var(--tt-line); margin-top: 2.4rem; padding-top: 1.2rem; font-family: var(--tt-mono); font-size: .74rem; color: var(--tt-muted); }

/* ---------- Hiệu ứng xuất hiện khi cuộn ---------- */
.tt-js .tt-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.tt-js .tt-reveal.is-in { opacity: 1; transform: none; }
@media print { .tt-js .tt-reveal { opacity: 1 !important; transform: none !important; } .tt-header { position: static; } body::before, body::after, .tt-hero::before, .tt-hero::after { display: none; } }

/* ================= 2.2: Mở đầu theo ảnh chân dung + các mục dựng từ Hồ sơ cá nhân ================= */
.tt-wrap { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: var(--wp--style--root--padding-left, clamp(16px, 4vw, 32px)); padding-right: var(--wp--style--root--padding-right, clamp(16px, 4vw, 32px)); box-sizing: content-box; }
.tt-split2 { display: grid; grid-template-columns: 42fr 58fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.tt-split2--38 { grid-template-columns: 38fr 62fr; }
.tt-split2 > * { min-width: 0; }
@media (max-width: 900px) { .tt-split2, .tt-split2--38 { grid-template-columns: 1fr; } }

.tt-hero--photo {
	/* Mở đầu luôn tối theo ảnh (kể cả chế độ sáng) để chữ luôn rõ trên ảnh */
	--tt-ink: #EEF2FF; --tt-muted: #AAB6DC; --tt-line: rgba(255, 255, 255, .13); --tt-glass: rgba(8, 16, 44, .55); --tt-photo-bg: #040A21;
	color: var(--tt-ink); background: var(--tt-photo-bg);
	min-height: min(calc(100vh - 64px), 920px); padding: clamp(3rem, 7vw, 5.5rem) var(--wp--style--root--padding-right, clamp(16px, 4vw, 32px)) clamp(3rem, 6vw, 4.5rem) var(--wp--style--root--padding-left, clamp(16px, 4vw, 32px));
	box-sizing: border-box;
}
.tt-hero--photo::before, .tt-hero--photo::after { display: none; }
.tt-hero--photo .tt-hero__bg { position: absolute; inset: 0; z-index: 0; margin: 0; }
.tt-hero--photo .tt-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 28%; display: block; }
.tt-hero--photo .tt-hero__bg::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, var(--tt-photo-bg) 0%, color-mix(in srgb, var(--tt-photo-bg) 88%, transparent) 30%, color-mix(in srgb, var(--tt-photo-bg) 20%, transparent) 55%, transparent 70%),
		linear-gradient(0deg, var(--wp--preset--color--base) 0%, transparent 18%);
}
.tt-hero--photo .tt-hero__in { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; }
.tt-hero--photo .tt-hero__content { max-width: 640px; margin: 0 !important; }
.tt-hero--photo .tt-hero__script { position: absolute; z-index: 2; right: 6%; top: 18%; }
.tt-hero--photo .tt-lead { color: color-mix(in srgb, var(--tt-ink) 86%, transparent); }
.tt-hero--photo .tt-grad { background: linear-gradient(100deg, #7C9BFF 0%, #B79BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-hero--photo .tt-badge { background: rgba(10, 20, 55, .6); }
.tt-hero--photo .wp-block-buttons { display: flex; flex-wrap: wrap; }
.tt-hero--photo .is-style-outline .wp-block-button__link { color: #EEF2FF; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 1100px) {
	.tt-hero--photo .tt-hero__bg img { object-position: 74% 25%; }
	.tt-hero--photo .tt-hero__bg::after { background: linear-gradient(90deg, var(--tt-photo-bg) 0%, color-mix(in srgb, var(--tt-photo-bg) 80%, transparent) 45%, transparent 80%), linear-gradient(0deg, var(--wp--preset--color--base) 0%, transparent 18%); }
}
@media (max-width: 720px) {
	/* Điện thoại: ảnh ở trên (lấy phần người), chữ ở dưới */
	.tt-hero--photo { min-height: 0; padding-top: min(78vw, 420px); }
	.tt-hero--photo .tt-hero__bg { bottom: auto; height: min(98vw, 520px); }
	.tt-hero--photo .tt-hero__bg img { object-position: 78% 20%; }
	.tt-hero--photo .tt-hero__bg::after { background: linear-gradient(0deg, var(--tt-photo-bg) 0%, color-mix(in srgb, var(--tt-photo-bg) 60%, transparent) 22%, transparent 55%); }
	.tt-hero--photo .tt-hero__title { font-size: clamp(2.8rem, 13vw, 4rem); }
}
/* Logo đại bàng trên nền tối: nền sáng nhỏ để giữ đúng màu xanh lá – đỏ của logo */
html:not([data-theme="light"]) .tt-logo__mark { background: #fff; border-radius: 10px; padding: 3px 5px; box-sizing: content-box; }
html:not([data-theme="light"]) .tt-logo { --tt-logo-g: #166534; --tt-logo-r: #C62828; }
html:not([data-theme="light"]) .tt-logo__txt b { color: #EEF2FF; }
html:not([data-theme="light"]) .tt-logo__txt small { color: #FF8A80; }
.tt-hero--photo .tt-hero__title, .tt-hero--photo b, .tt-hero--photo .tt-badge { color: #EEF2FF; }
.wp-site-blocks > main.tt-main, main.tt-main { margin-block-start: 0 !important; }
@media (max-width: 720px) { .tt-hero--photo .tt-hero__role { letter-spacing: .03em; } .tt-hero--photo .tt-hero__role i { margin: 0 .35em; } }
