/* CORESPEX v2 motion layer (SER-570). Loaded after theme.css. Presentation only: no content lives here.
   Rules: native scroll (no scroll-jacking), nothing is hidden without JS, everything is gated by prefers-reduced-motion,
   only transform/opacity/clip-path are animated. Original CSS/WAAPI/IntersectionObserver code; no third-party code. */
:root {
	--cx-ease: cubic-bezier(.2, .7, .2, 1);
	--cx-v2-line: linear-gradient(90deg, var(--cx-yellow), rgba(255, 219, 21, 0));
}

/* ---------- Scroll colour transitions (static; no JS) ---------- */
.cx-about, .cx-why, .cx-applications { background-image: linear-gradient(180deg, var(--cx-ink) 0, rgba(11, 11, 10, 0) 220px); background-repeat: no-repeat; }
.cx-products, .cx-engineering, .cx-contact, .cx-explainer { background-image: linear-gradient(180deg, var(--cx-graphite) 0, rgba(26, 26, 24, 0) 220px); background-repeat: no-repeat; }
.cx-explainer { background-color: var(--cx-ink); }
.cx-section + .cx-section { border-top-color: transparent; }
.cx-section:not(.cx-hero):not(.cx-statement)::after {
	content: ''; position: absolute; top: 0; left: clamp(1.25rem, 4vw, 3rem); height: 2px; width: min(220px, 40%);
	background: var(--cx-v2-line); transform-origin: left; transition: transform .7s var(--cx-ease);
}
.cx-v2-js .cx-section:not(.cx-hero):not(.cx-statement):not(.is-in)::after { transform: scaleX(0); }

/* ---------- Hero ---------- */
.cx-hero-cols { position: relative; z-index: 1; }
.cx-scroll { z-index: 1; }
/* r10 H2: max-width/margin:0 stop the constrained-layout 1380px cap on hero children, so the CSS rest (74%/42%) and the JS rest use the same box (full hero width). */
/* r9 H1: the light is faded to transparent toward every hero edge by a mask (no rectangular cut), and the gradient itself ends before its box does. */
.cx-v2-glow { position: absolute; inset: 0; width: auto; max-width: none; margin: 0; z-index: 0; pointer-events: none; overflow: hidden;
	background: radial-gradient(480px circle at var(--mx, 74%) var(--my, 42%), rgba(255, 219, 21, .14), rgba(255, 219, 21, .05) 40%, rgba(255, 219, 21, 0) 70%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
	mask-composite: intersect; }
.cx-v2-glow::after { content: ''; position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; opacity: 0;
	background: linear-gradient(90deg, rgba(255, 219, 21, 0), rgba(255, 219, 21, .1), rgba(255, 219, 21, 0)); }
.cx-hero h1 { letter-spacing: -.005em; }
.cx-hero h1 em, .cx-hero h1 mark { color: var(--cx-yellow); background: none; font-style: normal; }
.cx-hero .cx-reveal { transition: none; }
@media (prefers-reduced-motion: no-preference) {
	/* Choreography ~1s: headline in 2 groups (h1, sub+lead), product unmasked first. CTA buttons are never animated: visible from first paint. */
	.cx-hero .cx-eyebrow { animation: cx-v2-rise .5s 0s var(--cx-ease) both; }
	.cx-hero h1 { animation: cx-v2-mask .7s .05s var(--cx-ease) both; }
	.cx-hero .cx-hero-sub { animation: cx-v2-rise .6s .3s var(--cx-ease) both; }
	.cx-hero .cx-lead { animation: cx-v2-rise .6s .38s var(--cx-ease) both; }
	.cx-hero .cx-scroll { animation: cx-v2-fade .6s .9s both; }
	.cx-hero-stage::before { animation: cx-v2-ring .8s .1s var(--cx-ease) both; }
	.cx-hero-stage::after { animation: cx-v2-ring .8s .25s var(--cx-ease) both; }
	.cx-stage-1 { animation: cx-v2-unmask .8s .1s var(--cx-ease) both; }
	.cx-stage-3 { animation: cx-v2-unmask .8s .25s var(--cx-ease) both; }
	.cx-stage-2 { animation: cx-v2-unmask .8s .4s var(--cx-ease) both; }
	.cx-v2-glow { animation: cx-v2-fade 1s .1s both; }
	.cx-v2-glow::after { animation: cx-v2-sweep 1.4s .5s ease-in-out 1 both; }
	.cx-stage-1 { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); }
	.cx-stage-2 { translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 16px); }
	.cx-stage-3 { translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * 12px); }
}
@keyframes cx-v2-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes cx-v2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cx-v2-mask { from { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(.35em); } to { opacity: 1; clip-path: inset(-10% -5% -10% -5%); transform: none; } }
@keyframes cx-v2-unmask { from { clip-path: inset(0 0 100% 0); opacity: .01; } to { clip-path: inset(-25% -25% -35% -25%); opacity: 1; } }
@keyframes cx-v2-ring { from { opacity: 0; scale: .72; } to { opacity: 1; scale: 1; } }
@keyframes cx-v2-sweep { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(480%); } }
/* stage-3 keeps its own opacity from theme.css after the entrance */
.cx-stage-3 { opacity: 1; }

/* ---------- Progressive reveal: headings mask, cards stagger ---------- */
/* NB: the hidden clip must keep >8% visible area, otherwise IntersectionObserver (threshold .08) never fires for a clipped target; opacity:0 hides it anyway. */
.cx-js-reveal h2.cx-reveal, .cx-js-reveal h3.cx-reveal { clip-path: inset(0 0 50% 0); transition: opacity .55s ease, transform .6s var(--cx-ease), clip-path .6s var(--cx-ease); }
.cx-js-reveal h2.cx-reveal.is-visible, .cx-js-reveal h3.cx-reveal.is-visible { clip-path: inset(-10% -5% -10% -5%); }
.cx-js-reveal .cx-hero .cx-reveal { clip-path: none; }
/* R3 (round 3): hero content never waits for scroll; the generic reveal (opacity 0) must not hide it, e.g. CTAs below the fold at 1280x720. */
.cx-js-reveal .cx-hero .cx-reveal { opacity: 1; transform: none; }
.cx-v2-js .cx-v2-hide { opacity: 0; transform: translateY(28px) scale(.985); }
.cx-v2-js .cx-v2-hide { transition: opacity .5s ease calc(var(--i, 0) * 70ms), transform .6s var(--cx-ease) calc(var(--i, 0) * 70ms), border-color .25s, background .3s; }
.cx-v2-js .cx-v2-hide.is-in { opacity: 1; transform: none; }
.cx-v2-js .cx-card.cx-v2-hide.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Processes: axis of stages + smooth panel switch ---------- */
.cx-selector .cx-selector__tabs { counter-reset: cxst; display: none; gap: 0; border-top: 1px solid var(--cx-line); margin-bottom: 1.75rem; }
.cx-selector.is-ready .cx-selector__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cx-selector .cx-selector__tab { position: relative; text-align: left; border: 0; border-top: 3px solid transparent; margin-top: -2px; background: transparent; color: var(--wp--preset--color--steel-light); padding: 1.35rem 1rem .9rem 0; line-height: 1.25; transition: color .25s, border-color .35s; }
.cx-selector .cx-selector__tab::before { counter-increment: cxst; content: counter(cxst, decimal-leading-zero); display: block; font-family: var(--cx-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; color: rgba(255, 219, 21, .55); margin-bottom: .2rem; transition: color .25s; }
.cx-selector .cx-selector__tab::after { content: ''; position: absolute; left: 0; top: -8px; width: 13px; height: 13px; border-radius: 50%; background: var(--cx-ink); border: 2px solid var(--cx-line); transition: background .3s, border-color .3s, box-shadow .3s; }
.cx-selector .cx-selector__tab:hover { color: var(--wp--preset--color--white); border-color: var(--cx-line); background: transparent; }
.cx-selector .cx-selector__tab[aria-selected="true"] { background: transparent; color: var(--wp--preset--color--white); border-top-color: var(--cx-yellow); }
.cx-selector .cx-selector__tab[aria-selected="true"]::before { color: var(--cx-yellow); }
.cx-selector .cx-selector__tab[aria-selected="true"]::after { background: var(--cx-yellow); border-color: var(--cx-yellow); box-shadow: 0 0 0 5px rgba(255, 219, 21, .18); }
@media (max-width: 599px) { .cx-selector.is-ready .cx-selector__tabs { grid-template-columns: 1fr 1fr; row-gap: .5rem; } .cx-selector .cx-selector__tab { padding-top: 1.15rem; } }
@media (prefers-reduced-motion: no-preference) {
	.cx-selector.is-ready .cx-selector__panel:not([hidden]) { animation: cx-v2-panel .6s var(--cx-ease) both; }
}
@keyframes cx-v2-panel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Products: hover/focus, CTA ---------- */
.cx-tile:focus-within { border-color: var(--cx-yellow); }
.cx-tile:focus-within img { transform: scale(1.05); }
.cx-showcase:focus-within .cx-show-a { transform: translate(-1%, -1%) scale(1.02); }
.cx-product .wp-block-button:not(.is-style-outline) .wp-block-button__link, .cx-explainer .wp-block-button__link, .cx-footer-cta .wp-block-button__link { display: inline-flex; align-items: center; gap: .65rem; }
.cx-product .wp-block-button__link::after, .cx-explainer .wp-block-button__link::after, .cx-footer-cta .wp-block-button__link::after { content: '\2192'; transition: transform .25s var(--cx-ease); }
.cx-product .wp-block-button__link:hover::after, .cx-product .wp-block-button__link:focus-visible::after, .cx-explainer .wp-block-button__link:hover::after, .cx-explainer .wp-block-button__link:focus-visible::after, .cx-footer-cta .wp-block-button__link:hover::after, .cx-footer-cta .wp-block-button__link:focus-visible::after { transform: translateX(5px); }
.cx-spec tbody tr:focus-within { background: rgba(255, 219, 21, .07); }

/* ---------- Explainer (SER-451 material; SER-679 hotspots) ---------- */
.cx-bush { position: relative; margin: 0; border: 1px solid var(--cx-line); background: radial-gradient(circle at 50% 38%, var(--cx-charcoal) 0, var(--cx-graphite) 62%); padding: clamp(.75rem, 2vw, 1.5rem); }
.cx-bush::before, .cx-bush::after { content: ''; position: absolute; width: 38px; height: 38px; border: 3px solid var(--cx-yellow); pointer-events: none; }
.cx-bush::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.cx-bush::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.cx-bush-img { position: relative; margin: 0 auto; width: min(100%, 560px); aspect-ratio: 1; }
.cx-bush-img img { display: block; width: 100%; height: auto; }
.cx-bush-feats { margin: 1rem 0 0; padding-left: 1.5rem; display: grid; gap: .6rem; color: var(--wp--preset--color--steel-light); }
.cx-bush-feats strong { color: var(--wp--preset--color--white, #fff); }
.cx-bush-on .cx-bush-feats { display: none; }
.cx-bush-hl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cx-bush-hl g { opacity: 0; fill: rgba(255, 219, 21, .16); stroke: var(--cx-yellow); stroke-width: 7; transition: opacity .25s ease; }
.cx-bush-hl g.is-on { opacity: 1; }
.cx-bush-hl .cx-bush-band { fill: none; stroke: rgba(255, 219, 21, .55); stroke-width: 84; stroke-linecap: round; }
.cx-bush-pt { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border-radius: 50%; border: 2px solid var(--cx-yellow); background: rgba(11, 11, 10, .82); color: var(--cx-yellow); font-family: var(--cx-display); font-weight: 700; font-size: 1.375rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255, 219, 21, .18), 0 4px 14px rgba(0, 0, 0, .5); transition: transform .2s var(--cx-ease), background .2s, color .2s, box-shadow .2s; }
.cx-bush-pt:hover, .cx-bush-pt:focus-visible { background: rgba(255, 219, 21, .95); color: var(--cx-ink); transform: scale(1.12); box-shadow: 0 0 0 8px rgba(255, 219, 21, .28), 0 4px 14px rgba(0, 0, 0, .5); }
.cx-bush-pt:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cx-bush-pt.is-active { background: var(--cx-yellow); color: var(--cx-ink); box-shadow: 0 0 0 8px rgba(255, 219, 21, .3), 0 4px 14px rgba(0, 0, 0, .5); }
.cx-bush-pt.is-active:hover { transform: scale(1.12); }
.cx-bush-panel { margin-top: 1rem; padding: .9rem 1.1rem; min-height: 6.5rem; border: 1px solid var(--cx-line); border-left: 3px solid var(--cx-yellow); background: var(--cx-ink); text-align: left; }
.cx-bush-panel p { margin: 0; }
.cx-bush-hint { color: var(--wp--preset--color--steel-light); }
.cx-bush-view-title { display: flex; align-items: center; gap: .6rem; font-family: var(--cx-display); font-weight: 600; font-size: 1.375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--white, #fff); }
.cx-bush-view-title span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--cx-yellow); color: var(--cx-ink); font-size: 1.1rem; }
.cx-bush-view-text { margin-top: .4rem !important; color: var(--wp--preset--color--steel-light); font-size: 1.0625rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .cx-bush-view:not([hidden]) { animation: cx-bush-in .3s var(--cx-ease); } }
@keyframes cx-bush-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .cx-bush-pt, .cx-bush-hl g { transition: none; } .cx-bush-pt:hover, .cx-bush-pt:focus-visible, .cx-bush-pt.is-active:hover { transform: none; } }
.cx-explainer-cols { gap: clamp(1.5rem, 4vw, 4rem); margin-top: 1rem; }
.cx-explainer-video { position: relative; margin: 0; border: 1px solid var(--cx-line); background: #000; }
.cx-explainer-video::before, .cx-explainer-video::after { content: ''; position: absolute; width: 38px; height: 38px; border: 3px solid var(--cx-yellow); pointer-events: none; z-index: 2; }
.cx-explainer-video::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.cx-explainer-video::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.cx-explainer-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.cx-explainer-video figcaption { margin: 0; padding: .75rem 1rem; font-size: .875rem; color: var(--wp--preset--color--steel-light); border-top: 1px solid var(--cx-line); background: var(--cx-graphite); text-align: left; }
.cx-v2-play { position: absolute; left: 50%; top: calc(50% - 1.2rem); translate: -50% -50%; z-index: 3; width: 5rem; height: 5rem; border-radius: 50%; border: 2px solid var(--cx-yellow); background: rgba(11, 11, 10, .72); color: var(--cx-yellow); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--cx-ease), background .25s, color .25s; }
.cx-v2-play::before { content: ''; margin-left: .3rem; border-left: 1.4rem solid currentColor; border-top: .9rem solid transparent; border-bottom: .9rem solid transparent; }
.cx-v2-play:hover, .cx-v2-play:focus-visible { background: var(--cx-yellow); color: var(--cx-ink); transform: scale(1.08); }
.cx-explainer-video.is-playing .cx-v2-play { display: none; }

/* ---------- Footer polish ---------- */
.cx-footer-bar { position: relative; background-image: linear-gradient(180deg, rgba(255, 219, 21, .08), rgba(255, 219, 21, 0) 140px); }
.cx-footer-bar::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--cx-yellow) 0 22%, rgba(255, 219, 21, 0) 60%); }
.cx-footer-cta { margin-top: 1.25rem; }
.cx-footer-list a { display: inline-block; transition: color .2s, transform .25s var(--cx-ease); }
.cx-footer-list a:hover, .cx-footer-list a:focus-visible { transform: translateX(4px); }
.cx-footer-bar a:focus-visible { outline-offset: 3px; }
.cx-footer-note { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

@media (max-width: 781px) { .cx-explainer-cols { gap: 1.25rem; } .cx-v2-play { width: 4rem; height: 4rem; } .cx-v2-play::before { border-left-width: 1.1rem; border-top-width: .7rem; border-bottom-width: .7rem; } }

/* ---------- Reduced motion: everything static and visible ---------- */
@media (prefers-reduced-motion: reduce) {
	.cx-v2-glow { display: none; }
	.cx-js-reveal h2.cx-reveal, .cx-js-reveal h3.cx-reveal { clip-path: none; }
	.cx-v2-js .cx-v2-hide { opacity: 1; transform: none; transition: none; }
	.cx-section::after { transition: none; }
}
.cx-footer-bar .cx-footer-cta .wp-block-button__link { color: var(--cx-ink); }
.cx-footer-bar .cx-footer-cta .wp-block-button__link:hover, .cx-footer-bar .cx-footer-cta .wp-block-button__link:focus-visible { color: var(--cx-ink); background: var(--wp--preset--color--white); }

/* ---------- Review round 1 (SER-570): R1 mobile hero, R2 product composition, R4 loops ---------- */
/* R2: one dominant photograph (long pin), pin 2 and bushing subordinate; silhouettes no longer cross. */
.cx-stage-1 { width: 80%; left: 12%; top: 0; transform: rotate(8deg); z-index: 1; }
.cx-stage-3 { width: 46%; left: 0; bottom: 4%; transform: rotate(-10deg); z-index: 0; }
.cx-stage-2 { width: 40%; right: -2%; bottom: 0; z-index: 2; }
/* R4: no perpetual hero loops. Entrance plays once and the composition then stays stable. */
.cx-stage-img img, .cx-stage-2 img, .cx-stage-3 img { animation: none !important; }
/* Remaining decorative loops (statement stripe, scroll cue) run only while visible and the tab is active (v2.js sets .cx-live). */
.cx-v2-js .cx-statement::before, .cx-v2-js .cx-scroll a::after { animation-play-state: paused; }
.cx-v2-js .cx-statement.cx-live::before, .cx-v2-js .cx-scroll.cx-live a::after { animation-play-state: running; }
/* R1: phones - product first, short hierarchy, CTA above the fold, no continuous loops. */
@media (max-width: 781px) {
	.cx-hero { padding-block: 1.25rem 2rem; }
	.cx-hero-cols { flex-direction: column !important; gap: 1rem; }
	.cx-hero-cols > .wp-block-column:last-child { order: -1; flex-basis: auto !important; width: 100%; }
	.cx-hero-cols > .wp-block-column:first-child { flex-basis: auto !important; width: 100%; display: flex; flex-direction: column; }
	.cx-hero-stage { max-width: 320px; aspect-ratio: 1 / .82; }
	.cx-hero .cx-eyebrow { order: 0; margin-bottom: .5rem; font-size: .75rem; }
	.cx-hero h1 { order: 1; font-size: clamp(2.1rem, 9.5vw, 3rem); margin-bottom: .6rem; }
	.cx-hero .cx-hero-sub { order: 2; margin-bottom: 1rem !important; font-size: 1.1rem !important; }
	.cx-hero .wp-block-buttons { order: 3; margin-top: 0; gap: .6rem; flex-wrap: nowrap; }
	.cx-hero .wp-block-buttons .wp-block-button__link { padding: .9rem 1rem; font-size: .8rem; white-space: nowrap; }
	.cx-hero .cx-lead { order: 4; margin-top: 1.25rem; font-size: 1rem; }
	.cx-statement::before { animation: none !important; }
}

/* r9: desktop hero proportions - less dead space; symmetric padding, capped height. Phones keep the R1 rules above. */
@media (min-width: 782px) {
	.cx-hero { min-height: clamp(480px, calc(100svh - var(--cx-header-h) - var(--wp-admin--admin-bar--height, 0px) - 3rem), 680px); padding-block: clamp(2rem, 4vw, 3.5rem); }
	.cx-hero-stage { max-width: 520px; }
}

/* SER-718: desktop (>=1100px) hero is ~1.30x taller than before (df78b82: 680px at 1440x900, 814px at 1880). Extra vertical padding only, so fonts, photos, columns and proportions stay as they were. Tablet/phone untouched. */
@media (min-width: 1100px) {
	.cx-hero { padding-block: calc(clamp(2rem, 4vw, 3.5rem) + clamp(100px, 6.5vw, 122px)); }
}

