/* ==========================================================================
   Thirvusoft FX layer — the "next level" effects on top of thirvu-3d.css
   Aurora backgrounds, live dashboard mockup, stacking cards, pinned
   horizontal scroll, kinetic marquee, gradient beams, cursor, intro curtain,
   page transitions. All motion is disabled under prefers-reduced-motion.
   ========================================================================== */

@property --tv-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- Cross-page transitions (Chrome/Edge 126+, ignored elsewhere) ---------- */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: tv-vt-out .28s ease both; }
::view-transition-new(root) { animation: tv-vt-in .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tv-vt-out { to { opacity: 0; transform: translateY(-12px) scale(.99); filter: blur(4px); } }
@keyframes tv-vt-in { from { opacity: 0; transform: translateY(18px) scale(1.01); filter: blur(6px); } }

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Film grain ---------- */
.tv-grain {
	position: fixed; inset: -8%; z-index: 2400; pointer-events: none; opacity: .045; /* was -50% (a layer 4x the screen); the drift below is scaled up so it moves exactly as far */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: tv-grain 1.2s steps(6) infinite;
}
@keyframes tv-grain {
	0% { transform: translate(0, 0); } 20% { transform: translate(-5.2%, 3.4%); } 40% { transform: translate(3.4%, -5.2%); }
	60% { transform: translate(-3.4%, 5.2%); } 80% { transform: translate(5.2%, 1.7%); } 100% { transform: translate(0, 0); }
}

/* ---------- Intro curtain (first visit of a session) ---------- */
.tv-curtain { display: none; }
.tv-intro .tv-curtain {
	position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center;
	background: radial-gradient(800px 500px at 70% 30%, rgba(229, 115, 45,.35), transparent 60%), var(--tv-grad-deep);
	color: #fff; font-family: var(--tv-font);
	clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.76,0,.24,1);
}
.tv-intro .tv-curtain.is-done { clip-path: inset(0 0 100% 0); }
.tv-curtain__inner { text-align: center; }
.tv-curtain__logo { width: 76px; height: 76px; border-radius: 22px; background: #fff; padding: 8px; margin: 0 auto 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: tv-curtain-logo 1.2s cubic-bezier(.2,.8,.2,1) both; }
.tv-curtain__word { display: block; font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; overflow: hidden; }
.tv-curtain__word span { display: inline-block; animation: tv-rise .9s cubic-bezier(.2,.8,.2,1) .15s both; }
.tv-curtain__sub { display: block; margin-top: 12px; font-family: var(--tv-mono); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; opacity: .75; animation: tv-fade .8s ease .5s both; }
.tv-curtain__bar { width: 180px; height: 2px; margin: 26px auto 0; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.tv-curtain__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; animation: tv-load 1.1s cubic-bezier(.6,0,.2,1) both; }
@keyframes tv-curtain-logo { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
@keyframes tv-rise { from { transform: translateY(110%); } }
@keyframes tv-fade { from { opacity: 0; } }
@keyframes tv-load { from { transform: scaleX(0); } }

/* ---------- Cursor follower: thin ring + comet trail; the native pointer stays visible ---------- */
.tv-cursor { position: fixed; left: 0; top: 0; z-index: 4500; pointer-events: none; width: 22px; height: 22px; border-radius: 50%;
	border: 1.5px solid rgba(223, 102, 28,.55); display: grid; place-items: center; opacity: 0; will-change: transform, width, height;
	transition: opacity .25s, border-color .25s, border-width .25s, background-color .25s, box-shadow .25s; }
.tv-cursor-on .tv-cursor { opacity: 1; }
.tv-cursor.is-link { border-color: var(--tv-500); border-width: 2px; box-shadow: 0 0 18px rgba(231, 126, 61,.28); }
.tv-cursor.is-down { border-color: var(--tv-cyan); }
.tv-cursor.is-label { background: var(--tv-grad); border-color: transparent; box-shadow: var(--tv-glow); }
.tv-cursor.is-off { opacity: 0; }
.tv-cursor__label { font-family: var(--tv-font); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.tv-cursor.is-label .tv-cursor__label { opacity: 1; }
.tv-cursor.is-dark { border-color: rgba(255,255,255,.75); }
.tv-cursor.is-dark.is-link { box-shadow: 0 0 18px rgba(255,255,255,.35); }
.tv-cursor-trail { position: fixed; left: 0; top: 0; z-index: 4499; pointer-events: none; border-radius: 50%; background: var(--tv-500); box-shadow: 0 0 8px rgba(231, 126, 61,.65); opacity: 0; will-change: transform, opacity; }

/* ---------- Split-text heading reveal ---------- */
.tv-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.tv-w > span { display: inline-block; transform: translateY(105%) rotateX(-70deg); transform-origin: 50% 100%; opacity: 0;
	transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .6s ease; transition-delay: calc(var(--i, 0) * 45ms + var(--d0, 0ms)); }
.tv-splittext.is-in .tv-w > span { transform: none; opacity: 1; }
.tv-splittext .tv-grad-text { background-size: 200% 100%; }
.tv-w:has(.tv-hl) { overflow: visible; }

/* ---------- Gradient beam borders ---------- */
.tv-beam { position: relative; isolation: isolate; }
.tv-beam::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
	background: conic-gradient(from var(--tv-angle), transparent 0 62%, rgba(229, 115, 45,.0) 64%, var(--tv-cyan) 78%, var(--tv-500) 86%, transparent 92%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: tv-beam 4.5s linear infinite; opacity: 0; transition: opacity .4s;
}
.tv-beam:hover::after, .tv-beam.is-always::after { opacity: 1; }
@keyframes tv-beam { to { --tv-angle: 360deg; } }

/* ---------- Aurora + spotlight grid backgrounds ---------- */
.tv-aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
/* Soft colour blobs. The soft edge is a 140px box-shadow (= a Gaussian with the same 70px spread as the old
   filter: blur(70px)), painted once. A blur filter on a moving layer is recomputed by the GPU on every frame, which
   made slower laptops lag; this looks the same. --s is the blob size, --sp the part of it drawn as the soft edge. */
.tv-aurora span { --sp: min(140px, var(--s) / 2); position: absolute; border-radius: 50%;
	width: calc(var(--s) - 2 * var(--sp)); height: calc(var(--s) - 2 * var(--sp)); margin: var(--sp);
	background: var(--c); box-shadow: 0 0 140px var(--sp) var(--c);
	opacity: .55; mix-blend-mode: multiply; animation: tv-aurora 18s ease-in-out infinite alternate; }
.tv-aurora span:nth-child(1) { --s: min(52vw, 760px); --c: #f8d7c3; left: -12%; top: -30%; }
.tv-aurora span:nth-child(2) { --s: min(40vw, 600px); --c: #f5cab0; right: -8%; top: 0; animation-duration: 22s; animation-delay: -6s; }
.tv-aurora span:nth-child(3) { --s: min(36vw, 540px); --c: #f9dece; left: 30%; bottom: -35%; animation-duration: 26s; animation-delay: -11s; }
@keyframes tv-aurora {
	0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
	50% { transform: translate3d(6vw, 4vh, 0) scale(1.15) rotate(40deg); }
	100% { transform: translate3d(-4vw, -3vh, 0) scale(.95) rotate(-20deg); }
}
.tv-dotgrid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(184, 84, 23,.22) 1px, transparent 1.2px); background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(380px circle at var(--mx, 70%) var(--my, 40%), #000 0%, rgba(0,0,0,.25) 45%, transparent 75%);
	mask-image: radial-gradient(380px circle at var(--mx, 70%) var(--my, 40%), #000 0%, rgba(0,0,0,.25) 45%, transparent 75%); }

/* ==========================================================================
   HERO v3
   ========================================================================== */
.tv-hero3 { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 140px; min-height: calc(100svh - var(--tv-header-h)); display: flex; align-items: center;
	background: linear-gradient(180deg, #fff 0%, #f6f9ff 70%, #fff 100%); }
.tv-hero3__inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tv-hero3 h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem) !important; line-height: 1.04 !important; letter-spacing: -.045em !important; margin: 1.3rem 0 1.25rem; }
.tv-hero3 h1 .tv-hl { position: relative; white-space: nowrap; }
.tv-hero3 h1 .tv-hl svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .35em; overflow: visible; }
.tv-hero3 h1 .tv-hl path { fill: none; stroke: url(#tvHlGrad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: tv-draw 1.4s cubic-bezier(.6,0,.2,1) 1.1s forwards; }
@keyframes tv-draw { to { stroke-dashoffset: 0; } }
.tv-hero3__lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--tv-muted) !important; max-width: 540px; }
.tv-hero3__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 2rem; }
.tv-hero3__badges span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 10px; background: #fff; border: 1px solid var(--tv-line); font-size: .82rem; font-weight: 600; color: var(--tv-ink); box-shadow: var(--tv-shadow-sm); }
.tv-hero3__badges i { color: var(--tv-500); }

.tv-hero3__stage { position: relative; height: clamp(420px, 44vw, 600px); perspective: 1600px; }
.tv-hero3__stage #tvHero3d { position: absolute; inset: -18% -25% -18% -15%; width: 140%; height: 136%; z-index: 0; opacity: .9; }

/* ---------- Dashboard mockup ---------- */
.tv-dash {
	position: absolute; z-index: 2; left: 4%; right: 0; top: 50%;
	transform: translateY(-50%) rotateY(-16deg) rotateX(9deg) rotateZ(1deg); transform-style: preserve-3d;
	border-radius: 20px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95);
	box-shadow: 0 50px 100px -30px rgba(79, 50, 32,.45), 0 30px 60px -40px rgba(223, 102, 28,.6), inset 0 1px 0 #fff;
	backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
	font-family: var(--tv-font); color: var(--tv-ink); overflow: visible;
	transition: transform .6s cubic-bezier(.2,.8,.2,1);
	animation: tv-dash-in 1.4s cubic-bezier(.2,.8,.2,1) .35s both;
}
@keyframes tv-dash-in { from { opacity: 0; transform: translateY(-40%) rotateY(-34deg) rotateX(22deg) translateZ(-160px); } }
.tv-dash__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--tv-line); }
.tv-dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.tv-dash__bar i:nth-child(2) { background: #febc2e; } .tv-dash__bar i:nth-child(3) { background: #28c840; }
.tv-dash__url { margin-left: 10px; flex: 1; max-width: 300px; padding: 5px 12px; border-radius: 8px; background: var(--tv-50); font-family: var(--tv-mono); font-size: .7rem; color: var(--tv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-dash__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: #16a34a; font-family: var(--tv-mono); text-transform: uppercase; letter-spacing: .08em; }
.tv-dash__live b { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: tv-ping 1.8s infinite; }
.tv-dash__body { display: grid; grid-template-columns: 52px 1fr; min-height: 0; }
.tv-dash__side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; border-right: 1px solid var(--tv-line); }
.tv-dash__side span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--tv-muted); font-size: .8rem; }
.tv-dash__side span.on { background: var(--tv-grad); color: #fff; box-shadow: var(--tv-glow); }
.tv-dash__main { padding: 16px 18px 18px; display: grid; gap: 14px; }
.tv-dash__hello { display: flex; align-items: center; justify-content: space-between; }
.tv-dash__hello strong { font-size: .95rem; }
.tv-dash__hello small { display: block; font-size: .72rem; color: var(--tv-muted); }
.tv-dash__btn { font-size: .7rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--tv-ink); color: #fff; }
.tv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tv-kpi { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--tv-line); transform: translateZ(30px); }
.tv-kpi small { display: block; font-size: .66rem; color: var(--tv-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tv-kpi b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tv-kpi em { font-style: normal; font-size: .66rem; font-weight: 700; color: #16a34a; }
.tv-kpi em.down { color: #e11d48; }
.tv-dash__charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.tv-chart { position: relative; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--tv-line); transform: translateZ(20px); }
.tv-chart small { font-size: .66rem; color: var(--tv-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tv-chart svg { display: block; width: 100%; height: 92px; margin-top: 6px; overflow: visible; }
.tv-chart .tv-line { fill: none; stroke: var(--tv-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: tv-draw 2.2s cubic-bezier(.6,0,.2,1) 1.2s forwards; }
.tv-chart .tv-area { fill: url(#tvAreaGrad); opacity: 0; animation: tv-fade-in 1s ease 2.2s forwards; }
.tv-chart .tv-dot { fill: #fff; stroke: var(--tv-500); stroke-width: 2.5; opacity: 0; animation: tv-fade-in .4s ease 3.2s forwards, tv-dot-pulse 2s ease-in-out 3.6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes tv-fade-in { to { opacity: 1; } }
@keyframes tv-dot-pulse { 50% { transform: scale(1.5); } }
.tv-bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 6px; }
.tv-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--tv-400), var(--tv-600)); transform-origin: bottom; animation: tv-bar-grow 1s cubic-bezier(.2,.8,.2,1) both, tv-bar-live 3.6s ease-in-out infinite; }
.tv-bars i:nth-child(odd) { background: linear-gradient(180deg, #f3bd9b, var(--tv-cyan)); }
@keyframes tv-bar-grow { from { transform: scaleY(0); } }
@keyframes tv-bar-live { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.78); } }
.tv-rows { border-radius: 14px; background: #fff; border: 1px solid var(--tv-line); overflow: hidden; transform: translateZ(14px); }
.tv-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: .74rem; border-top: 1px solid var(--tv-line); }
.tv-row:first-child { border-top: 0; }
.tv-row > i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--tv-50); color: var(--tv-600); font-size: .72rem; }
.tv-row b { display: block; font-weight: 700; }
.tv-row small { color: var(--tv-muted); font-family: var(--tv-mono); font-size: .64rem; }
.tv-pill { font-size: .62rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tv-pill--ok { background: #dcfce7; color: #15803d; } .tv-pill--info { background: var(--tv-100); color: var(--tv-700); } .tv-pill--warn { background: #fef3c7; color: #b45309; }
.tv-row.is-new { animation: tv-row-in .7s cubic-bezier(.2,.8,.2,1); background: linear-gradient(90deg, rgba(231, 126, 61,.1), transparent); }
@keyframes tv-row-in { from { opacity: 0; transform: translateY(-10px); } }

/* floating layers around the dashboard */
.tv-float-card {
	position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
	background: rgba(255,255,255,.88); border: 1px solid #fff; box-shadow: 0 24px 50px -20px rgba(79, 50, 32,.45);
	backdrop-filter: blur(12px); font-family: var(--tv-font); font-size: .78rem; color: var(--tv-ink);
}
.tv-float-card i.ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--tv-grad); font-size: .9rem; flex-shrink: 0; }
.tv-float-card b { display: block; font-size: .8rem; }
.tv-float-card small { color: var(--tv-muted); font-size: .68rem; }
.tv-toast-stack { position: absolute; z-index: 4; right: -2%; bottom: 4%; width: 270px; display: grid; gap: 8px; }
.tv-toast { transform-origin: 100% 100%; animation: tv-toast-in .6s cubic-bezier(.2,.8,.2,1) both; }
.tv-toast.is-out { animation: tv-toast-out .45s ease both; }
@keyframes tv-toast-in { from { opacity: 0; transform: translateY(20px) scale(.92); } }
@keyframes tv-toast-out { to { opacity: 0; transform: translateX(30px); } }
.tv-orbit-chip { position: absolute; z-index: 3; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--tv-grad); box-shadow: var(--tv-glow); animation: tv-float 6s ease-in-out infinite; }
.tv-orbit-chip--wa { background: linear-gradient(135deg, #1faa53, #25d366); box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); left: -2%; top: 8%; }
.tv-orbit-chip--fp { left: 2%; bottom: 10%; animation-delay: -2s; }
.tv-orbit-chip--erp { right: -3%; top: 40%; animation-delay: -4s; background: #fff; color: var(--tv-600); border: 1px solid var(--tv-line); box-shadow: var(--tv-shadow-lg); }

@media (max-width: 1199px) { .tv-toast-stack { right: 0; width: 240px; } }
@media (max-width: 991px) {
	.tv-hero3 { min-height: 0; padding-bottom: 110px; }
	.tv-hero3__inner { grid-template-columns: 1fr; }
	.tv-hero3__stage { height: 470px; margin: 0 -8px; }
	.tv-dash { left: 2%; right: 2%; transform: translateY(-50%) rotateY(-8deg) rotateX(6deg); }
}
@media (max-width: 575px) {
	.tv-hero3__stage { height: 400px; }
	.tv-dash { transform: translateY(-50%) scale(.9) rotateX(6deg); left: -4%; right: -4%; }
	.tv-dash__side { display: none; } .tv-dash__body { grid-template-columns: 1fr; }
	.tv-dash__charts { grid-template-columns: 1fr; } .tv-dash__charts .tv-chart:last-child { display: none; }
	.tv-kpi b { font-size: .9rem; }
	.tv-toast-stack { width: 220px; right: 0; bottom: -2%; }
	.tv-orbit-chip { width: 44px; height: 44px; font-size: 1.05rem; }
	.tv-hero3 .tv-hero__actions .tv-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Stacking service cards
   ========================================================================== */
.tv-stackcards { display: grid; gap: 28px; padding-bottom: 40px; }
.tv-scard {
	position: sticky; top: calc(var(--tv-header-h) + 28px + var(--i, 0) * 18px);
	display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
	min-height: min(560px, 76vh); padding: clamp(26px, 4vw, 52px); border-radius: 32px;
	background: #fff; border: 1px solid var(--tv-line); box-shadow: 0 -10px 60px -30px rgba(79, 50, 32,.35), var(--tv-shadow);
	transform-origin: 50% 0; will-change: transform; overflow: hidden;
}
.tv-scard--dark { background: radial-gradient(700px 400px at 90% 0%, rgba(229, 115, 45,.35), transparent 60%), var(--tv-grad-deep); border-color: transparent; color: rgba(255,255,255,.82); }
.tv-scard--dark h3, .tv-scard--dark .tv-scard__num { color: #fff !important; }
.tv-scard--dark p { color: rgba(255,255,255,.78) !important; }
.tv-scard--dark .tv-scard__list li { color: #fff; }
.tv-scard--dark .tv-btn--outline { background: rgba(255,255,255,.1); color: #fff !important; border-color: rgba(255,255,255,.3); }
.tv-scard__num { font-family: var(--tv-mono); font-size: .8rem; color: var(--tv-500); letter-spacing: .14em; }
.tv-scard h3 { font-size: clamp(1.6rem, 3vw, 2.5rem) !important; letter-spacing: -.035em !important; margin: .8rem 0 1rem; }
.tv-scard p { font-size: 1.03rem; color: var(--tv-muted); }
.tv-scard__list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.tv-scard__list li { display: flex; gap: .55rem; align-items: center; font-weight: 600; font-size: .92rem; color: var(--tv-ink); }
.tv-scard__list i { color: var(--tv-cyan); }
.tv-scard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.25rem 0 1.75rem; }
.tv-scard__chips a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 12px; font-weight: 700; font-size: .86rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff !important; transition: background .25s, transform .25s; }
.tv-scard__chips a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.tv-scard__art { position: relative; height: 100%; min-height: 340px; display: grid; place-items: center; perspective: 1000px; }
@media (max-width: 991px) { .tv-scard__list { grid-template-columns: 1fr; } .tv-scard__art { min-height: 280px; } }
@media (max-width: 599.98px) {
	.tv-scard { grid-template-columns: 1fr; position: relative; top: auto; min-height: 0; }
	.tv-scard__art { order: -1; }
}

/* art 1: 3D module cube grid */
.tv-iso { display: grid; grid-template-columns: repeat(4, 64px); gap: 14px; transform: rotateX(55deg) rotateZ(-40deg); transform-style: preserve-3d; }
.tv-iso span { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.25rem; color: var(--tv-600);
	background: linear-gradient(145deg, #fff, var(--tv-100)); border: 1px solid var(--tv-line);
	box-shadow: 0 1px 0 #fff inset, 6px 6px 0 var(--tv-200), 12px 12px 24px rgba(79, 50, 32,.18);
	animation: tv-iso 4s ease-in-out infinite; animation-delay: calc(var(--k) * -.35s); transform-style: preserve-3d; }
.tv-iso span.hot { background: var(--tv-grad); color: #fff; box-shadow: 6px 6px 0 var(--tv-800), 12px 12px 30px rgba(223, 102, 28,.45); }
.tv-iso span i { transform: rotateZ(40deg); }
@keyframes tv-iso { 0%, 100% { transform: translateZ(0); } 50% { transform: translateZ(26px); } }

/* art 2: phone */
.tv-phone { position: relative; width: 230px; height: 460px; border-radius: 40px; padding: 12px; background: #2e1d13; box-shadow: 0 40px 80px -20px rgba(50, 31, 20,.6), inset 0 0 0 2px #5c3924; transform: rotateY(-22deg) rotateX(8deg) rotateZ(4deg); animation: tv-phone 7s ease-in-out infinite; }
@keyframes tv-phone { 50% { transform: rotateY(-12deg) rotateX(4deg) rotateZ(2deg) translateY(-12px); } }
.tv-phone__screen { height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, var(--tv-50), #fff); display: flex; flex-direction: column; }
.tv-phone__notch { width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: #2e1d13; margin: 0 auto 6px; }
.tv-phone__head { padding: 6px 16px 12px; }
.tv-phone__head small { font-size: .66rem; color: var(--tv-muted); }
.tv-phone__head b { display: block; font-size: 1rem; color: var(--tv-ink); }
.tv-phone__card { margin: 0 12px 10px; padding: 12px; border-radius: 16px; background: var(--tv-grad); color: #fff; }
.tv-phone__card small { font-size: .62rem; opacity: .8; } .tv-phone__card b { display: block; font-size: 1.15rem; }
.tv-phone__list { padding: 0 12px; display: grid; gap: 8px; }
.tv-phone__item { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 12px; background: #fff; border: 1px solid var(--tv-line); font-size: .68rem; color: var(--tv-ink); animation: tv-row-in .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--k) * .15s + .4s); }
.tv-phone__item i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--tv-100); color: var(--tv-600); font-size: .65rem; }
.tv-phone__item em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--tv-600); }
.tv-phone__tab { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 8px 16px; border-top: 1px solid var(--tv-line); color: var(--tv-muted); font-size: .9rem; }
.tv-phone__tab .on { color: var(--tv-600); }

/* art 3: browser builder */
.tv-browser { width: min(440px, 100%); border-radius: 18px; background: #fff; border: 1px solid var(--tv-line); box-shadow: var(--tv-shadow-lg); overflow: hidden; transform: rotateY(16deg) rotateX(6deg); animation: tv-phone 8s ease-in-out infinite reverse; }
.tv-browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--tv-50); border-bottom: 1px solid var(--tv-line); }
.tv-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--tv-200); }
.tv-browser__body { padding: 16px; display: grid; gap: 10px; }
.tv-sk { border-radius: 10px; background: linear-gradient(90deg, var(--tv-100) 25%, #fff 50%, var(--tv-100) 75%); background-size: 200% 100%; animation: tv-shimmer 1.8s linear infinite; }
@keyframes tv-shimmer { to { background-position: -200% 0; } }
.tv-sk--hero { height: 110px; background: var(--tv-grad); background-size: 100% 100%; animation: none; position: relative; overflow: hidden; }
.tv-sk--hero::after { content: "Your brand, online"; position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.tv-sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tv-sk-row .tv-sk { height: 64px; }
.tv-sk--line { height: 10px; width: 80%; } .tv-sk--line.s { width: 55%; }
.tv-cursor-demo { position: absolute; width: 22px; height: 22px; color: var(--tv-ink); animation: tv-cursor-demo 6s ease-in-out infinite; }
@keyframes tv-cursor-demo { 0% { transform: translate(60px, 220px); } 30% { transform: translate(260px, 120px); } 55% { transform: translate(140px, 300px); } 80% { transform: translate(320px, 260px); } 100% { transform: translate(60px, 220px); } }

/* art 4: integration hub */
.tv-hub { position: relative; width: 340px; height: 340px; }
.tv-hub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tv-hub line { stroke: rgba(244, 194, 163,.5); stroke-width: 1.5; stroke-dasharray: 5 7; animation: tv-dash-flow 1.2s linear infinite; }
@keyframes tv-dash-flow { to { stroke-dashoffset: -24; } }
.tv-hub__core { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 28px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.05), 0 20px 50px rgba(0,0,0,.35); }
.tv-hub__core img { width: 52px; }
.tv-hub__node { position: absolute; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 18px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); animation: tv-float 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.1s); }
.tv-hub__node:hover { background: rgba(255,255,255,.25); }
.tv-hub__pulse { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff, 0 0 24px var(--tv-cyan); offset-rotate: 0deg; animation: tv-pulse-travel 2.4s cubic-bezier(.6,0,.4,1) infinite; animation-delay: calc(var(--k) * .45s); }
@keyframes tv-pulse-travel { 0% { left: 50%; top: 50%; opacity: 0; } 15% { opacity: 1; } 100% { left: var(--x); top: var(--y); opacity: 0; } }
@media (max-width: 575px) { .tv-hub { transform: scale(.82); } .tv-iso { grid-template-columns: repeat(4, 48px); gap: 10px; } .tv-iso span { width: 48px; height: 48px; font-size: 1rem; } }

/* ==========================================================================
   Kinetic marquee
   ========================================================================== */

/* ==========================================================================
   Bento "why"
   ========================================================================== */
.tv-bento2 { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 18px; }
.tv-tile { position: relative; overflow: hidden; padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--tv-line); box-shadow: var(--tv-shadow); display: flex; flex-direction: column; }
.tv-tile h3 { font-size: 1.2rem !important; margin: 0 0 .4rem; }
.tv-tile p { font-size: .92rem; color: var(--tv-muted); margin: 0; }
.tv-tile--hero { grid-column: span 2; grid-row: span 2; background: radial-gradient(600px 400px at 100% 0%, rgba(237, 159, 112,.22), transparent 60%), #fff; }
.tv-tile__tamil { font-family: "Noto Sans Tamil", var(--tv-font); font-weight: 700; font-size: clamp(3.6rem, 8vw, 6.8rem); line-height: 1.05; margin: auto 0 .5rem; background: var(--tv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-tile__eq { font-family: var(--tv-mono); font-size: .9rem; color: var(--tv-700); margin-bottom: 1rem; }
.tv-tile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.tv-tile__tags span { padding: .4rem .75rem; border-radius: 10px; background: var(--tv-50); border: 1px solid var(--tv-line); font-size: .8rem; font-weight: 700; color: var(--tv-700); }
.tv-tile--blue { background: var(--tv-grad-deep); border: 0; color: rgba(255,255,255,.8); }
.tv-tile--blue h3, .tv-tile--blue .tv-tile__big { color: #fff !important; }
.tv-tile--blue p { color: rgba(255,255,255,.75); }
.tv-tile__big { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: auto 0 .4rem; }
.tv-tile__avatars { display: flex; margin-bottom: 1rem; }
.tv-tile__avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; border: 3px solid #fff; margin-left: -10px; box-shadow: var(--tv-shadow-sm); }
.tv-tile__avatars img:first-child { margin-left: 0; }
.tv-tile__map { position: relative; height: 110px; margin: -6px -6px 14px; border-radius: 18px; overflow: hidden;
	background-image: linear-gradient(var(--tv-line) 1px, transparent 1px), linear-gradient(90deg, var(--tv-line) 1px, transparent 1px); background-size: 18px 18px; background-color: var(--tv-50); }
.tv-tile__map::before { content: ""; position: absolute; left: 10%; right: -10%; top: 58%; height: 10px; background: #fff; transform: rotate(-12deg); box-shadow: 0 0 0 1px var(--tv-line); }
.tv-tile__pin { position: absolute; left: 50%; top: 42%; width: 34px; height: 34px; margin: -34px 0 0 -17px; color: var(--tv-600); font-size: 1.9rem; animation: tv-pin 2.4s ease-in-out infinite; }
.tv-tile__pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 40px; height: 14px; margin-left: -20px; border-radius: 50%; border: 2px solid var(--tv-400); animation: tv-ripple 2.4s ease-out infinite; }
@keyframes tv-pin { 50% { transform: translateY(-8px); } }
@keyframes tv-ripple { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.tv-chat { display: grid; gap: 8px; margin-bottom: 14px; }
.tv-chat span { justify-self: start; max-width: 86%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--tv-50); font-size: .8rem; color: var(--tv-ink); border: 1px solid var(--tv-line); animation: tv-row-in .6s both; }
.tv-chat span.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--tv-grad); color: #fff; border: 0; animation-delay: .3s; }
.tv-typing { display: inline-flex !important; gap: 4px; animation-delay: .6s !important; }
.tv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tv-400); animation: tv-typing 1.2s infinite; }
.tv-typing i:nth-child(2) { animation-delay: .15s; } .tv-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tv-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.tv-tile__logos { display: flex; align-items: center; gap: 12px; margin: auto 0 14px; }
.tv-tile__logos span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--tv-line); box-shadow: var(--tv-shadow-sm); font-weight: 800; color: var(--tv-600); }
.tv-tile__logos img { width: 30px; }
.tv-tile__logos em { font-style: normal; color: var(--tv-300); font-size: 1.2rem; }
@media (max-width: 991px) { .tv-bento2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tv-bento2 { grid-template-columns: 1fr; } .tv-tile--hero { grid-column: auto; grid-row: auto; } }

/* ==========================================================================
   Pinned horizontal process
   ========================================================================== */
.tv-hs { position: relative; height: calc(var(--panels, 5) * 70vh); background: linear-gradient(180deg, #fff, var(--tv-50)); }
.tv-hs__sticky { position: sticky; top: var(--tv-header-h); height: calc(100vh - var(--tv-header-h)); height: calc(100svh - var(--tv-header-h)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.tv-hs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 40px); }
.tv-hs__head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.tv-hs__progress { flex-shrink: 0; width: 200px; height: 4px; border-radius: 4px; background: var(--tv-100); overflow: hidden; }
.tv-hs__progress i { display: block; height: 100%; background: var(--tv-grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.tv-hs__track { display: flex; gap: 24px; padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px)); will-change: transform; }
.tv-panel { position: relative; flex-shrink: 0; width: min(460px, 82vw); min-height: 360px; padding: 34px; border-radius: 30px; background: #fff; border: 1px solid var(--tv-line); box-shadow: var(--tv-shadow); display: flex; flex-direction: column; overflow: hidden; }
.tv-panel__n { position: absolute; right: 18px; top: -10px; font-size: 9rem; font-weight: 800; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--tv-100); pointer-events: none; }
.tv-panel__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--tv-grad); color: #fff; font-size: 1.5rem; box-shadow: var(--tv-glow); margin-bottom: auto; }
.tv-panel h3 { font-size: 1.6rem !important; margin: 28px 0 .6rem; letter-spacing: -.03em !important; }
.tv-panel p { color: var(--tv-muted); margin: 0 0 1.1rem; }
.tv-panel__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-panel__tags span { padding: .35rem .7rem; border-radius: 8px; background: var(--tv-50); border: 1px solid var(--tv-line); font-size: .76rem; font-weight: 700; color: var(--tv-700); font-family: var(--tv-mono); }
.tv-panel--cta { background: var(--tv-grad-deep); border: 0; color: #fff; justify-content: center; }
.tv-panel--cta h3 { color: #fff !important; font-size: 2rem !important; margin-top: 0; }
.tv-panel--cta p { color: rgba(255,255,255,.78); }
@media (max-width: 599.98px) {
	.tv-hs { height: auto !important; }
	.tv-hs__sticky { position: relative; top: auto; height: auto; padding: 72px 0; }
	.tv-hs__track { transform: none !important; flex-direction: column; padding: 0 16px; }
	.tv-panel { width: 100%; min-height: 0; }
	.tv-hs__progress { display: none; }
}

/* ==========================================================================
   Footer wordmark
   ========================================================================== */
.tv-wordmark { position: relative; overflow: hidden; user-select: none; }
.tv-wordmark span {
	display: block; padding-block: .1em; text-align: center; white-space: nowrap;
	font: 800 min(11vw, 12rem)/1 var(--tv-font); letter-spacing: -.06em;
	color: #f4c2a310; -webkit-text-stroke: 1px #f4c2a345;
}
.tv-wordmark span + span {
	position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 0; pointer-events: none;
	background: radial-gradient(circle clamp(5.5rem, 22vw, 21rem) at var(--mx, 50%) var(--my, 50%), #fff4e9, #ffc39d 30%, #f18c5138 60%, transparent 82%);
	-webkit-background-clip: text; background-clip: text;
}

/* ---------- generic upgrades applied everywhere ---------- */
.tv-site .tv-section__head h2, .tv-site .page-header h1 { text-wrap: balance; }
.tv-site p { text-wrap: pretty; }
.tv-stats__card { position: relative; }
.tv-magnetic { will-change: transform; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tv-magnetic.is-pulling { transition: transform .12s linear; }
[data-scramble] { font-variant-ligatures: none; }

/* scroll-driven fade for images (native CSS, progressive) */
@supports (animation-timeline: view()) {
	.tv-site .tv-gallery img, .tv-site .tab-pane img, .tv-site .container-fluid.overflow-hidden img {
		animation: tv-img-scale linear both; animation-timeline: view(); animation-range: entry 0% cover 40%;
	}
	@keyframes tv-img-scale { from { transform: scale(1.18); filter: saturate(.6); } to { transform: scale(1); filter: none; } }
}

@media (prefers-reduced-motion: reduce) {
	.tv-grain, .tv-cursor, .tv-cursor-trail, .tv-aurora span { display: none !important; }
	.tv-w > span { transform: none !important; opacity: 1 !important; }
	.tv-dash { animation: none; }
	.tv-hs { height: auto !important; } .tv-hs__sticky { position: relative; height: auto; padding: 72px 0; }
	.tv-hs__track { transform: none !important; flex-wrap: wrap; }
	.tv-scard { position: relative; top: auto; }
	.tv-intro .tv-curtain { display: none; }
}
@media (hover: none), (pointer: coarse) { .tv-cursor, .tv-cursor-trail { display: none; } }

/* Phones: keep the quick-contact buttons out of the reading column */
@media (max-width: 767px) {
	.tv-float { left: auto; right: 12px; bottom: 12px; gap: 8px; }
	.tv-float__btn { width: 46px; height: 46px; font-size: 1.15rem; }
	.tv-float__btn--call { font-size: .95rem; }
	.tv-top { display: none; }
}
