
/* Soleil (TypeTogether) is the site typeface. It loads from your own Adobe Fonts web project or a
   TypeTogether webfont licence, linked in the page head. Figtree is only the stand-in used when
   Soleil is not available, as in these previews. */

/* ============================================================
   event.clinic website kit
   Colours, type, spacing, radii and shadows come from tokens.css.
   Motion values and gradients live here because tokens.json has
   no motion or gradient family.
   ============================================================ */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .3s;
  --dur-base: .5s;
  --dur-slow: .9s;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --g-signature: linear-gradient(115deg, var(--brand-500) 0%, var(--accent-400) 100%);
  --g-signature-light: linear-gradient(115deg, var(--brand-500) 0%, var(--accent-400) 100%);
  --g-night: linear-gradient(135deg, var(--night-800) 0%, var(--night-950) 100%);
  --g-main: linear-gradient(135deg, var(--brand-600) 0%, var(--night-950) 100%);
  --g-software: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  --g-support: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
  --g-admit: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  --focus: var(--brand-500);
}

/* ---------- Base ---------- */
.ecs, .ecs *, .ecs *::before, .ecs *::after { box-sizing: border-box; }
.ecs { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.55; color: var(--neutral-700); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.ecs) :where(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(.ecs) ul { padding: 0; list-style: none; }
:where(.ecs) a { color: inherit; text-decoration: none; }
:where(.ecs) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ecs :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ecs-dark { --focus: var(--white); color: var(--on-dark-med); }
.ecs-icon { font-family: var(--font-icon); font-weight: 300; font-size: 20px; line-height: 1; font-style: normal; letter-spacing: 0; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; user-select: none; }
.ecs-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.ecs-section { padding: var(--section-y) var(--gutter); position: relative; }
.ecs-ground-white { background: var(--white); }
.ecs-ground-cool { background: var(--neutral-50); }
.ecs-ground-night { background: var(--night-950); }
.ecs-h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.ecs-dark .ecs-h2 { color: var(--on-dark-high); }
.ecs-lead { font-size: 19px; line-height: 1.5; max-width: 640px; text-wrap: pretty; }
.ecs-eyebrow { font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ecs-grad { background: var(--g-signature-light); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; padding: 0 .06em .14em 0; }
.ecs-dark .ecs-grad { background-image: var(--g-signature); }
.ecs-wordmark { font-weight: 700; font-size: 21px; letter-spacing: -.035em; color: var(--ink); }
.ecs-dark .ecs-wordmark { color: var(--white); }

/* ---------- Scroll reveal ---------- */
.ecs-js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0s); animation: ecs-reveal-failsafe .6s ease-out 3s forwards; }
.ecs-js [data-reveal="scale"] { transform: scale(.96); }
.ecs-js [data-reveal="left"] { transform: translateX(-30px); }
.ecs-js [data-reveal="right"] { transform: translateX(30px); }
.ecs-js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes ecs-reveal-failsafe { to { opacity: 1; transform: none; } }

/* ---------- Button ---------- */
.ecs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-h); padding: 0 26px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 700; letter-spacing: -.005em; line-height: 1; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: translate var(--dur-base) var(--ease-out), scale var(--dur-base) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-base) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast); }
.ecs-btn .ecs-icon { font-size: 18px; transition: translate var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .ecs-btn:hover { translate: 0 -2px; scale: 1.02; }
  .ecs-btn:hover .ecs-icon { translate: 3px 0; }
}
.ecs-btn:active { translate: 0 0; scale: .98; }
.ecs-btn--light { background: var(--white); color: var(--night-950); box-shadow: var(--shadow-glow); }
.ecs-btn--light:hover { box-shadow: var(--shadow-glow-strong); }
.ecs-btn--dark { background: var(--night-950); color: var(--white); }
.ecs-btn--dark:hover { background: var(--night-800); box-shadow: var(--shadow-float); }
.ecs-btn--primary { background: var(--brand-600); color: var(--on-primary); box-shadow: var(--shadow-glow); }
.ecs-btn--primary:hover { background: var(--brand-700); box-shadow: var(--shadow-glow-strong); }
.ecs-btn--primary:active { background: var(--brand-800); }
.ecs-btn--outline { background: transparent; color: var(--ink); border-color: var(--neutral-250); }
.ecs-btn--outline:hover { background: var(--neutral-50); }
.ecs-dark .ecs-btn--outline { color: var(--white); border-color: var(--line-dark); }
.ecs-dark .ecs-btn--outline:hover { background: var(--line-dark); }
.ecs-btn--sm { height: var(--control-h-sm); padding: 0 18px; }
.ecs-btn--sm { font-size: 14.5px; }
.ecs-btn[disabled], .ecs-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.ecs-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-600); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size var(--dur-base) var(--ease-out); }
.ecs-link:hover { background-size: 100% 2px; }
.ecs-link .ecs-icon { font-size: 18px; transition: translate var(--dur-base) var(--ease-out); }
.ecs-link:hover .ecs-icon { translate: 3px 0; }
.ecs-dark .ecs-link { color: var(--accent-300); }

/* ---------- Chip, tag, badge, live, floating chip ---------- */
.ecs-chip { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h-sm); padding: 0 16px 0 12px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--neutral-200); color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(10,13,26,.05); cursor: pointer; transition: translate var(--dur-base) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-base) var(--ease-out); }
.ecs-chip .ecs-icon { color: var(--brand-600); transition: color var(--dur-fast); }
.ecs-chip:hover { translate: 0 -1px; box-shadow: var(--shadow-card); }
.ecs-chip.is-active, .ecs-chip[aria-pressed="true"], .ecs-chip[aria-selected="true"] { background: var(--brand-600); border-color: transparent; color: var(--on-primary); box-shadow: var(--shadow-glow); }
.ecs-chip.is-active .ecs-icon, .ecs-chip[aria-pressed="true"] .ecs-icon, .ecs-chip[aria-selected="true"] .ecs-icon { color: var(--on-primary); font-variation-settings: "FILL" 1; }
.ecs-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1; box-shadow: var(--shadow-card); white-space: nowrap; }
.ecs-tag .ecs-icon { font-size: 16px; color: var(--brand-600); font-variation-settings: "FILL" 1; }
.ecs-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--brand-100); color: var(--brand-700); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ecs-dark .ecs-badge { background: var(--white); color: var(--night-950); }
.ecs-live { display: inline-flex; align-items: center; gap: var(--space-2); height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); color: var(--on-dark-med); font-size: 12.5px; font-weight: 600; backdrop-filter: blur(10px); }
.ecs-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(27,201,187,.6); animation: ecs-pulse 2.2s ease infinite; }
@keyframes ecs-pulse { 70% { box-shadow: 0 0 0 10px rgba(27,201,187,0); } 100% { box-shadow: 0 0 0 0 rgba(27,201,187,0); } }
.ecs-float { display: inline-flex; align-items: center; gap: var(--space-3); padding: 10px 18px 10px 10px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-float); white-space: nowrap; animation: ecs-bob 5.5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.ecs-float__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--g-software); color: var(--on-primary); }
.ecs-float__icon--accent { background: var(--g-support); color: var(--on-accent); }
.ecs-float__icon .ecs-icon { font-variation-settings: "FILL" 1; }
.ecs-float__text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ecs-float__text span { font-size: 13px; line-height: 1.2; color: var(--neutral-700); }
.ecs-float__text strong { font-size: 14.5px; line-height: 1.2; color: var(--ink); font-weight: 700; }
@keyframes ecs-bob { to { translate: 0 -12px; } }

/* ---------- Product screen primitives (simplified UI) ---------- */
.ecs-sk { display: block; height: 8px; border-radius: var(--radius-sm); background: var(--neutral-100); }
.ecs-device { position: relative; width: 270px; aspect-ratio: 9 / 18.5; border-radius: var(--radius-device); border: 8px solid var(--night-950); background: var(--white); box-shadow: var(--shadow-float); overflow: hidden; }
.ecs-device::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 72px; height: 20px; border-radius: var(--radius-pill); background: var(--night-950); z-index: 3; }
.ecs-screen { position: absolute; inset: 0; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; translate: 0 12px; transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
.ecs-screen.is-on { opacity: 1; translate: 0 0; }
.ecs-screen__title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.ecs-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--neutral-200); background: var(--white); }
.ecs-row__av { width: 28px; height: 28px; border-radius: 50%; background: var(--neutral-100); flex: none; }
.ecs-row__lines { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ecs-row__lines strong { font-size: 12.5px; line-height: 1.2; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecs-row.is-proof { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.ecs-row.is-proof .ecs-row__av { background: var(--brand-600); }
.ecs-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); white-space: nowrap; }
.ecs-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Nav ---------- */
.ecs-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); transition: transform .6s var(--ease-out), background-color var(--dur-fast), backdrop-filter var(--dur-fast); }
.ecs-nav.is-hidden { transform: translateY(-100%); }
.ecs-nav.is-solid { background: rgba(10,13,26,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ecs-nav__links { display: flex; align-items: center; gap: var(--space-2); }
.ecs-nav__item { position: relative; }
.ecs-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 400; color: var(--on-dark-med); transition: color var(--dur-fast), background-color var(--dur-fast); }
.ecs-nav__link:hover, .ecs-nav__item.is-open .ecs-nav__link { color: var(--white); background: rgba(255,255,255,.08); }
.ecs-nav__link .ecs-icon { font-size: 18px; transition: rotate var(--dur-base) var(--ease-out); }
.ecs-nav__item.is-open .ecs-nav__link .ecs-icon { rotate: 180deg; }
.ecs-menu { position: absolute; top: calc(100% + 10px); left: 50%; width: 560px; padding: var(--space-3); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; translate: -50% 8px; scale: .98; transform-origin: top center; transition: opacity var(--dur-fast), translate var(--dur-base) var(--ease-out), scale var(--dur-base) var(--ease-out), visibility var(--dur-fast); }
.ecs-nav__item.is-open .ecs-menu { opacity: 1; visibility: visible; translate: -50% 0; scale: 1; }
.ecs-menu__item { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); transition: background-color var(--dur-fast); }
.ecs-menu__item:hover { background: var(--neutral-50); }
.ecs-menu__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.ecs-menu__item strong { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); font-weight: 700; }
.ecs-menu__item span.ecs-menu__line { display: block; font-size: 13.5px; line-height: 1.4; color: var(--neutral-700); }

/* ---------- Hero ---------- */
.ecs-hero { position: relative; overflow: hidden; background: var(--night-950); text-align: center; padding: calc(var(--nav-h) + 56px) var(--gutter) 0; }
.ecs-glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.ecs-glow--a { background: var(--brand-500); opacity: .5; width: 46vw; height: 46vw; right: 8vw; bottom: -18vw; animation: ecs-glow-a 26s ease-in-out infinite; }
.ecs-glow--b { background: var(--accent-400); opacity: .22; width: 26vw; height: 26vw; right: 30vw; bottom: -12vw; animation: ecs-glow-b 32s ease-in-out -8s infinite; }
@keyframes ecs-glow-a { 0%, 100% { transform: translate(0) scale(1); } 25% { transform: translate(-3vw, -2vw) scale(1.05); } 50% { transform: translate(-5vw, .5vw) scale(1.09); } 75% { transform: translate(-1.5vw, 2vw) scale(1.03); } }
@keyframes ecs-glow-b { 0%, 100% { transform: translate(0) scale(1); } 33% { transform: translate(4vw, -2.5vw) scale(1.08); } 66% { transform: translate(1vw, -4.5vw) scale(.96); } }
.ecs-hero__inner { position: relative; z-index: 1; }
.ecs-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; color: var(--on-dark-high); max-width: 900px; margin-inline: auto; text-wrap: balance; }
.ecs-hero h1 em { display: inline-block; }
.ecs-hero .ecs-lead { color: var(--on-dark-med); margin: var(--space-6) auto 0; }
.ecs-hero__cta { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
.ecs-hero__stage { position: relative; max-width: 980px; margin: 64px auto 0; }
.ecs-console { border-radius: 20px 20px 0 0; background: var(--white); box-shadow: 0 -20px 80px -20px rgba(102,127,255,.45); overflow: hidden; text-align: left; }
.ecs-console__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--neutral-200); }
.ecs-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-200); }
.ecs-console__bar span { margin-left: 12px; font-size: 12px; color: var(--neutral-400); }
.ecs-console__body { display: grid; grid-template-columns: 180px 1fr 240px; min-height: 260px; }
.ecs-console__side { padding: 18px 16px; border-right: 1px solid var(--neutral-200); display: grid; gap: 14px; align-content: start; }
.ecs-console__main { padding: 18px; display: grid; gap: 10px; align-content: start; }
.ecs-console__panel { padding: 18px; border-left: 1px solid var(--neutral-200); display: grid; gap: 12px; align-content: start; background: var(--neutral-50); }
.ecs-hero__chip { position: absolute; z-index: 2; }

/* ---------- Logo band ---------- */
.ecs-logoband { background: var(--white); padding: 48px 0 56px; border-bottom: 1px solid var(--neutral-100); overflow: hidden; }
.ecs-logoband__cap { text-align: center; font-size: 15px; color: var(--neutral-700); margin-bottom: 32px; }
.ecs-logoband__cap a { color: var(--brand-600); font-weight: 700; }
.ecs-logoband__view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ecs-logoband__track { display: flex; width: max-content; animation: ecs-logoband 44s linear infinite; }
.ecs-logoband__view:hover .ecs-logoband__track { animation-play-state: paused; }
.ecs-logoband__set { display: flex; align-items: center; gap: var(--space-16); padding-right: var(--space-16); }
.ecs-logoband__logo { height: 44px; display: grid; place-items: center; }
.ecs-logoband__logo img { height: 100%; width: auto; display: block; }
.ecs-logoband__ph { height: 44px; min-width: 132px; padding: 0 20px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1.5px dashed var(--neutral-300); color: var(--neutral-400); font-size: 13px; font-weight: 600; }
@keyframes ecs-logoband { to { transform: translateX(-50%); } }

/* ---------- Touchpoint scene (pinned) ---------- */
.ecs-touch { position: relative; height: 240vh; background: var(--white); --p: 0; }
.ecs-touch__pin { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.ecs-touch__title { position: relative; z-index: 2; max-width: 620px; text-align: center; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.ecs-touch__title span { color: var(--neutral-250); transition: color var(--dur-base) var(--ease-out); }
.ecs-touch__title span.is-lit { color: var(--ink); }
.ecs-touch__title span.is-grad.is-lit { background: var(--g-signature-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ecs-touch__item { position: absolute; left: var(--x); top: var(--y); z-index: 1; translate: calc(var(--dx, 0px) * (1 - var(--p))) calc(var(--dy, 0px) * (1 - var(--p))); opacity: calc(.25 + var(--p) * 1.5); will-change: translate; }
.ecs-touch__card { width: 190px; padding: 14px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); display: grid; gap: 8px; }
.ecs-touch__card--fill { background: var(--g-software); }
.ecs-touch__card--fill .ecs-sk { background: rgba(255,255,255,.35); }

/* ---------- Feature block ---------- */
.ecs-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-16); align-items: center; padding: var(--space-16); border-radius: var(--radius-img); border: 1px solid var(--neutral-200); background: linear-gradient(180deg, var(--brand-50) 0%, var(--white) 70%); }
.ecs-feature--flip .ecs-feature__media { order: -1; }
.ecs-feature h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.03; letter-spacing: -.04em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.ecs-feature p { margin-top: var(--space-5); max-width: 420px; }
.ecs-feature__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); max-width: 420px; }
.ecs-feature__media { position: relative; border-radius: var(--radius-card); min-height: 440px; display: grid; place-items: center; overflow: hidden; background: var(--g-night); }
.ecs-feature__media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--brand-500); filter: blur(90px); opacity: .45; right: -15%; bottom: -30%; }
.ecs-feature__media .ecs-device { z-index: 1; margin-top: 56px; margin-bottom: -40px; }

/* ---------- Signal scene (inputs, device, actions) ---------- */
.ecs-signal { position: relative; overflow: hidden; background: var(--night-950); text-align: center; padding: var(--section-y) var(--gutter); }
.ecs-signal::before { content: ""; position: absolute; left: 50%; top: 55%; width: 60vw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--brand-600); filter: blur(140px); opacity: .28; }
.ecs-signal__head { position: relative; display: grid; justify-items: center; gap: var(--space-4); }
.ecs-signal__title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.ecs-signal__grid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 72px; align-items: center; max-width: 1040px; margin: 56px auto 0; }
.ecs-signal__col { display: grid; gap: var(--space-3); position: relative; z-index: 1; align-self: stretch; align-content: space-around; }
.ecs-signal__col > .ecs-eyebrow { position: absolute; left: 0; top: -8px; color: var(--brand-300); }
.ecs-signal__col--in { justify-items: end; }
.ecs-signal__col--out { justify-items: start; text-align: left; }
.ecs-signal__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ecs-signal__wires path { fill: none; stroke: var(--line-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ecs-signal__wires path.is-flow { stroke: var(--brand-300); stroke-dasharray: 6 136; stroke-linecap: round; stroke-width: 2; animation: ecs-flow 2.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes ecs-flow { from { stroke-dashoffset: 142; } to { stroke-dashoffset: 0; } }
.ecs-input { display: flex; align-items: center; gap: var(--space-3); min-width: 210px; padding: 10px 16px 10px 10px; border-radius: var(--radius-md); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); text-align: left; backdrop-filter: blur(10px); }
.ecs-input__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(156,173,255,.22); color: var(--brand-300); flex: none; }
.ecs-input span.ecs-input__label { display: block; font-size: 12px; line-height: 1.2; color: var(--on-dark-low); }
.ecs-input strong { display: block; font-size: 14.5px; line-height: 1.3; color: var(--white); font-weight: 700; }
.ecs-action { display: flex; align-items: center; gap: var(--space-3); min-width: 250px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-float); opacity: .35; scale: .96; transform-origin: left center; transition: opacity var(--dur-base) var(--ease-out), scale var(--dur-base) var(--ease-spring); }
.ecs-action.is-on { opacity: 1; scale: 1; }
.ecs-action__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); flex: none; }
.ecs-action strong { display: block; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.ecs-action span.ecs-action__sub { display: block; font-size: 12.5px; line-height: 1.3; color: var(--neutral-700); }
.ecs-action__tick { margin-left: auto; color: var(--teal-700); opacity: 0; scale: .6; transition: opacity var(--dur-fast), scale var(--dur-base) var(--ease-spring); font-variation-settings: "FILL" 1; }
.ecs-action.is-on .ecs-action__tick { opacity: 1; scale: 1; }

/* ---------- Industry card ---------- */
.ecs-icard { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--night-900); color: var(--white); isolation: isolate; box-shadow: var(--shadow-card); transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.ecs-icard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease-out); }
.ecs-icard__ph { background: var(--g-night); display: grid; place-items: center; color: var(--on-dark-disabled); font-size: 13px; font-weight: 600; }
.ecs-icard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,13,26,0) 35%, rgba(10,13,26,.88) 100%); }
.ecs-icard__icon { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(102,127,255,.85); backdrop-filter: blur(10px); color: var(--white); }
.ecs-icard__icon .ecs-icon { font-variation-settings: "FILL" 1; }
.ecs-icard__body { position: absolute; left: 20px; right: 76px; bottom: 18px; }
.ecs-icard__body strong { display: block; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; color: var(--white); }
.ecs-icard__body span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--on-dark-med); }
.ecs-icard__go { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--night-950); transition: background-color var(--dur-fast), color var(--dur-fast), scale var(--dur-base) var(--ease-spring); }
.ecs-icard__go .ecs-icon { transition: translate var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .ecs-icard:hover { translate: 0 -4px; box-shadow: var(--shadow-float); }
  .ecs-icard:hover .ecs-icard__img { scale: 1.06; }
  .ecs-icard:hover .ecs-icard__go { background: var(--brand-600); color: var(--white); scale: 1.08; }
  .ecs-icard:hover .ecs-icard__go .ecs-icon { translate: 2px -2px; }
}

/* ---------- Impact cards (expanding) ---------- */
.ecs-impact { display: flex; gap: var(--space-4); height: 440px; }
.ecs-impact__card { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius-card); overflow: hidden; padding: 28px; display: flex; flex-direction: column; color: var(--white); cursor: pointer; text-align: left; transition: flex-grow .8s var(--ease-out); }
.ecs-impact__card.is-active { flex-grow: 3.4; cursor: default; }
.ecs-impact__card--a { background: var(--night-950); }
.ecs-impact__card--b { background: var(--teal-700); }
.ecs-impact__card--c { background: var(--brand-800); }
.ecs-impact__logo { width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--neutral-400); font-size: 11px; font-weight: 700; flex: none; }
.ecs-impact__stat { margin-top: auto; font-size: 44px; line-height: 1; letter-spacing: -.03em; font-weight: 700; color: var(--white); }
.ecs-impact__cap { margin-top: 8px; color: var(--on-dark-med); }
.ecs-impact__more { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: 20px; max-height: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-height .8s var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.ecs-impact__card.is-active .ecs-impact__more { max-height: 60px; opacity: 1; transition-delay: 0s, .25s; }
.ecs-impact__more p { font-size: 15px; font-weight: 600; color: var(--white); }

/* ---------- Product cards ---------- */
.ecs-pcards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.ecs-pcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 400px; padding: var(--space-10); border-radius: var(--radius-img); background: var(--night-950); color: var(--on-dark-med); isolation: isolate; transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.ecs-pcard::before { content: ""; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .7; left: -20%; top: -30%; background: var(--brand-600); transition: scale 1.2s var(--ease-out), opacity var(--dur-base); }
.ecs-pcard--support::before { background: var(--accent-500); left: auto; right: -25%; top: auto; bottom: -40%; }
@media (hover: hover) {
  .ecs-pcard:hover { translate: 0 -6px; box-shadow: var(--shadow-glow-strong); }
  .ecs-pcard:hover::before { scale: 1.15; opacity: .9; }
}
.ecs-pcard__art { align-self: stretch; flex: 1; min-height: 150px; display: grid; place-items: center; margin-bottom: var(--space-6); }
.ecs-pcard__plates { position: relative; width: 150px; height: 110px; }
.ecs-pcard__plates i { position: absolute; left: 0; right: 0; height: 60px; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); transform: perspective(600px) rotateX(58deg) rotateZ(-32deg); animation: ecs-plate 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ecs-pcard__plates i:nth-child(1) { top: 50px; }
.ecs-pcard__plates i:nth-child(2) { top: 26px; --d: .2s; background: rgba(255,255,255,.18); }
.ecs-pcard__plates i:nth-child(3) { top: 2px; --d: .4s; background: var(--g-signature); border-color: transparent; }
@keyframes ecs-plate { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.ecs-pcard__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g-software); color: var(--white); }
.ecs-pcard--support .ecs-pcard__icon { background: var(--accent-500); color: var(--on-accent); }
.ecs-pcard h3 { margin-top: var(--space-4); font-size: 36px; line-height: 1.03; letter-spacing: -.04em; font-weight: 700; color: var(--white); }
.ecs-pcard p { margin-top: var(--space-3); max-width: 340px; }
.ecs-pcard .ecs-btn { margin-top: var(--space-6); }

/* ---------- Integration hub ---------- */
.ecs-hub { position: relative; height: 520px; overflow: hidden; }
.ecs-hub__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.ecs-hub__wires line { stroke: var(--line-dark); stroke-width: 1; }
.ecs-hub__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 96px; height: 96px; border-radius: var(--radius-card); display: grid; place-items: center; background: var(--g-software); color: var(--white); font-weight: 700; font-size: 30px; letter-spacing: -.04em; box-shadow: var(--shadow-glow-strong); z-index: 2; }
.ecs-hub__pulse { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: var(--radius-card); border: 1px solid var(--brand-300); animation: ecs-core-pulse 3.2s var(--ease-out) infinite; animation-delay: var(--d, 0s); }
@keyframes ecs-core-pulse { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.ecs-hub__tile { position: absolute; left: calc(50% + cos(var(--a)) * var(--rx)); top: calc(50% + sin(var(--a)) * var(--ry)); translate: -50% -50%; height: 40px; padding: 0 16px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-float); z-index: 1; transition: scale var(--dur-base) var(--ease-spring), opacity var(--dur-base); animation: ecs-drift 7s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.ecs-hub__tile--glass { background: var(--night-900); color: var(--on-dark-high); border: 1px solid var(--line-dark); }
.ecs-hub__tile:hover { scale: 1.08; }
.ecs-hub.is-filtered .ecs-hub__tile:not(.is-match) { opacity: .2; scale: .94; }
@keyframes ecs-drift { to { transform: translate(6px, -8px); } }
.ecs-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.ecs-dark .ecs-chip:not([aria-pressed="true"]):not([aria-selected="true"]):not(.is-active) { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--on-dark-high); box-shadow: none; }
.ecs-dark .ecs-chip:not([aria-pressed="true"]):not([aria-selected="true"]):not(.is-active) .ecs-icon { color: var(--brand-300); }
.ecs-chip__count { margin-left: 2px; font-weight: 400; opacity: .7; }

/* ---------- CTA band ---------- */
.ecs-cta { position: relative; overflow: hidden; background: var(--g-main); text-align: center; padding: var(--section-y) var(--gutter); display: grid; justify-items: center; gap: var(--space-5); }
.ecs-cta h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; color: var(--on-dark-high); max-width: 820px; text-wrap: balance; }
.ecs-cta p { color: var(--on-dark-med); max-width: 560px; }
.ecs-cta .ecs-btn { margin-top: var(--space-3); }
.ecs-cta__members { margin-top: var(--space-12); display: grid; justify-items: center; gap: var(--space-4); color: var(--on-dark-low); }
.ecs-cta__members ul { display: flex; gap: var(--space-10); align-items: center; }
.ecs-cta__members li { height: 32px; min-width: 96px; padding: 0 14px; display: grid; place-items: center; border: 1.5px dashed var(--line-dark); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }

/* ---------- FAQ ---------- */
.ecs-faq { max-width: 860px; margin-inline: auto; }
.ecs-faq details { border-bottom: 1px solid var(--neutral-200); }
.ecs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 22px 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; transition: color var(--dur-fast); }
.ecs-faq summary::-webkit-details-marker { display: none; }
.ecs-faq summary:hover { color: var(--brand-600); }
.ecs-faq summary .ecs-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--neutral-50); color: var(--ink); transition: rotate var(--dur-base) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast); }
.ecs-faq details[open] summary .ecs-icon { rotate: 45deg; background: var(--brand-600); color: var(--white); }
.ecs-faq__a { padding: 0 64px 28px 0; display: grid; gap: var(--space-3); }
.ecs-faq details[open] .ecs-faq__a { animation: ecs-faq-in var(--dur-base) var(--ease-out); }
@keyframes ecs-faq-in { from { opacity: 0; transform: translateY(-8px); } }
.ecs-dark .ecs-faq details { border-color: var(--line-dark); }
.ecs-dark .ecs-faq summary { color: var(--white); }
.ecs-dark .ecs-faq summary:hover { color: var(--accent-300); }
.ecs-dark .ecs-faq summary .ecs-icon { background: rgba(255,255,255,.08); color: var(--white); }

/* ---------- Footer ---------- */
.ecs-footer { background: var(--night-950); color: var(--on-dark-low); padding: var(--space-20) var(--gutter) 0; }
.ecs-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-12); padding-bottom: var(--space-16); }
.ecs-news { max-width: 460px; display: grid; gap: var(--space-3); font-size: 14.5px; }
.ecs-news strong { color: var(--on-dark-high); }
.ecs-news__row { display: flex; gap: var(--space-2); }
.ecs-news input { flex: 1; min-width: 0; height: var(--control-h); padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: var(--white); font: inherit; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.ecs-news input::placeholder { color: var(--on-dark-low); }
.ecs-news input:hover { background: rgba(255,255,255,.1); }
.ecs-news input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; border-color: transparent; }
.ecs-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); padding-bottom: var(--space-16); }
.ecs-footer__cols h2 { font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--on-dark-high); margin-bottom: var(--space-3); }
.ecs-footer__cols a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--on-dark-low); transition: color var(--dur-fast), translate var(--dur-base) var(--ease-out); }
.ecs-footer__cols a:hover { color: var(--white); translate: 3px 0; }
.ecs-footer__bar { display: flex; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) 0; border-top: 1px solid var(--line-dark); font-size: 13px; }
.ecs-footer__bar nav { display: flex; gap: var(--space-5); }
.ecs-footer__bar a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .ecs-nav__links { display: none; }
  .ecs-feature { grid-template-columns: 1fr; padding: var(--space-6); gap: var(--space-8); }
  .ecs-feature--flip .ecs-feature__media { order: 0; }
  .ecs-console__body { grid-template-columns: 1fr; }
  .ecs-console__side, .ecs-console__panel { display: none; }
  .ecs-signal__grid { grid-template-columns: 1fr; gap: var(--space-8); justify-items: center; }
  .ecs-signal__col--in, .ecs-signal__col--out { justify-items: center; }
  .ecs-signal__wires { display: none; }
  .ecs-impact { flex-direction: column; height: auto; }
  .ecs-impact__card { min-height: 180px; }
  .ecs-pcards { grid-template-columns: 1fr; }
  .ecs-footer__top { flex-direction: column; }
  .ecs-footer__cols { grid-template-columns: 1fr 1fr; }
  .ecs-footer__bar { flex-direction: column; }
  .ecs-touch { height: auto; }
  .ecs-touch__pin { position: relative; height: auto; padding: var(--space-20) var(--gutter); }
  .ecs-touch__item { display: none; }
  .ecs-touch__title span { color: var(--ink); }
}

@media (max-width: 560px) {
  .ecs-hero__chip { display: none; }
  .ecs-hero__cta .ecs-btn, .ecs-cta .ecs-btn { width: 100%; }
  .ecs-news__row { flex-direction: column; }
  .ecs-faq__a { padding-right: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ecs *, .ecs *::before, .ecs *::after { animation: none !important; transition-duration: .01ms !important; }
  .ecs-js [data-reveal] { opacity: 1; transform: none; }
  .ecs-touch { height: auto; }
  .ecs-touch__pin { position: relative; }
  .ecs-touch__title span { color: var(--ink); }
  .ecs-touch__item { translate: 0 0; opacity: 1; }
  .ecs-action { opacity: 1; scale: 1; }
}
