/**
 * Homepage (V4 board "Home"), front page and editor only (inc/home.php).
 * Colours read the Kadence palette (docs/v4/kadence-mapping.md), except the fixed V4 dark panels (#141414 family)
 * and the brand orange, which V4 keeps the same in light and dark (docs/v4/color-system.md). Everything a Kadence
 * block can set (spacing, borders, radii, type sizes, colours of text blocks) is set in the blocks, not here.
 * Each section says why it is CSS. Values come from design-reference/v4/project/tv.css (line numbers given).
 */

.home {
	--tvh-raised: var(--global-palette9);
	--tvh-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--tvh-shadow-lg: 0 2px 4px rgba(20, 20, 20, .04), 0 24px 60px -16px rgba(20, 20, 20, .22);
}
body.color-switch-dark.home {
	--tvh-raised: color-mix(in srgb, var(--global-palette9) 92%, #fff);
	--tvh-shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -20px rgba(0, 0, 0, .75);
}

/* H1. Hero background (tv.css 909 .blueprint, 1432-1434 .h5-glow). The Row Layout carries tv-bg-blueprint, which
   draws V4's 40 px line grid fading from the top (v4-details.css T15, ::before). V4's hero adds two glows instead of
   the corner glow: g1 at the top centre (the row's ::after, restyled here) and g2 at the bottom centre (on the inner
   container, so it does not replace the grid). Why CSS: a Row Layout has one background and one overlay. */
.tv-h5.tv-bg-blueprint::after { width: 640px; height: 460px; left: 50%; right: auto; top: -220px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(240, 90, 53, .22), transparent); filter: blur(10px); }
.tv-h5 > .kt-row-column-wrap { position: relative; z-index: 1; }
.tv-h5 > .kt-row-column-wrap::before { content: ""; position: absolute; width: 900px; height: 520px; left: 50%; bottom: -330px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 90, 53, .14), transparent); filter: blur(10px); z-index: -1; pointer-events: none; }

/* H2. Pill dot (tv.css 1481). Why CSS: a decorative dot with a halo before the text; no Kadence element draws it. */
.tv-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--global-palette1); box-shadow: 0 0 0 4px rgba(240, 90, 53, .18); vertical-align: 1px; }

/* H2b. V4 hides the pill's "Meet the team" label on phones (tv.css 1531); the pill itself stays the link. */
@media (max-width: 560px) { .tv-dot + .tv-tag { display: none; } }

/* H3. Rotating word (tv.css 1485-1488, 1530). Why CSS: a vertical word carousel inside a heading; Kadence's typed
   text format types letters instead. home.js builds the markup; the keyframes cover four words plus the repeat. */
.tv-rot-h .rot { display: inline-block; height: 1.05em; overflow: hidden; vertical-align: bottom; position: relative; text-align: left; }
.tv-rot-h .rot-in { display: flex; flex-direction: column; animation: tvh-rotw 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.tv-rot-h .rot-in span { display: block; height: 1.05em; line-height: 1.05em; color: var(--global-palette1); white-space: nowrap; }
@keyframes tvh-rotw {
	0%, 20% { transform: translateY(0); }
	25%, 45% { transform: translateY(-1.05em); }
	50%, 70% { transform: translateY(-2.1em); }
	75%, 95% { transform: translateY(-3.15em); }
	100% { transform: translateY(-4.2em); }
}
@media (max-width: 560px) { .tv-rot-h .tv-rot-br { display: none; } }

/* H4. Build, Automate, Scale strip square markers (tv.css 1494). Why CSS: a 8px rounded square before each label. */
.tv-sq::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--global-palette1); margin-right: 8px; vertical-align: 1px; }

/* H5. Hero stage (tv.css 1496-1528) and automation diagram (1197-1239): markup from the tutsvela/hero-stage block. */
.tv-stage { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(14px, 2vw, 28px); align-items: center; perspective: 1400px; text-align: left; font-size: 17px; line-height: 1.6; }
.tv-stage *, .why2-vis * { box-sizing: border-box; }
.tv-stage p, .why2-vis p { margin: 0; }
.tv-stage .sc-mid { position: relative; z-index: 2; }
.tv-stage .sc-card { position: relative; display: grid; gap: 12px; }
.tv-stage .sc-left { transform: rotateY(14deg) translateX(10px); transform-origin: right center; }
.tv-stage .sc-right { transform: rotateY(-14deg) translateX(-10px); transform-origin: left center; }
.sc-chip { justify-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--global-palette5); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--global-palette7); background: var(--tvh-raised); }
.sc-chip b { color: var(--global-palette1); }
.sw, .stl { border-radius: 16px; border: 1px solid var(--global-palette7); background: var(--tvh-raised); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .25); overflow: hidden; }
.sw-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--global-palette7); background: var(--global-palette8); }
.sw-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--global-palette6); }
.sw-bar i:first-child { background: var(--global-palette1); }
.sw-bar span { margin-left: 8px; font-size: 11.5px; color: var(--global-palette5); font-family: var(--tvh-mono); background: var(--tvh-raised); padding: 2px 10px; border-radius: 6px; flex: 1; }
.sw-body { padding: 12px; display: grid; gap: 14px; }
.sw-nav { display: flex; gap: 8px; align-items: center; }
.sw-nav span { height: 6px; width: 26px; border-radius: 3px; background: var(--global-palette6); }
.sw-nav .lg { width: 34px; height: 10px; background: var(--global-palette3); }
.sw-nav .cta { margin-left: auto; width: 40px; height: 14px; border-radius: 7px; background: var(--global-palette1); }
.sw-hero { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(240, 90, 53, .14), transparent 70%); }
.sw-hero span { height: 10px; border-radius: 5px; background: var(--global-palette3); }
.sw-hero .l1 { width: 85%; } .sw-hero .l2 { width: 60%; }
.sw-hero .l3 { height: 6px; width: 75%; background: var(--global-palette6); }
.sw-hero .btn { width: 64px; height: 18px; border-radius: 9px; background: var(--global-palette1); margin-top: 4px; }
.sw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-tiles span { aspect-ratio: 1 / .8; border-radius: 10px; background: var(--global-palette8); border: 1px solid var(--global-palette7); }
.sw-tiles span:nth-child(2) { background: linear-gradient(135deg, #C9D6F2, #5B8DEF); border: 0; }
.stl { padding: 14px; display: grid; gap: 12px; }
.stl-h { display: flex; justify-content: space-between; align-items: center; }
.stl-h b { font-size: 14px; color: var(--global-palette3); }
.stl-h span { font-family: var(--tvh-mono); font-size: 11px; color: var(--global-palette5); }
.stl-f { display: grid; gap: 5px; }
.stl-f > span { font-size: 11.5px; color: var(--global-palette5); font-weight: 600; }
.stl-sel { font-size: 12.5px; font-weight: 600; color: var(--global-palette3); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--global-palette7); background: var(--global-palette8); }
.stl-rng { position: relative; height: 6px; border-radius: 3px; background: var(--global-palette7); }
.stl-rng i { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; border-radius: 3px; background: var(--global-palette1); }
.stl-rng b { position: absolute; top: 50%; left: 60%; width: 16px; height: 16px; border-radius: 50%; background: #FFF; border: 3px solid var(--global-palette1); transform: translate(-50%, -50%); }
.stl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.stl-tags em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--global-palette8); border: 1px solid var(--global-palette7); color: var(--global-palette3); }
.stl-out { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #141414; color: #C4C7C7; font-size: 12px; }
.stl-pulse { font-size: 12px; color: #1A1A1A; background: #F05A35; padding: 6px 10px; border-radius: 8px; }
/* Automation diagram: fixed V4 dark surface in both colour modes. */
.ax { position: relative; border-radius: 28px; background: #141414; color: #F1F2F2; border: 1px solid #2A2A2A; box-shadow: 0 30px 80px -30px rgba(240, 90, 53, .45), 0 2px 6px rgba(0, 0, 0, .2); padding: 18px 18px 16px; overflow: hidden; isolation: isolate; }
.ax::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 40%, transparent 80%); mask-image: radial-gradient(ellipse at 50% 45%, #000 40%, transparent 80%); }
.ax::after { content: ""; position: absolute; width: 360px; height: 360px; left: 50%; top: 44%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(240, 90, 53, .28), transparent 65%); z-index: -1; }
.ax-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ax-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tvh-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7EE2A8; }
.ax-live i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }
.ax-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #202020; border: 1px solid #2E2E2E; }
.ax-tabs button { border: 0; background: transparent; color: #B5B9B9; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; min-height: 34px; line-height: 1.2; }
.ax-tabs button:hover { color: #FFFFFF; background: transparent; }
.ax-tabs button[aria-selected="true"] { background: #F05A35; color: #1A1A1A; }
.ax-tabs button:focus-visible { outline: 2px solid #F47454; outline-offset: 2px; }
.ax-stage { position: relative; }
.ax-svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.ax-wire { fill: none; stroke: #3A3A3A; stroke-width: 2; stroke-dasharray: 6 7; }
.ax-node rect { fill: #1E1E1E; stroke: #353535; stroke-width: 1.5; }
.ax-ic { stroke: none; }
.ax-ic.s1, .ax-ic.t1 { fill: #F05A35; } .ax-ic.s2, .ax-ic.t2 { fill: #5B8DEF; } .ax-ic.s3, .ax-ic.t3 { fill: #3DDC84; }
.ax-hub > rect:first-child { fill: #232323; stroke: #F05A35; stroke-width: 2; }
.ax-bay { fill: #171717; stroke: #333; }
.ax-slot { fill: #2E2E2E; }
.ax-led { fill: #3DDC84; } .ax-led.l2 { fill: #F05A35; } .ax-led.l3 { fill: #5B8DEF; }
.ax-cap { fill: #8E9393; font-family: var(--tvh-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.ax-pk { filter: drop-shadow(0 0 6px currentColor); }
.ax-pk.p0 { fill: #F05A35; color: #F05A35; } .ax-pk.p1 { fill: #8DB8FF; color: #8DB8FF; } .ax-pk.p2 { fill: #7EE2A8; color: #7EE2A8; }
.ax-l { position: absolute; transform: translateY(-50%); font-size: clamp(11px, 1.05vw, 15px); font-weight: 600; color: #F1F2F2; white-space: nowrap; max-width: 19%; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.ax-l[data-k^="src"] { left: 9.6%; } .ax-l[data-k^="tgt"] { left: 80%; }
.ax-l[data-k$="0"] { top: 20.56%; } .ax-l[data-k$="1"] { top: 49.44%; } .ax-l[data-k$="2"] { top: 78.33%; }
.ax-hl { position: absolute; left: 50%; top: 71%; transform: translate(-50%, -50%); font-family: var(--tvh-mono); font-size: clamp(10px, .95vw, 13px); font-weight: 600; letter-spacing: .04em; color: #FF9A80; white-space: nowrap; }
.ax-foot { display: grid; gap: 10px; margin-top: 4px; }
.ax-log { height: 76px; overflow: hidden; border-radius: 14px; background: #1B1B1B; border: 1px solid #2C2C2C; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.ax-log p { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.ax-log p b { color: #FFFFFF; font-weight: 600; }
.ax-log p span:last-child { color: #B5B9B9; overflow: hidden; text-overflow: ellipsis; }
.ax-log .tok { color: #3DDC84; font-weight: 700; }
.ax-note { font-size: 12.5px; color: #9EA3A3; line-height: 1.5; }
.tv-stage.is-swap .ax-l, .tv-stage.is-swap .ax-hl { animation: tvh-fade .4s ease both; }
@keyframes tvh-fade { from { opacity: 0; } }
@media (max-width: 1100px) { .tv-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); } }
@media (max-width: 980px) { .ax-l { font-size: clamp(10px, 2.4vw, 15px); } .ax-hl { font-size: clamp(9px, 2.2vw, 13px); } }
@media (max-width: 900px) { .tv-stage { grid-template-columns: minmax(0, 1fr); } .tv-stage .sc-card { display: none; } .tv-stage .sc-mid { max-width: 640px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) { .ax { padding: 14px 12px 12px; border-radius: 22px; } .ax-tabs button { padding: 6px 9px; font-size: 12px; } .ax-log p { font-size: 12.5px; } }

/* H6. Marquee (tv.css 629-635, 749-775, 1293-1297). Why CSS and JS: Creative Kit's Marquee (Adv) ignores reduced
   motion (kadence-first creative-kit.md); this loop stops and wraps for reduced motion. home.js adds the copy. */
.tv-mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tv-mq.is-mq > .kt-inside-inner-col { flex-wrap: nowrap !important; width: max-content; animation: tvh-mq 46s linear infinite; }
.tv-mq.is-mq:hover > .kt-inside-inner-col { animation-play-state: paused; }
.tv-mq > .kt-inside-inner-col > * { flex: none !important; opacity: .8; transition: opacity .2s; }
.tv-mq > .kt-inside-inner-col > *:hover { opacity: 1; }
@keyframes tvh-mq { to { transform: translateX(calc(-50% - 4px)); } }
@media (prefers-reduced-motion: reduce) { .tv-mq { -webkit-mask-image: none; mask-image: none; } }

/* H7. Selected work bento (tv.css 1254-1300, 1415-1416). Why CSS: grid areas (one tall card beside the others);
   Query Loop (Adv) grids have equal columns only. Up to four projects, as V4. */
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "xl a b" "xl w w"; gap: 20px; }
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap > :nth-child(1) { grid-area: xl; }
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap > :nth-child(2) { grid-area: a; }
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap > :nth-child(3) { grid-area: b; }
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap > :nth-child(4) { grid-area: w; }
/* Two projects: equal halves, equal height (owner, 21 Nov 2026). */
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "xl a"; align-items: stretch; }
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap:has(> :nth-child(3)):not(:has(> :nth-child(4))) { grid-template-areas: "xl a b" "xl a b"; }
body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap > * { min-width: 0; }
body.home .tv-bento .kb-query-item > .wp-block-kadence-column { height: 100%; }
@media (max-width: 980px) {
	body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "xl xl" "a b" "w w"; }
	body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap:not(:has(> :nth-child(3))) { grid-template-columns: 1fr 1fr; grid-template-areas: "xl a"; }
}
@media (max-width: 620px) {
	body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap, body.home .tv-bento .wp-block-kadence-query-card > .kb-query-grid-wrap:not(:has(> :nth-child(3))) { grid-template-columns: 1fr; grid-template-areas: "xl" "a" "b" "w"; }
}

/* H8. Problem finder on Kadence Tabs (tv.css 1297-1334). Why CSS and JS: the number column, the 5-second progress
   bar under the active problem, the panel glow and the entrance of the answer have no Tabs setting. Tab colours,
   borders, radii, spacing and the dark panel background are Tabs settings. */
.tv-pf .kt-tabs-title-list li a { position: relative; overflow: hidden; transition: border-color .2s, background .2s, transform .2s; }
.tv-pf .kt-tabs-title-list li a:hover { transform: translateX(4px); }
.tv-pf .kt-title-text { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; }
.tv-pf .pf-n { font-family: var(--tvh-mono); font-size: 13px; font-weight: 400; color: var(--global-palette5); }
.tv-pf .kt-tab-title-active .pf-n { color: var(--global-palette1); }
.tv-pf .pf-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--global-palette1); }
.tv-pf.is-auto:not(.is-held):not(.is-paused):not(:hover):not(:focus-within) .kt-tab-title-active .pf-bar { animation: tvh-pfbar 5s linear forwards; }
@media (max-width: 767px) { .tv-pf .pf-bar { display: none; } }
@keyframes tvh-pfbar { to { width: 100%; } }
.tv-pf .kt-tabs-content-wrap > .wp-block-kadence-tab { position: relative; overflow: hidden; isolation: isolate; }
.tv-pf .kt-tabs-content-wrap > .wp-block-kadence-tab::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 90, 53, .35), transparent 65%); z-index: -1; pointer-events: none; }
.tv-pf .kt-tab-inner-content-inner > * { animation: tvh-pfin .55s cubic-bezier(.2, .7, .2, 1) both; }
.tv-pf .kt-tab-inner-content-inner > :nth-child(4) { animation-delay: .08s; }
.tv-pf .kt-tab-inner-content-inner > :nth-child(5) { animation-delay: .16s; }
@keyframes tvh-pfin { from { opacity: 0; transform: translateY(10px); } }

/* H8b. Problem finder details (tv.css 1298-1300, 1351, 1363). Why CSS: the 24 px gap between the list and the answer
   (Tabs "gutter" applies to horizontal tabs only), a fixed 52 px label column so both bars start together, and the
   V4 focus outline on the tab titles (Kadence leaves the browser default). */
.tv-pf .kt-tabs-wrap.kt-tabs-layout-vtabs { column-gap: 24px; }
.tv-pf-ba > .kt-inside-inner-col > p { flex: 0 0 52px; }
.tv-pf .kt-tabs-title-list li a:focus-visible { outline: 3px solid var(--global-palette3); outline-offset: 2px; }
body.color-switch-dark .tv-pf .kt-tabs-title-list li a:focus-visible { outline-color: var(--global-palette2); }

/* H9. Five-stage timeline track (tv.css 1335-1354). Why CSS: the connecting line behind the numbered dots with a
   moving light; the dots, cards, icons and offsets are Kadence settings. */
.tv-f5 { position: relative; }
.tv-f5::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--global-palette6); }
.tv-f5::after { content: ""; position: absolute; top: 27px; left: 10%; width: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--global-palette1), transparent); animation: tvh-f5run 4s linear infinite; }
@keyframes tvh-f5run { from { left: 6%; } to { left: 78%; } }
.tv-f5 .tv-f5-dot { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--global-palette8); transition: background .2s, color .2s; }
.tv-f5 > .kt-inside-inner-col > *:hover .tv-f5-dot { background: var(--global-palette1); color: #1A1A1A; }
@media (max-width: 1024px) {
	.tv-f5::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.tv-f5::after { left: 27px; top: 0; width: 2px; height: 16%; background: linear-gradient(180deg, transparent, var(--global-palette1), transparent); animation-name: tvh-f5runv; }
	@keyframes tvh-f5runv { from { top: 0; } to { top: 84%; } }
}

/* H10. Why band (tv.css 681-688 .band-dark, 1355-1357 .why2 and .why-mk). The band colour is the block's own
   setting (#141414). Why CSS: V4 darkens the band to #0C0C0C with a #262626 border in dark mode (a fixed colour, not
   a palette slot), and draws the large logo mark at 5 % white in the lower right. The band has no glow in V4. */
body.color-switch-dark .tv-why2 > .kt-inside-inner-col { background: #0C0C0C !important; border-color: #262626 !important; }
.tv-why2 > .kt-inside-inner-col { position: relative; overflow: hidden; isolation: isolate; color: #E9EAEA; }
.tv-why2 > .kt-inside-inner-col::after { content: ""; position: absolute; top: auto; right: -60px; bottom: -80px; width: 520px; height: auto; aspect-ratio: 246 / 193; opacity: .05; z-index: -1; pointer-events: none; border-radius: 0; filter: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 246 193'%3E%3Cpath fill='%23fff' d='M88.7 45C98.2 47.5 106.4 53.8 111.4 62.4L134.3 102.1L82.3 102.1L49.4 45L0 45L0 0L139.6 0L139.6 45Z'/%3E%3Cpath fill='%23fff' d='M245.2 0L134.3 192.1L108.3 147.1L134.3 102.1L193.2 0Z'/%3E%3C/svg%3E"); }
@media (max-width: 767px) { .tv-why2 > .kt-inside-inner-col::after { width: 320px; right: -80px; bottom: -60px; } }
/* Terminal and role cards (tv.css 1366-1387), markup from the tutsvela/why-visual block. */
.why2-vis { position: relative; min-height: 500px; }
.term { position: relative; z-index: 2; border-radius: 18px; background: #0E0E0E; border: 1px solid #2E2E2E; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); overflow: hidden; width: 88%; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #222; font-family: var(--tvh-mono); font-size: 12px; color: #7D8282; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A3A; }
.term-bar i:first-child { background: #F05A35; }
.term-bar span { margin-left: 8px; }
.term-body { padding: 16px 18px 20px; font-family: var(--tvh-mono); font-size: 13.5px; line-height: 1.9; color: #D9DCDC; }
.term-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .tpr { color: #F05A35; } .term .tok { color: #3DDC84; } .term .tar { color: #8DB8FF; }
.term .cur { display: inline-block; width: 8px; height: 16px; background: #F1F2F2; vertical-align: -3px; }
.rc-stack { position: absolute; right: 0; bottom: -6px; width: 58%; height: 190px; z-index: 3; }
.rcard { position: absolute; right: 0; width: 100%; padding: 16px 18px; border-radius: 16px; background: #F1F2F2; color: #1A1A1A; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); display: grid; gap: 2px; line-height: 1.4; }
.rcard .k { font-family: var(--tvh-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #B93C1A; }
.rcard b { font-size: 16px; }
.rcard.r1 { bottom: 120px; transform: rotate(-4deg) translateX(-30px); }
.rcard.r2 { bottom: 60px; transform: rotate(2deg); background: #F05A35; }
.rcard.r2 .k { color: #3A1A10; }
.rcard.r3 { bottom: 0; transform: rotate(-1deg) translateX(-12px); background: #FFFFFF; }
@media (max-width: 900px) { .why2-vis { min-height: 380px; } }
@media (max-width: 560px) { .why2-vis { min-height: 470px; } .term { width: 100%; } .term-body { font-size: 12px; } .rc-stack { width: 84%; } }

/* H11. Learn tabs container (tv.css 1464-1468). Why CSS: one pill-shaped frame around all tab titles; Tabs styles
   each title, not the list. */
.tv-lt .kt-tabs-title-list { display: inline-flex !important; gap: 4px; padding: 5px; border-radius: 999px; background: var(--tvh-raised); border: 1px solid var(--global-palette7); max-width: 100%; overflow-x: auto; }
.tv-lt .kt-tabs-title-list li { margin: 0 !important; }

/* H12 moved to v4-details.css T27 (21 Nov 2026): the closing band is shared with the service pages. */

/* H14. Problem panel divider ("What we build" between two fading lines, tv.css 1301). Why CSS: lines on both sides of
   a label; Advanced Text has one border per side. */
.tv-pf-arrow { display: flex; align-items: center; gap: 12px; }
.tv-pf-arrow::before, .tv-pf-arrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #F05A35, transparent); }

/* H15. Service card highlight pills (tv.css 980-990 .svc ul). Why CSS: the Repeater lays its rows out in a fixed grid;
   V4 wraps pills of different widths in one line. */
.tv-svc-tags .wp-block-kadence-repeatertemplate { display: flex !important; flex-wrap: wrap; gap: 8px; }
.tv-svc-tags .wp-block-kadence-repeatertemplate > * { width: auto !important; }

/* H16. Fixed-size round markers (timeline dots 56px, Why letters 40px; CTA numbers 30px are in v4-details.css T27; tv.css 1345, 1360, 1052).
   Why CSS: Advanced Text has a maximum width but no fixed width or height, and the shared tv-tag class sizes to the
   text; these are circles of a set size with the label centred. */
.tv-f5 .tv-f5-dot { width: 56px; height: 56px; flex: none; display: grid; place-items: center; padding: 0; }
.tv-why2 .tv-tag { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }

/* H17. Learn card category in the mono meta line (tv.css 1403 .bcard-m). Why CSS: the Dynamic List block has no
   font-family setting for its items. */
.tv-meta-mono, .tv-meta-mono a, .tv-meta-mono li { font-family: var(--tvh-mono); font-size: 12px; color: var(--global-palette5); }

/* H18. Homepage illustration settings (TutsVela > Settings > Homepage illustration): "Animation" off stops every
   moving part of the illustration; "Show on phones" off hides it below 768 px. */
.tv-stage-still *, .tv-stage-still *::before, .tv-stage-still *::after { animation: none !important; }
.tv-stage-still .ax-pk { display: none; }
@media (max-width: 767px) { .tv-stage-nomobile { display: none; } }

/* H13. Motion (tv.css 749-775, 1201-1230, 1340, 1378-1385, 1444-1480). Only when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
	.tv-h5-in > * { animation: tvh-up .8s cubic-bezier(.2, .7, .2, 1) both; }
	.tv-h5-in > :nth-child(2) { animation-delay: .08s; } .tv-h5-in > :nth-child(3) { animation-delay: .16s; }
	.tv-h5-in > :nth-child(4) { animation-delay: .24s; } .tv-h5-in > :nth-child(5) { animation-delay: .32s; }
	@keyframes tvh-up { from { opacity: 0; transform: translateY(18px); } }
	.tv-stage .sc-mid { animation: tvh-pop .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
	@keyframes tvh-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
	.tv-stage .sc-card { animation: tvh-float 7s ease-in-out infinite; }
	.tv-stage .sc-right { animation-delay: 1.5s; }
	@keyframes tvh-float { 50% { translate: 0 -8px; } }
	.ax::after { animation: tvh-axglow 4s ease-in-out infinite; }
	@keyframes tvh-axglow { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.9); } }
	.ax-live i { animation: tvh-ping 1.6s ease-out infinite; }
	@keyframes tvh-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
	.ax-wire { animation: tvh-dash 1.2s linear infinite; }
	@keyframes tvh-dash { to { stroke-dashoffset: -26; } }
	.ax-led { animation: tvh-led 1.1s steps(2) infinite; } .ax-led.l2 { animation-delay: .35s; } .ax-led.l3 { animation-delay: .7s; }
	@keyframes tvh-led { 50% { opacity: .25; } }
	.ax-log-track { animation: tvh-log 12s linear infinite; }
	@keyframes tvh-log { to { transform: translateY(-50%); } }
	.stl-rng i { animation: tvh-rng 4s ease-in-out infinite; } .stl-rng b { animation: tvh-rngk 4s ease-in-out infinite; }
	@keyframes tvh-rng { 50% { width: 82%; } } @keyframes tvh-rngk { 50% { left: 82%; } }
	.stl-pulse { animation: tvh-spl 2.4s ease-in-out infinite; }
	@keyframes tvh-spl { 50% { box-shadow: 0 0 0 6px rgba(240, 90, 53, .25); } }
	.tv-pf .kt-tabs-content-wrap > .wp-block-kadence-tab::before { animation: tvh-axglow2 5s ease-in-out infinite; }
	@keyframes tvh-axglow2 { 50% { opacity: .55; transform: scale(.9); } }
	.term .cur { animation: tvh-led 1s steps(2) infinite; }
	.tml { opacity: 0; animation: tvh-tline 10s infinite; }
	.tm2 { animation-delay: .9s; } .tm3 { animation-delay: 1.8s; } .tm4 { animation-delay: 2.7s; } .tm5 { animation-delay: 3.6s; } .tm6 { animation-delay: 4.5s; }
	@keyframes tvh-tline { 0% { opacity: 0; transform: translateX(-6px); } 4%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
	.rcard.r1, .rcard.r2, .rcard.r3 { animation: tvh-rfloat 6s ease-in-out infinite; }
	.rcard.r2 { animation-delay: 1s; } .rcard.r3 { animation-delay: 2s; }
	@keyframes tvh-rfloat { 50% { translate: 0 -6px; } }
}
@media (prefers-reduced-motion: reduce) {
	.tv-rot-h .rot-in, .tv-f5::after { animation: none; }
	.ax-pk { display: none; }
}

/* H12. Facts strip with count-up numbers (owner, 21 Nov 2026: five facts, equal height, divider lines full height).
   Why CSS: a Kadence Section lays children out in one flex row with no equal-height wrapping grid, and each cell's
   divider was its own border, so lines stopped at different heights and five cells were cramped on tablets. The
   dividers are now the Section's palette7 background showing through 1 px grid gaps; cell backgrounds, padding,
   radius and outer border stay Kadence settings. Desktop 5 columns, tablet 3 + 2, phone 2 with the last cell full width. */
body.home .tv-facts.wp-block-kadence-column { overflow: hidden; }
body.home .tv-facts.wp-block-kadence-column > .kt-inside-inner-col { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; }
body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column { min-width: 0; }
body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column > .kt-inside-inner-col { height: 100%; }
@media (max-width: 1024px) {
	body.home .tv-facts.wp-block-kadence-column > .kt-inside-inner-col { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column { grid-column: span 2; }
	body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 767px) {
	body.home .tv-facts.wp-block-kadence-column > .kt-inside-inner-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column,
	body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column:nth-child(n+4) { grid-column: auto; }
	body.home .tv-facts > .kt-inside-inner-col > .wp-block-kadence-column:last-child { grid-column: 1 / -1; }
}
