/* TESSA scenes: the animated pictures, the hero stage and the page furniture. Colors come from the theme palette. */
.tsc-scene { --s-ink: var(--wp--preset--color--contrast, #F4F4F8); --s-line: var(--wp--preset--color--line, #34305A); --s-panel: var(--wp--preset--color--panel, #201D3A); --s-muted: var(--wp--preset--color--muted, #A9A7C4); margin: 0; color: var(--s-ink); max-width: 100%; }
.tsc-scene svg.tsc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tsc-scene .tsc-bl { font-family: var(--wp--preset--font-family--poppins, system-ui, sans-serif); font-weight: 700; letter-spacing: -.01em; }
.tsc-scene .tsc-mono { font-family: var(--wp--preset--font-family--mono, ui-monospace, SFMono-Regular, Menlo, monospace); }
.tsc-scene .tsc-capt { letter-spacing: .14em; fill: #A9A7C4; }
.tsc-scene .tsc-capt--cyan { fill: #43AEE6; }
@media (max-width: 760px) { .tsc-scene:not(.tsc-scene--cost):not(.tsc-scene--ask):not(.tsc-scene--entries):not(.tsc-scene--integrations) { overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* motion: paused until the scene scrolls into view, when the motion script is present */
.tsc-js .tsc-reveal:not(.is-in) * { animation-play-state: paused !important; }
.tsc-js .tsc-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.tsc-js .tsc-reveal.is-in { opacity: 1; transform: none; }

@keyframes tsc-flowdash { to { stroke-dashoffset: -28; } }
.tsc-flow { animation: tsc-flowdash 1.1s linear infinite; }
@keyframes tsc-pulse { 50% { transform: scale(1.22); } }
.tsc-pulse { transform-box: fill-box; transform-origin: center; animation: tsc-pulse 1.4s ease-in-out infinite; }
@keyframes tsc-blinkop { 50% { opacity: .25; } }
.tsc-blink { animation: tsc-blinkop 2.2s ease-in-out infinite; }
.tsc-ghost { animation: tsc-blinkop 2.2s ease-in-out infinite; }
@keyframes tsc-wob { 50% { transform: rotate(1.4deg) translateY(-2px); } }
.tsc-wobble { transform-box: fill-box; transform-origin: center; animation: tsc-wob 4s ease-in-out infinite; }
.tsc-tape { transform-box: fill-box; transform-origin: center; animation: tsc-wob 3s ease-in-out infinite; }
.tsc-dupe { animation: tsc-blinkop 3s ease-in-out infinite; }
@keyframes tsc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.tsc-tile { transform-box: fill-box; transform-origin: center; animation: tsc-pop .5s ease-out both; }
.tsc-node { transform-box: fill-box; transform-origin: center; animation: tsc-pop .5s ease-out both; }
@keyframes tsc-run { from { transform: translateX(0); } to { transform: translateX(948px); } }
.tsc-run { animation: tsc-run 3.6s ease-in-out infinite alternate; }
@keyframes tsc-snap { 0%, 22% { transform: translate(var(--dx), var(--dy)); } 46%, 86% { transform: translate(0, 0); } 100% { transform: translate(var(--dx), var(--dy)); } }
.tsc-snap { animation: tsc-snap 9s ease-in-out infinite; }
@keyframes tsc-deal { 0%, 10% { transform: translateX(0); } 30%, 40% { transform: translateX(198px); } 60%, 70% { transform: translateX(396px); } 90%, 100% { transform: translateX(594px); } }
.tsc-deal { animation: tsc-deal 9s ease-in-out infinite; }
.tsc-spose .tsc-eye { transform-box: fill-box; transform-origin: center; }
.tsc-spose > svg { transform-box: fill-box; transform-origin: 50% 100%; animation: tsc-bob 3.4s ease-in-out infinite; }
.tsc-spose--wave .tsc-arm--r { animation: tsc-wave .5s ease-in-out infinite alternate; }
.tsc-spose--point .tsc-arm--r { animation: tsc-point 1.1s ease-in-out infinite alternate; }
.tsc-spose--cheer .tsc-arm { animation: tsc-cheer .45s ease-in-out infinite alternate; }
.tsc-spose--present .tsc-ant, .tsc-spose--wave .tsc-ant { transform-box: fill-box; transform-origin: center; animation: tsc-ping .9s ease-in-out infinite alternate; }

/* hero stage: stud grid, glow, scene */
.tsc-stage { position: relative; isolation: isolate; }
.tsc-stage::before { content: ""; position: absolute; inset: -2rem -50vw; z-index: -1; background:
	radial-gradient(60% 55% at 72% 38%, rgba(67,174,230,.22), transparent 70%),
	radial-gradient(40% 40% at 20% 80%, rgba(219,74,130,.14), transparent 70%),
	radial-gradient(circle at 12px 12px, rgba(244,244,246,.09) 3.5px, transparent 4.5px) 0 0 / 36px 36px;
	-webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.tsc-hero-lede { max-width: 44rem; }
.tsc-scene--patchwork { margin-top: 1.5rem; }

/* cost cards */
.tsc-cost { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.tsc-cost__card { position: relative; background: var(--s-panel); border: 1.5px dashed var(--s-line); border-radius: 12px; padding: 1.1rem 1.15rem 1.2rem; transition: transform .25s ease, border-color .25s ease; }
.tsc-cost__card:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--yellow, #F4C54E); }
.tsc-cost__card h3 { font-size: 1.1rem; margin: .6rem 0 .3rem; }
.tsc-cost__card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--s-muted); }
.tsc-cost__glyph { width: 56px; height: 56px; display: block; overflow: visible; }
@keyframes tsc-drop { 0%, 55% { transform: translateY(0); } 70% { transform: translateY(-9px); } 100% { transform: translateY(0); } }
.tsc-g-drop { animation: tsc-drop 2.4s ease-in-out infinite; }
@keyframes tsc-slide { 50% { transform: translate(-7px, 5px); } }
.tsc-g-slide { animation: tsc-slide 2.2s ease-in-out infinite; }
.tsc-g-pulse { transform-box: fill-box; transform-origin: center; animation: tsc-pulse 1.4s ease-in-out infinite; }
@keyframes tsc-shake { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
.tsc-g-shake { transform-box: fill-box; transform-origin: 50% 90%; animation: tsc-shake 2.8s ease-in-out infinite; }
@keyframes tsc-spin { to { transform: rotate(360deg); } }
.tsc-g-hand { transform-origin: 32px 32px; animation: tsc-spin 4s linear infinite; }
@keyframes tsc-late { 0%, 40% { opacity: .15; } 70%, 100% { opacity: 1; } }
.tsc-g-late { animation: tsc-late 3s ease-in-out infinite; }
@keyframes tsc-fall { 0%, 40% { transform: translate(0, 0) rotate(0); } 80%, 100% { transform: translate(22px, 14px) rotate(18deg); opacity: .5; } }
.tsc-g-fall { transform-box: fill-box; transform-origin: left bottom; animation: tsc-fall 3s ease-in infinite; }

/* Ask TESSA demo */
.tsc-askdemo { max-width: 680px; background: var(--s-panel); border: 1.5px solid var(--wp--preset--color--cyan, #43AEE6); border-radius: 14px; overflow: hidden; }
.tsc-askdemo__head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--s-line); font-weight: 700; }
.tsc-askdemo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--cyan, #43AEE6); box-shadow: 0 0 0 4px rgba(67,174,230,.25); animation: tsc-pulse 1.8s ease-in-out infinite; }
.tsc-askdemo__tag { margin-left: auto; font: 500 .7rem/1 var(--wp--preset--font-family--mono, ui-monospace, monospace); letter-spacing: .08em; color: var(--s-muted); text-transform: uppercase; }
.tsc-askdemo__stage { position: relative; min-height: 190px; padding: 1.1rem 1.1rem 0; }
.tsc-qa { position: absolute; inset: 1.1rem 1.1rem auto; opacity: 0; animation: tsc-qa 21s ease-in-out infinite; animation-delay: var(--d); }
.tsc-qa__q { display: inline-block; margin: 0 0 .7rem; padding: .55rem .9rem; border-radius: 12px 12px 3px 12px; background: var(--wp--preset--color--cyan, #43AEE6); color: #0B0A14; font-weight: 600; font-size: .95rem; }
.tsc-qa__a { margin: 0; padding: .75rem .95rem; border-radius: 12px 12px 12px 3px; border: 1.5px solid var(--s-line); font-size: .95rem; line-height: 1.55; }
@keyframes tsc-qa { 0% { opacity: 0; transform: translateY(8px); } 4%, 29% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-6px); } }
.tsc-askdemo__more { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem 1.1rem; }
.tsc-askdemo__more span { border: 1.5px dashed var(--s-line); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; color: var(--s-muted); }
@media (prefers-reduced-motion: reduce) { .tsc-qa { position: static; opacity: 1; animation: none; margin-bottom: 1rem; } .tsc-askdemo__stage { min-height: 0; } }

/* entries and integration tiles */
.tsc-entries, .tsc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.tsc-entry { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; text-decoration: none !important; background: var(--s-panel); border: 1.5px dashed var(--s-line); border-radius: 12px; padding: 1.1rem 1.15rem; color: var(--s-ink) !important; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tsc-entry:hover, .tsc-entry:focus-visible { transform: translateY(-5px); border-style: solid; border-color: var(--wp--preset--color--cyan, #43AEE6); box-shadow: 0 14px 30px -14px rgba(67,174,230,.5); }
.tsc-entry__icon { width: 52px; height: 52px; }
.tsc-entry__t { font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.tsc-entry__d { color: var(--s-muted); font-size: .92rem; line-height: 1.5; flex: 1; }
.tsc-tile-card { position: relative; background: var(--s-panel); border: 1.5px solid var(--s-line); border-radius: 12px; padding: 1.6rem 1.15rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; transition: transform .25s ease; }
.tsc-tile-card:hover { transform: translateY(-4px); }
.tsc-tile-card h3 { font-size: 1.1rem; margin: 0; }
.tsc-tile-card p { margin: 0; color: var(--s-muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.tsc-tile-card__studs { position: absolute; top: -8px; left: 18px; display: flex; gap: 10px; }
.tsc-tile-card__studs i { width: 24px; height: 9px; border-radius: 3px 3px 0 0; background: var(--wp--preset--color--cyan, #43AEE6); }
.tsc-status-pill--ask { color: var(--wp--preset--color--yellow, #F4C54E); }

/* status list on pages */
.tsc-where { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tsc-where li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; padding: .7rem 1rem; border: 1.5px dashed var(--wp--preset--color--line, #34305A); border-radius: 10px; }
.tsc-where li span:first-child { font-weight: 600; }
.tsc-where li .tsc-status-pill { margin-left: auto; }

/* quote line */
.tsc-bigline { font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: 40rem; }
.tsc-qlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tsc-qlist li { padding: .8rem 1rem; border-left: 3px solid var(--wp--preset--color--yellow, #F4C54E); background: var(--wp--preset--color--panel, #201D3A); border-radius: 0 10px 10px 0; font-weight: 600; }
.tsc-vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.tsc-vs > div { padding: 1.2rem 1.3rem; border-radius: 12px; border: 1.5px dashed var(--wp--preset--color--line, #34305A); }
.tsc-vs > div:last-child { border: 1.5px solid var(--wp--preset--color--cyan, #43AEE6); background: var(--wp--preset--color--panel, #201D3A); }
.tsc-vs h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.tsc-vs p { margin: .3rem 0 0; }

@media (prefers-reduced-motion: reduce) {
	.tsc-scene *, .tsc-cost__glyph * { animation: none !important; }
	.tsc-js .tsc-reveal { opacity: 1; transform: none; transition: none; }
}

/* hero tuning */
.tsc-stage .tessa-hero-title, .tessa-hero .tessa-hero-title { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.tsc-pitch { letter-spacing: .16em; }
.tsc-pitch .tessa-fit { font-weight: 700; }
@keyframes tsc-dupeop { 50% { opacity: .55; } }
.tsc-dupe { animation-name: tsc-dupeop; }

/* keep the hero figure clear of the picture below it */
.tsc-stage > .wp-block-columns { margin-bottom: 2.5rem; }
.tsc-stage .wp-block-column .tsc-tessa--l { margin-bottom: .5rem; }
.tsc-tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tsc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tsc-tiles { grid-template-columns: 1fr; } }

.tsc-where__ask { border-style: solid !important; border-color: var(--wp--preset--color--cyan, #43AEE6) !important; }
.tsc-where__ask a.tsc-status-pill { text-decoration: none; }

/* a piece of tape on every cost: one across the top of the card that lifts and settles, one on the picture that flutters */
.tsc-cost__card::before { content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: rgba(244,197,78,.92); border: 2px solid #0B0A14; clip-path: polygon(0 0, 100% 0, 96% 25%, 100% 50%, 96% 75%, 100% 100%, 0 100%, 4% 75%, 0 50%, 4% 25%); transform: rotate(-3deg); transform-origin: 0 50%; animation: tsc-peel 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.45s); }
@keyframes tsc-peel { 0%, 55%, 100% { transform: rotate(-3deg); } 70% { transform: rotate(-9deg) translateY(-2px); } 85% { transform: rotate(-1deg); } }
.tsc-g-tape { transform-box: fill-box; transform-origin: 20% 50%; animation: tsc-flutter 2.6s ease-in-out infinite; }
@keyframes tsc-flutter { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(7deg) translateY(-1px); } 70% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .tsc-cost__card::before, .tsc-g-tape { animation: none; } }

.tsc-cost { margin-top: 1.6rem; row-gap: 1.6rem; }
