/* Humpf Tech v3 — futuristic red & black. Only what theme.json cannot express. */

html { scroll-behavior: smooth; background: #060608; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; position: relative; }
/* film grain over everything (very subtle) */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
	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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: #ff2a2f; color: #fff; }
:where(a, button):focus-visible { outline: 2px solid #ff2a2f; outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-block-post-content > .alignfull, .site-footer, .site-header { position: relative; }

/* Sections */
.is-style-section-grid { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) !important; background-size: 56px 56px !important; background-position: center top !important; }
.is-style-section-carbon { border-top: 1px solid #1c1c22; border-bottom: 1px solid #1c1c22; }
.is-style-section-red { overflow: hidden; }
.is-style-section-red::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 4px; pointer-events: none; opacity: .35; }
.is-style-panel-glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Hero */
.hero { overflow: hidden; isolation: isolate; }
.hero > .fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(55% 60% at 78% 30%, rgba(255,42,47,.20), transparent 65%), radial-gradient(40% 50% at 0% 100%, rgba(179,15,22,.18), transparent 60%), linear-gradient(180deg, transparent 70%, #060608); }
.hero h1, .grad-text { background: linear-gradient(100deg, #ffffff 0%, #ffe0e1 45%, #ff2a2f 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* HUD tag (paragraph "sticker" style) */
p.is-style-sticker { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #ffb3b5; border: 1px solid rgba(255,42,47,.45); background: rgba(255,42,47,.08); border-radius: 999px; padding: .45rem .9rem; margin-block-end: .25rem; }
p.is-style-sticker::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #ff2a2f; box-shadow: 0 0 10px #ff2a2f; flex: none; }
p.is-style-eyebrow::before { content: "// "; opacity: .6; }

/* Buttons */
.wp-block-button__link { position: relative; transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease; will-change: transform; }
.wp-block-button__link:hover { box-shadow: 0 0 0 1px rgba(255,42,47,.6), 0 14px 50px rgba(255,42,47,.45) !important; }
.wp-block-button.is-style-dark .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link { background: rgba(255,255,255,.04); color: #f4f4f7; border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.wp-block-button.is-style-dark .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #ff2a2f; color: #fff; box-shadow: 0 0 0 1px rgba(255,42,47,.4), 0 10px 40px rgba(255,42,47,.25) !important; }
.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: #b30f16; box-shadow: 0 10px 40px rgba(255,255,255,.15); }

/* Cards with cursor spotlight */
.is-style-card, .is-style-card-red { position: relative; height: 100%; overflow: hidden; transition: border-color .3s ease, transform .3s ease, background-color .3s ease; }
.is-style-card::before, .is-style-card-red::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
	background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,42,47,.16), transparent 60%); }
.is-style-card:hover, .is-style-card-red:hover { border-color: rgba(255,42,47,.45) !important; }
.is-style-card:hover::before, .is-style-card-red:hover::before { opacity: 1; }
.is-style-card > *, .is-style-card-red > * { position: relative; }
.is-style-card h3, .is-style-card-red h3, .is-style-card h2 { margin: 0; }
.is-style-card p, .is-style-card-red p { margin: 0; }
.is-style-card .wp-block-buttons, .is-style-card-red .wp-block-buttons { margin-top: auto; padding-top: .75rem; }
.is-link-card:hover { transform: translateY(-4px); }
.is-link-card h3 a, .is-link-card h2 a { color: #f4f4f7; }
.is-link-card h3 a::after, .is-link-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.is-link-card .more { font-family: 'JetBrains Mono', monospace; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #ff2a2f; }
.is-link-card:hover .more { color: #fff; }

/* Index chip ("01") */
.num { display: inline-flex; width: fit-content; font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .12em; color: #ff2a2f; border: 1px solid rgba(255,42,47,.35); border-radius: 8px; padding: .25rem .55rem; margin: 0 !important; }
.num::before { content: "0"; }

/* Trigger → action line */
.flow { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: #8e8e9b; border-top: 1px dashed #2a2a33; padding-top: .7rem; margin-top: auto !important; }
.flow strong { color: #ff6a3d; font-weight: 500; }

/* Checks */
ul.is-style-checks { list-style: none; padding-left: 0; }
ul.is-style-checks > li { position: relative; padding-left: 1.6rem; margin-block: .5rem; }
ul.is-style-checks > li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 2px; background: #ff2a2f; box-shadow: 0 0 10px rgba(255,42,47,.8); transform: rotate(45deg); }

/* Terminal feed (list style) */
ul.is-style-feed { list-style: none; margin: 0; padding: 1rem 1.1rem; font-family: 'JetBrains Mono', monospace; font-size: .8rem; line-height: 1.7; color: #b9b9c6; background: #08080b; border: 1px solid #23232b; border-radius: 14px; min-height: 14rem; overflow: hidden; }
ul.is-style-feed > li { white-space: pre-wrap; padding-left: 1.1rem; position: relative; }
ul.is-style-feed > li::before { content: "›"; position: absolute; left: 0; color: #ff2a2f; }
ul.is-style-feed .caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: #ff2a2f; animation: humpf-blink 1s steps(2) infinite; }
@keyframes humpf-blink { 50% { opacity: 0; } }
.term-head { display: flex; justify-content: space-between; gap: 1rem; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8e8e9b; margin-bottom: .6rem !important; }

/* AI core */
p.is-style-ai-core { position: relative; width: min(15rem, 66vw); aspect-ratio: 1; margin: 0 auto .75rem !important; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .3em; color: #fff; text-transform: uppercase; text-shadow: 0 0 12px #ff2a2f; }
p.is-style-ai-core svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
p.is-style-ai-core::before { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, rgba(255,42,47,.9), rgba(179,15,22,.4) 45%, transparent 70%); filter: blur(2px); }
.core-ring { transform-origin: 100px 100px; transform-box: view-box; }

/* HUD badges row */
.hud-row { gap: .5rem 1.25rem !important; }
.hud-row p { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8e8e9b; }
.hud-row p::before { content: "◆ "; color: #ff2a2f; }

/* Ticker */
p.is-style-ticker { border-top: 1px solid #1f1f26; border-bottom: 1px solid #1f1f26; overflow: hidden; white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: clamp(.85rem, 1.6vw, 1rem); letter-spacing: .18em; text-transform: uppercase; color: #d6d6df; padding: 1.1rem 0; margin: 0; }
p.is-style-ticker mark { color: #ff2a2f !important; }
p.is-style-ticker .ticker-track { display: inline-block; padding-right: 2.5rem; }

/* Photo: red duotone */
.duotone { position: relative; border-radius: 18px; overflow: hidden; }
.duotone img { filter: grayscale(1) contrast(1.15) brightness(.9); display: block; border-radius: 18px; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,42,47,.10), rgba(179,15,22,.45)); mix-blend-mode: color; pointer-events: none; border-radius: 18px; }
.duotone::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 100% 3px; }

/* Quotes */
.wp-block-quote { margin-inline: 0; border-left: 2px solid #ff2a2f; padding-left: 1.25rem; }
.wp-block-quote p { margin: 0 0 .6rem; }

/* Rows */
.rows > * { align-self: stretch; width: 100%; border-top: 1px solid #26262e; padding-top: 1rem; }
.rows h3, .rows h4 { margin: 0 0 .25rem; }
.rows p { margin: 0; }

/* Header */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; }
.site-header { background: rgba(6,6,8,.72) !important; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); transition: background-color .3s ease, border-color .3s ease; }
.wp-site-blocks > header.is-scrolled .site-header { background: rgba(6,6,8,.92) !important; border-bottom-color: rgba(255,42,47,.25); }
.brand-name { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1; }
.brand-name a { color: #f4f4f7 !important; }
.site-header .wp-block-navigation a { color: #d6d6df; }
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: #ff2a2f; }
.site-header .wp-block-navigation__submenu-container { background: #0d0d11 !important; border: 1px solid #26262e !important; border-radius: 14px; padding: .5rem 0 !important; min-width: 230px !important; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1.1rem !important; }
.site-header .nav-cta > .wp-block-navigation-item__content { font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #fff !important; border: 1px solid rgba(255,42,47,.6); background: rgba(255,42,47,.12); border-radius: 10px; padding: .55rem .9rem !important; box-shadow: 0 0 24px rgba(255,42,47,.25); }
.site-header .nav-cta > .wp-block-navigation-item__content:hover { background: #ff2a2f; }
.site-header .wp-block-site-logo img { filter: drop-shadow(0 0 10px rgba(255,42,47,.55)) brightness(1.25); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; background: #060608 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 600; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: .25rem 0 0 1rem !important; font-size: 1.1rem; gap: .6rem; background: transparent !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: #f4f4f7; }

/* Legal + blog */
.legal-body h2 { margin-block-start: 2.5rem; font-size: var(--wp--preset--font-size--x-large); }
.legal-body h2:first-child { margin-block-start: 0; }
.legal-body a:not(.wp-block-button__link), .sms-box a:not(.wp-block-button__link), .is-style-card p a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }
.sms-box { border-left: 3px solid #ff2a2f !important; }
.post-card .wp-block-post-featured-image img { border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; filter: grayscale(.2) contrast(1.05); border: 1px solid #26262e; }
.post-card .wp-block-post-title a { color: #f4f4f7; }
.post-card .wp-block-post-title a:hover { color: #ff2a2f; }
.single-post .wp-block-post-content a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }
.wp-block-button__link, .is-link-card h3 a, .is-link-card h2 a { text-decoration: none !important; }
.single-post .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--x-large); margin-block-start: 2.25rem; }
.single-post .wp-block-post-content h3 { font-size: var(--wp--preset--font-size--large); margin-block-start: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid #1c1c22; }
.site-footer a { color: #a9a9b6; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-heading { color: #f4f4f7; font-family: 'JetBrains Mono', monospace; font-size: .75rem !important; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .wp-block-navigation { font-size: var(--wp--preset--font-size--small); }
.site-footer .big-phone a { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.03em; color: #ff2a2f; text-shadow: 0 0 24px rgba(255,42,47,.4); }
.site-footer .wp-block-separator { border-color: #1f1f26 !important; margin-block: var(--wp--preset--spacing--50); }

@media (max-width: 781px) {
	.wp-block-buttons > .wp-block-button { flex: 1 1 auto; }
	.wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; }
	.is-style-panel-glass { border-radius: 20px !important; }
}

/* ---------------- Motion ---------------- */
.motion :is(.wp-block-post-content, main) > .wp-block-group > :not(.wp-block-columns):not(.is-layout-grid):not(.wp-block-post-content):not(.fx-canvas):not(.is-in),
.motion :is(.wp-block-post-content, main) > .wp-block-group > :is(.wp-block-columns, .is-layout-grid) > :not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); }
.motion .is-in { opacity: 1; transform: none; filter: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), filter .8s ease var(--d, 0ms); }
.motion .is-in.is-link-card { transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), filter .8s ease var(--d, 0ms), transform .3s ease, border-color .3s ease; }

@media (prefers-reduced-motion: no-preference) {
	.ticker-on p.is-style-ticker .ticker-move { display: inline-block; animation: humpf-ticker var(--ticker-dur, 40s) linear infinite; }
	p.is-style-ticker:hover .ticker-move { animation-play-state: paused; }
	@keyframes humpf-ticker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
	.core-ring.r1 { animation: humpf-spin 18s linear infinite; }
	.core-ring.r2 { animation: humpf-spin 11s linear infinite reverse; }
	.core-ring.r3 { animation: humpf-spin 26s linear infinite; }
	.core-ring.r4 { animation: humpf-spin 7s linear infinite reverse; }
	@keyframes humpf-spin { to { transform: rotate(360deg); } }
	p.is-style-ai-core::before { animation: humpf-pulse 2.6s ease-in-out infinite; }
	@keyframes humpf-pulse { 50% { transform: scale(1.18); opacity: .75; } }
	p.is-style-sticker::before { animation: humpf-ping 1.8s ease-out infinite; }
	@keyframes humpf-ping { 0% { box-shadow: 0 0 0 0 rgba(255,42,47,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,42,47,0); } }
	.is-style-section-red::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.06), transparent); animation: humpf-scan 6s linear infinite; }
	@keyframes humpf-scan { to { top: 100%; } }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .motion * { opacity: 1 !important; transform: none !important; filter: none !important; } .wp-site-blocks > header.wp-block-template-part { position: static; } body::after { display: none; } }
.is-style-card h2, .is-style-card-red h2 { font-size: var(--wp--preset--font-size--x-large); }

/* ---------------- Demo widgets ---------------- */
.fx-house, .fx-network, .fx-pipeline { background: #08080b; border: 1px solid #23232b; border-radius: 20px; padding: 1rem; position: relative; }
.fx-house svg, .fx-network svg, .fx-pipeline svg { width: 100%; height: auto; display: block; overflow: visible; }
.widget-log { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: #b9b9c6; margin: .75rem 0 0 !important; min-height: 1.4em; }
.widget-log .tag { color: #ff2a2f; text-transform: uppercase; letter-spacing: .12em; margin-right: .35rem; }
/* house */
.fx-house .room-box { fill: rgba(255,255,255,.015); stroke: #2a2a33; stroke-width: 1.5; }
.fx-house .walls { fill: none; stroke: #4a4a55; stroke-width: 3; }
.fx-house .lamp { opacity: 0; transition: opacity .9s ease; }
.fx-house .bulb { fill: #3a3a44; transition: fill .4s ease; }
.fx-house .room.on .bulb { fill: #ff8a8d; }
.fx-house .rlabel { font: 500 10px 'JetBrains Mono', monospace; fill: #6f6f7c; letter-spacing: .12em; }
.fx-house .tv rect { fill: #1d1d24; transition: fill .5s ease; }
.fx-house.tv-on .tv rect { fill: #6ab0ff; }
.fx-house .blinds line { stroke: #4a4a55; stroke-width: 2; transition: stroke .5s ease; }
.fx-house.blinds-down .blinds line { stroke: #ff6a3d; }
.fx-house .lock rect { fill: #15151b; stroke: #3ddc84; stroke-width: 1.5; transition: stroke .4s ease; }
.fx-house .shackle { stroke: #3ddc84; stroke-width: 2.5; transition: transform .45s ease, stroke .4s ease; }
.fx-house.unlocked .shackle { transform: translate(8px, -3px); stroke: #ffb020; }
.fx-house.unlocked .lock rect { stroke: #ffb020; }
.fx-house .state { font: 600 10px 'JetBrains Mono', monospace; fill: #3ddc84; letter-spacing: .1em; }
.fx-house.unlocked .state { fill: #ffb020; }
.fx-house .cam circle:first-child { fill: #2a2a33; transition: fill .4s ease; }
.fx-house.cams-armed .cam circle:first-child { fill: #ff2a2f; }
.fx-house .cam .ring { fill: none; stroke: #ff2a2f; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx-house .thermo rect { fill: #111116; stroke: #2a2a33; }
.fx-house .temp { font: 600 16px 'Space Grotesk', sans-serif; fill: #fff; text-anchor: middle; }
.scene-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.scene-btns button { font: 500 .74rem 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #d6d6df; background: rgba(255,255,255,.04); border: 1px solid #2a2a33; border-radius: 999px; padding: .5rem .8rem; cursor: pointer; transition: all .25s ease; }
.scene-btns button:hover { border-color: #ff2a2f; color: #fff; }
.scene-btns button.active { background: #ff2a2f; color: #fff; border-color: #ff2a2f; box-shadow: 0 0 22px rgba(255,42,47,.45); }
/* network */
.fx-network .link { stroke: #26262e; stroke-width: 1.2; transition: stroke .5s ease; }
.fx-network .link.ok { stroke: rgba(61,220,132,.35); }
.fx-network .link.hot { stroke: #ff2a2f; }
.fx-network .dev rect { fill: #111116; stroke: #2a2a33; stroke-width: 1.2; transition: stroke .35s ease, fill .35s ease; }
.fx-network .dev.ok rect { stroke: rgba(61,220,132,.65); }
.fx-network .dev.checking rect { stroke: #ff2a2f; fill: #1a0d0f; }
.fx-network .dev.blocked rect { stroke: #ff2a2f; fill: rgba(255,42,47,.22); }
.fx-network .dlabel { font: 600 9px 'JetBrains Mono', monospace; fill: #d6d6df; text-anchor: middle; letter-spacing: .08em; }
.fx-network .dot { fill: #4a4a55; transition: fill .3s ease; }
.fx-network .dev.ok .dot { fill: #3ddc84; }
.fx-network .dev.checking .dot, .fx-network .dev.blocked .dot { fill: #ff2a2f; }
.fx-network .hub-ring { fill: none; stroke: rgba(255,42,47,.55); stroke-dasharray: 4 6; transform-box: fill-box; transform-origin: center; }
.fx-network .hub-core { fill: #1a0a0c; stroke: #ff2a2f; stroke-width: 1.5; }
.fx-network .hlabel { font: 600 8.5px 'JetBrains Mono', monospace; fill: #fff; text-anchor: middle; letter-spacing: .15em; }
.fx-network .packets circle, .fx-pipeline .tokens circle { fill: #ff5a5e; }
/* pipeline */
.fx-pipeline .track { stroke: #26262e; stroke-width: 2; }
.fx-pipeline .track-glow { stroke: #ff2a2f; stroke-width: 2; stroke-dasharray: 6 10; opacity: .5; }
.fx-pipeline .st-ring { fill: none; stroke: #2a2a33; stroke-width: 1.5; }
.fx-pipeline .st-core { fill: #111116; stroke: #3a3a44; stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease; }
.fx-pipeline .stage.flash .st-core { stroke: #ff2a2f; fill: rgba(255,42,47,.2); }
.fx-pipeline .stage.human .st-ring { stroke: #ffb020; stroke-dasharray: 3 4; }
.fx-pipeline .stage.human.flash .st-core { stroke: #ffb020; fill: rgba(255,176,32,.2); }
.fx-pipeline .slabel { font: 600 9.5px 'JetBrains Mono', monospace; fill: #9b9ba8; text-anchor: middle; letter-spacing: .12em; }
.fx-pipeline .stage.human .slabel { fill: #ffb020; }
.fx-pipeline .scount { font: 600 13px 'Space Grotesk', sans-serif; fill: #fff; text-anchor: middle; }

/* ---------------- Global motion extras ---------------- */
.scroll-progress { position: fixed; left: 0; top: var(--wp-admin--admin-bar--height, 0px); height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #b30f16, #ff2a2f, #ff6a3d); z-index: 200; box-shadow: 0 0 10px rgba(255,42,47,.7); pointer-events: none; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(255,42,47,.075), transparent 62%); transform: translate3d(-9999px, -9999px, 0); transition: opacity .4s ease; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform .85s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 55ms); }
.split.split-in .w > span { transform: none; }
.steps-grid { position: relative; }
.steps-grid::before, .steps-grid::after { content: ""; position: absolute; left: 0; right: 0; top: .9rem; height: 1px; background: #26262e; }
.steps-grid::after { background: linear-gradient(90deg, #ff2a2f, #ff6a3d); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); box-shadow: 0 0 10px rgba(255,42,47,.8); }
.steps-grid .num { position: relative; z-index: 1; background: #060608; }
.is-style-section-carbon .steps-grid .num { background: #0d0d11; }
@media (max-width: 781px) { .steps-grid::before, .steps-grid::after { display: none; } }
@media (prefers-reduced-motion: no-preference) {
	.fx-house.cams-armed .cam .ring { animation: humpf-camping 1.6s ease-out infinite; }
	@keyframes humpf-camping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
	.fx-network .hub-ring { animation: humpf-spin 14s linear infinite; }
	.fx-pipeline .track-glow { animation: humpf-dash 1.1s linear infinite; }
	@keyframes humpf-dash { to { stroke-dashoffset: -16; } }
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------------- Smart home cutaway (fx-home3) ---------------- */
.fx-home3 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; background: #08080b; border: 1px solid #23232b; border-radius: 22px; padding: 1rem; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,42,47,.08); }
.home3-stage { border-radius: 14px; overflow: hidden; border: 1px solid #1f1f27; background: #050509; }
.home3-svg { width: 100%; height: auto; display: block; }
.fx-home3 .sky { opacity: 0; transition: opacity 1.4s ease; }
.fx-home3[data-scene="morning"] .sky-m, .fx-home3[data-scene="away"] .sky-d, .fx-home3[data-scene="arrive"] .sky-k { opacity: 1; }
.fx-home3 .stars { fill: #fff; opacity: 0; transition: opacity 1.4s ease; }
.fx-home3[data-scene="movie"] .stars, .fx-home3[data-scene="goodnight"] .stars { opacity: .85; }
.fx-home3 .sun { opacity: 0; transform: translateY(70px); transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.fx-home3[data-scene="morning"] .sun { opacity: 1; transform: translateY(18px); }
.fx-home3[data-scene="away"] .sun { opacity: .9; transform: translateY(-30px); }
.fx-home3[data-scene="arrive"] .sun { opacity: .7; transform: translateY(90px); }
.fx-home3 .moon { opacity: 0; transition: opacity 1.4s ease; }
.fx-home3[data-scene="movie"] .moon, .fx-home3[data-scene="goodnight"] .moon { opacity: 1; }
.fx-home3 .ground { fill: #09090d; }
.fx-home3 .drive { fill: #121218; }
.fx-home3 .car { transition: transform 1.8s cubic-bezier(.45,.05,.25,1); }
.fx-home3[data-scene="away"] .car { transform: translateX(190px); }
.fx-home3 .car-body { fill: #17171f; stroke: #ff2a2f; stroke-width: 1.4; }
.fx-home3 .car-cab { fill: #121219; stroke: #ff2a2f; stroke-width: 1.2; }
.fx-home3 .wheel { fill: #050508; stroke: #3a3a46; stroke-width: 2; }
.fx-home3 .headlight { fill: #444; }
.fx-home3 .beam { fill: #ffe7b8; opacity: 0; transition: opacity .6s ease; }
.fx-home3[data-scene="arrive"] .headlight { fill: #ffe7b8; }
.fx-home3[data-scene="arrive"] .beam { opacity: .18; }
.fx-home3 .room-bg { fill: #0f0f15; }
.fx-home3 .win { fill: #18182a; stroke: #2a2a36; stroke-width: 1.2; }
.fx-home3 .win-lit { fill: #ffcf8a; opacity: calc(var(--lv, 0) * .55); transition: opacity .9s ease; }
.fx-home3 .cone { fill: url(#coneG); opacity: var(--lv, 0); transition: opacity .9s ease; }
.fx-home3 .lamp-fix { fill: #2a2a34; transition: fill .6s ease; }
.fx-home3 .room.on .lamp-fix { fill: #ffd9a8; }
.fx-home3 .blind { fill: #23232e; stroke: #3a3a48; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(.08); transition: transform 1.1s ease; }
.fx-home3[data-scene="movie"] .blind, .fx-home3[data-scene="goodnight"] .blind { transform: scaleY(1); }
.fx-home3 .rlabel { font: 500 8.5px 'JetBrains Mono', monospace; fill: #5e5e6c; letter-spacing: .14em; }
.fx-home3 .furn rect { fill: #1b1b24; stroke: #2c2c38; stroke-width: 1; }
.fx-home3 .monitor { fill: #1b1b24; stroke: #2c2c38; transition: fill .6s ease; }
.fx-home3[data-scene="morning"] .monitor { fill: #3a2e4a; }
.fx-home3 .tv { fill: #111117; stroke: #2c2c38; }
.fx-home3 .tv-screen { fill: #5fa8ff; opacity: 0; transition: opacity .6s ease; }
.fx-home3[data-scene="movie"] .tv-screen { opacity: .85; }
.fx-home3 .thermo circle { fill: #111117; stroke: #ff2a2f; stroke-width: 1.4; }
.fx-home3 .temp { font: 600 8.5px 'Space Grotesk', sans-serif; fill: #fff; text-anchor: middle; }
.fx-home3 .mesh circle { fill: #ff2a2f; }
.fx-home3 .mesh .ripple { fill: none; stroke: #ff2a2f; stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.fx-home3 .roof { fill: #0c0c12; stroke: #ff2a2f; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,42,47,.65)); }
.fx-home3 .shell { fill: none; stroke: #ff2a2f; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255,42,47,.65)); }
.fx-home3 .floorline { stroke: #2b2b36; stroke-width: 4; }
.fx-home3 .iwall { stroke: #2b2b36; stroke-width: 3; }
.fx-home3 .door { fill: #16161e; stroke: #3a3a48; }
.fx-home3 .knob { fill: #ff2a2f; }
.fx-home3 .porch-glow { opacity: 0; transition: opacity .8s ease; }
.fx-home3 .porch-bulb { fill: #333; transition: fill .6s ease; }
.fx-home3[data-scene="arrive"] .porch-glow, .fx-home3[data-scene="goodnight"] .porch-glow { opacity: 1; }
.fx-home3[data-scene="arrive"] .porch-bulb, .fx-home3[data-scene="goodnight"] .porch-bulb { fill: #ffd9a8; }
.fx-home3 .lockbadge rect { fill: #0f1a13; stroke: #3ddc84; stroke-width: 1.4; transition: stroke .4s ease; }
.fx-home3 .lockbadge .shackle { fill: none; stroke: #3ddc84; stroke-width: 1.6; transition: transform .45s ease, stroke .4s ease; }
.fx-home3[data-scene="arrive"] .lockbadge rect { stroke: #ffb020; }
.fx-home3[data-scene="arrive"] .lockbadge .shackle { stroke: #ffb020; transform: translate(4px, -2px); }
.fx-home3 .cam-body { fill: #1c1c24; stroke: #555; transition: stroke .4s ease; }
.fx-home3 .cam-cone { opacity: 0; transition: opacity .6s ease; transform-box: view-box; transform-origin: 0 0; }
.fx-home3[data-scene="away"] .cam-cone, .fx-home3[data-scene="goodnight"] .cam-cone { opacity: 1; }
.fx-home3[data-scene="away"] .cam-body, .fx-home3[data-scene="goodnight"] .cam-body { stroke: #ff2a2f; }
/* panel */
.home-panel { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.hp-head { display: flex; align-items: baseline; gap: .5rem; font-family: 'Space Grotesk', sans-serif; color: #fff; border-bottom: 1px solid #1f1f27; padding-bottom: .6rem; }
.hp-time { font-size: 2.1rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.hp-ampm { font: 500 .75rem 'JetBrains Mono', monospace; color: #8e8e9b; }
.hp-scene { margin-left: auto; font: 500 .72rem 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #ff2a2f; }
.hp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hp-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; border: 1px solid #23232b; background: rgba(255,255,255,.025); transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease; }
.hp-svg { grid-row: 1 / 3; width: 22px; height: 22px; fill: none; stroke: #6f6f7c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s ease; }
.hp-name { font: 500 .68rem 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #8e8e9b; }
.hp-val { font: 600 .95rem 'Space Grotesk', sans-serif; color: #f4f4f7; }
.hp-tile.on { border-color: rgba(255,42,47,.5); background: rgba(255,42,47,.08); }
.hp-tile.on .hp-svg { stroke: #ff2a2f; }
.hp-tile.safe .hp-svg { stroke: #3ddc84; }
.hp-tile.ping { box-shadow: 0 0 0 1px rgba(255,42,47,.6), 0 0 24px rgba(255,42,47,.35); }
.fx-home3 .scene-btns { margin-top: 0; }
.fx-home3 .widget-log { margin-top: auto !important; }
@media (max-width: 900px) { .fx-home3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
	.fx-home3 .mesh .ripple { animation: humpf-ripple 2.4s ease-out infinite; }
	.fx-home3 .mesh .ripple.r2 { animation-delay: 1.2s; }
	@keyframes humpf-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(6); opacity: 0; } }
	.fx-home3[data-scene="away"] .cam-r .cam-cone, .fx-home3[data-scene="goodnight"] .cam-r .cam-cone { animation: humpf-sweep 4s ease-in-out infinite alternate; }
	.fx-home3[data-scene="away"] .cam-l .cam-cone, .fx-home3[data-scene="goodnight"] .cam-l .cam-cone { animation: humpf-sweep 5s ease-in-out infinite alternate-reverse; }
	@keyframes humpf-sweep { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
	.fx-home3[data-scene="movie"] .tv-screen { animation: humpf-flicker 2.2s steps(6) infinite; }
	@keyframes humpf-flicker { 0% { opacity: .85; fill: #5fa8ff; } 30% { opacity: .65; fill: #9a7bff; } 55% { opacity: .9; fill: #5fd0ff; } 80% { opacity: .7; fill: #ff8ab0; } 100% { opacity: .85; fill: #5fa8ff; } }
	.fx-home3 .stars circle:nth-child(3n) { animation: humpf-twinkle 3s ease-in-out infinite; }
	@keyframes humpf-twinkle { 50% { opacity: .2; } }
}

/* Card icons (add class ic-* to a card) */
.is-style-card[class*=" ic-"] > h3::before { content: ""; display: block; width: 34px; height: 34px; margin-bottom: .8rem; border-radius: 10px; border: 1px solid rgba(255,42,47,.35); background: rgba(255,42,47,.08) center / 20px no-repeat; }
.is-style-card.ic-bulb > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.is-style-card.ic-cam > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='13' height='10' rx='2'/%3E%3Cpath d='M16 11l5-3v8l-5-3'/%3E%3C/svg%3E"); }
.is-style-card.ic-temp > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14.8V5a2 2 0 0 0-4 0v9.8a4 4 0 1 0 4 0z'/%3E%3C/svg%3E"); }
.is-style-card.ic-lock > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.is-style-card.ic-voice > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.is-style-card.ic-routine > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8M21 3v5h-5M12 7v5l3 2'/%3E%3C/svg%3E"); }
.is-style-card.ic-shield > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.is-style-card.ic-wifi > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0'/%3E%3Ccircle cx='12' cy='19.5' r='1'/%3E%3C/svg%3E"); }
.is-style-card[class*=" ic-"] > .num { display: none; }
