/*
 * Ecliptix custom presentation layer.
 * Loaded after the mirrored Lovable bundle so generated assets stay untouched.
 */

:root {
  color-scheme: dark;
  --es-bg: #050b1a;
  --es-bg-secondary: #0a1224;
  --es-card: #10192d;
  --es-text: #ffffff;
  --es-text-muted: #aab4c8;
  --es-border: rgba(255, 255, 255, 0.10);
  --es-primary: #0a84ff;
  --es-cyan: #00d4ff;
  --es-header-bg: rgba(5, 11, 26, 0.88);
  --es-logo-plate: transparent;
  --es-focus: #00d4ff;
}

#lovable-badge {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-theme="light"] {
  color-scheme: light;
  --es-bg: #ffffff;
  --es-bg-secondary: #f6f8fc;
  --es-card: #ffffff;
  --es-text: #071124;
  --es-text-muted: #526078;
  --es-border: #e3e8f0;
  --es-primary: #0066ff;
  --es-cyan: #00a8d6;
  --es-header-bg: rgba(255, 255, 255, 0.90);
  --es-logo-plate: transparent;
  --es-focus: #0066ff;
}

html,
body {
  background: var(--es-bg);
  overflow-x: clip;
}

body {
  color: var(--es-text);
  transition: background-color 220ms ease, color 220ms ease;
}

header nav > a[href="/"]:first-child,
header nav > a[href="./"]:first-child,
header nav > a[href="/index.html"]:first-child {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: clamp(11rem, 22vw, 16rem);
  height: clamp(2.75rem, 5vw, 3.5rem);
  border-radius: 0.85rem;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  white-space: nowrap;
  background: transparent url("/assets/ecliptix-solutions-logo.png") center / contain no-repeat;
}

footer > .container-x:first-child > div:first-child > div:first-child {
  display: inline-flex !important;
  width: clamp(11rem, 30vw, 16rem);
  height: clamp(2.75rem, 5vw, 3.7rem);
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  white-space: nowrap;
  background: transparent url("/assets/ecliptix-solutions-logo.png") left center / contain no-repeat;
}

html[data-theme="light"] header nav > a[href="/"]:first-child,
html[data-theme="light"] header nav > a[href="./"]:first-child,
html[data-theme="light"] header nav > a[href="/index.html"]:first-child {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--es-primary) !important;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
  font-weight: 800;
  line-height: 1 !important;
  text-indent: 0;
  background: transparent !important;
  box-shadow: none;
}

html[data-theme="light"] footer > .container-x:first-child > div:first-child > div:first-child {
  padding: 0.45rem 0.65rem;
  border-radius: 0.85rem;
  background-color: #071124 !important;
}

.ecliptix-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: clamp(11rem, 22vw, 16rem);
  min-width: 0;
  border-radius: 0.85rem;
  line-height: 0;
  outline: none;
  text-indent: 0;
  background-image: none !important;
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

header nav > a.ecliptix-logo-link,
footer .ecliptix-logo-link {
  color: inherit !important;
  font-size: inherit !important;
  background-image: none !important;
}

.ecliptix-logo-link:hover {
  transform: translateY(-1px);
}

.ecliptix-logo-link:focus-visible,
.ecliptix-theme-toggle:focus-visible {
  outline: 2px solid var(--es-focus);
  outline-offset: 3px;
}

.ecliptix-logo-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4.2 / 1;
  object-fit: contain;
}

.ecliptix-logo-missing {
  min-height: 2.45rem;
  align-items: center;
  color: #ffffff !important;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(0.92rem, 2.2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

html[data-theme="light"] .ecliptix-logo-link {
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

html[data-theme="light"] header .ecliptix-logo-link {
  color: var(--es-primary) !important;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
  font-weight: 800;
  line-height: 1.05;
  text-indent: 0;
}

html[data-theme="light"] header .ecliptix-logo-link img {
  display: none;
}

html[data-theme="light"] header .ecliptix-logo-link::before {
  content: "ECLIPTIX SOLUTIONS";
  display: inline-block;
  color: var(--es-primary);
  white-space: nowrap;
}

.ecliptix-footer-logo {
  display: inline-flex;
  width: clamp(11rem, 30vw, 16rem);
  line-height: 0;
}

.ecliptix-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4.2 / 1;
  object-fit: contain;
}

.ecliptix-theme-toggle {
  position: relative;
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--es-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.ecliptix-theme-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.11);
}

.ecliptix-project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ecliptix-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 23, 0) 45%, rgba(5, 10, 23, 0.16) 100%),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ecliptix-project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms ease;
}

[id^="project-"]:hover .ecliptix-project-image {
  transform: scale(1.025);
}

.ecliptix-project-legacy-hero {
  display: none !important;
}

[id^="project-"] {
  scroll-margin-top: 6.75rem;
}

.ecliptix-theme-toggle svg {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  transition: opacity 240ms ease, transform 240ms ease;
}

.ecliptix-contact-status {
  align-self: center;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 600;
}

.ecliptix-contact-status[data-state="error"] {
  color: #fecaca;
}

.ecliptix-contact-success {
  display: grid;
  min-height: 17rem;
  place-content: center;
  text-align: center;
}

.ecliptix-contact-success h3 {
  margin: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
}

.ecliptix-contact-success p {
  max-width: 34rem;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.66);
}

form[data-ecliptix-submitting="true"] button[type="submit"],
form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ecliptix-theme-toggle__sun {
  opacity: 0;
  transform: rotate(-60deg) scale(0.72);
}

.ecliptix-theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="dark"] .ecliptix-theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="dark"] .ecliptix-theme-toggle__moon {
  opacity: 0;
  transform: rotate(60deg) scale(0.72);
}

html[data-theme="light"] .ecliptix-theme-toggle {
  background: #ffffff;
  color: #071124;
  box-shadow: 0 8px 24px rgba(7, 17, 36, 0.08);
}

main .bg-brand-950 .bg-white\/\[0\.04\].text-\[\#050a17\],
main .bg-brand-950 .bg-white\/\[0\.04\].text-\[\#050a17\] * {
  color: #071124 !important;
}

main .bg-brand-950 .bg-white\/\[0\.04\].text-\[\#050a17\] {
  background-color: #ffffff !important;
}

html[data-theme="light"] body,
html[data-theme="light"] .min-h-screen {
  background: var(--es-bg) !important;
  color: var(--es-text) !important;
}

html[data-theme="light"] header {
  background: var(--es-header-bg) !important;
  border-color: var(--es-border) !important;
}

html[data-theme="light"] header nav {
  gap: 1rem;
}

html[data-theme="light"] header a,
html[data-theme="light"] header button {
  color: var(--es-text) !important;
}

html[data-theme="light"] header .bg-cyan-accent,
html[data-theme="light"] header .bg-cyan-accent:hover {
  color: #071124 !important;
}

html[data-theme="light"] main {
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 102, 255, 0.08), transparent 28rem),
    radial-gradient(circle at 92% 20%, rgba(0, 168, 214, 0.08), transparent 24rem),
    var(--es-bg);
}

html[data-theme="light"] main section {
  border-color: var(--es-border) !important;
}

html[data-theme="light"] main .bg-\[\#070d1c\],
html[data-theme="light"] main .bg-\[\#0a1226\],
html[data-theme="light"] main .bg-\[\#0a1226\]\/95,
html[data-theme="light"] main .bg-\[\#0a1224\]\/90 {
  background-color: var(--es-bg-secondary) !important;
}

html[data-theme="light"] main .bg-white\/\[0\.02\],
html[data-theme="light"] main .bg-white\/\[0\.04\],
html[data-theme="light"] main .bg-white\/\[0\.05\],
html[data-theme="light"] main .bg-white\/\[0\.06\] {
  background-color: var(--es-card) !important;
}

html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/\[0\.05\],
html[data-theme="light"] .border-white\/\[0\.06\],
html[data-theme="light"] .border-white\/\[0\.08\],
html[data-theme="light"] .border-white\/\[0\.10\] {
  border-color: var(--es-border) !important;
}

html[data-theme="light"] main .text-white {
  color: var(--es-text) !important;
}

html[data-theme="light"] main .text-white\/80,
html[data-theme="light"] main .text-white\/85,
html[data-theme="light"] main .text-white\/75,
html[data-theme="light"] main .text-white\/70,
html[data-theme="light"] main .text-white\/65,
html[data-theme="light"] main .text-white\/60,
html[data-theme="light"] main .text-white\/55,
html[data-theme="light"] main .text-white\/45,
html[data-theme="light"] main .text-white\/40,
html[data-theme="light"] main .text-white\/35 {
  color: var(--es-text-muted) !important;
}

html[data-theme="light"] main .text-white\/85 {
  color: var(--es-text) !important;
}

html[data-theme="light"] main .text-brand-600,
html[data-theme="light"] main .text-brand-500,
html[data-theme="light"] main .text-cyan-accent {
  color: var(--es-primary) !important;
}

html[data-theme="light"] main .bg-brand-600,
html[data-theme="light"] main .bg-brand-700,
html[data-theme="light"] main .bg-brand-900 {
  background-color: var(--es-primary) !important;
}

html[data-theme="light"] main .bg-brand-600.text-white,
html[data-theme="light"] main .bg-brand-700.text-white,
html[data-theme="light"] main .bg-brand-900.text-white {
  color: #ffffff !important;
}

html[data-theme="light"] .bg-brand-950,
html[data-theme="light"] footer,
html[data-theme="light"] a[href*="wa.me"] {
  color: #ffffff !important;
}

html[data-theme="light"] .bg-brand-950 {
  background-color: #071124 !important;
}

html[data-theme="light"] main .bg-brand-950,
html[data-theme="light"] main .bg-brand-950 .text-white,
html[data-theme="light"] main .bg-brand-950 .text-white\/85,
html[data-theme="light"] main .bg-brand-950 .text-white\/80,
html[data-theme="light"] main .bg-brand-950 .text-white\/75,
html[data-theme="light"] main .bg-brand-950 .text-white\/70,
html[data-theme="light"] main .bg-brand-950 .text-white\/65,
html[data-theme="light"] main .bg-brand-950 .text-white\/60,
html[data-theme="light"] main .bg-brand-950 .text-white\/55 {
  color: #ffffff !important;
}

html[data-theme="light"] main .bg-brand-950 .text-white\/45,
html[data-theme="light"] main .bg-brand-950 .text-white\/40,
html[data-theme="light"] main .bg-brand-950 .text-white\/35 {
  color: rgba(255, 255, 255, 0.58) !important;
}

html[data-theme="light"] main .bg-brand-950 .bg-white\/\[0\.04\].text-\[\#050a17\],
html[data-theme="light"] main .bg-brand-950 .bg-white\/\[0\.04\].text-\[\#050a17\] * {
  color: #071124 !important;
}

html[data-theme="light"] main .bg-brand-950 .bg-white\/\[0\.04\].text-\[\#050a17\] {
  background-color: #ffffff !important;
}

html[data-theme="light"] .bg-brand-950 .text-white,
html[data-theme="light"] .bg-brand-950 .text-white\/65,
html[data-theme="light"] .bg-brand-950 .text-white\/70,
html[data-theme="light"] .bg-brand-950 .text-\[\#050a17\],
html[data-theme="light"] footer .text-white,
html[data-theme="light"] footer .text-white\/80,
html[data-theme="light"] footer .text-white\/75,
html[data-theme="light"] footer .text-white\/65,
html[data-theme="light"] footer .text-white\/55,
html[data-theme="light"] footer .text-white\/45,
html[data-theme="light"] a[href*="wa.me"].text-white {
  color: #ffffff !important;
}

html[data-theme="light"] footer {
  background: #0a1224 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #ffffff !important;
  color: var(--es-text) !important;
  border-color: var(--es-border) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #6b768d !important;
}

html[data-theme="light"] .ecliptix-contact-status,
html[data-theme="light"] .ecliptix-contact-success p {
  color: var(--es-text-muted);
}

html[data-theme="light"] .ecliptix-contact-status[data-state="error"] {
  color: #b91c1c;
}

html[data-theme="light"] .ecliptix-contact-success h3 {
  color: var(--es-text);
}

html[data-theme="light"] .shadow-black\/40,
html[data-theme="light"] .shadow-black\/50 {
  --tw-shadow-color: rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .ring-white\/10 {
  --tw-ring-color: rgba(7, 17, 36, 0.10) !important;
}

@media (max-width: 767px) {
  .ecliptix-logo-link {
    width: clamp(10rem, 48vw, 12rem);
  }

  html[data-theme="light"] .ecliptix-logo-link {
    padding: 0.36rem 0.5rem;
    border-radius: 0.72rem;
  }

  html[data-theme="light"] header .ecliptix-logo-link {
    width: auto;
    padding: 0;
    border-radius: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ecliptix-logo-link {
    width: clamp(11.5rem, 24vw, 13.5rem);
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  header .container-x {
    padding-inline: 1rem;
  }

  .ecliptix-logo-link {
    width: 13rem;
  }

  header nav > div:nth-of-type(1) {
    gap: 1rem;
    font-size: 0.8rem;
  }

  header nav > div:last-child {
    gap: 0.5rem;
  }

  header nav > div:last-child a[href="/contact"] {
    padding-inline: 0.85rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .ecliptix-logo-link,
  .ecliptix-theme-toggle,
  .ecliptix-theme-toggle svg {
    transition: none !important;
  }

  .ecliptix-logo-link:hover,
  .ecliptix-theme-toggle:hover {
    transform: none !important;
  }
}

/* Migrated WordPress blog pages */
.es-blog-hero,
.es-article-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 88% -10%, rgba(34, 211, 238, 0.14), transparent 32rem),
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.16), transparent 34rem);
}

.es-blog-hero .container-x,
.es-article-header {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.es-breadcrumb {
  display: flex;
  max-width: min(100%, 64rem);
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 700;
}

.es-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.es-breadcrumb a:hover {
  color: #67e8f9;
}

.es-eyebrow {
  margin: 0 0 0.85rem;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.es-blog-hero h1,
.es-article-header h1 {
  max-width: 58rem;
  margin: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0 !important;
}

.es-hero-copy,
.es-article-header > p {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.72;
}

.es-blog-listing {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.es-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.es-blog-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.es-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.36);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
}

.es-blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 18, 36, 0.86);
}

.es-blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #081225;
}

.es-blog-card--text-only {
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.10), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
}

.es-blog-card--text-only .es-blog-card__body {
  min-height: 21rem;
}

.es-blog-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.85rem;
  padding: 1.25rem;
}

.es-blog-card__meta,
.es-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  color: rgba(103, 232, 249, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.es-blog-card h2 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 800;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.es-blog-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.68;
}

.es-blog-card time {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.78rem;
  font-weight: 700;
}

.es-article {
  background:
    radial-gradient(circle at 5% 25%, rgba(37, 99, 235, 0.08), transparent 32rem),
    var(--es-bg);
}

.es-article-header {
  padding-inline: max(1rem, calc((100vw - 72rem) / 2));
}

.es-article-featured {
  max-width: 64rem;
  margin: 2rem 0 0;
}

.es-article-featured img {
  display: block;
  width: 100%;
  max-height: 36rem;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1.25rem;
  background: #081225;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.es-article-featured figcaption {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.es-article-shell {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 54rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.es-share {
  position: sticky;
  top: 6rem;
  align-self: start;
  display: grid;
  gap: 0.55rem;
}

.es-share span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.es-share a,
.es-back-link,
.es-related-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.es-share a {
  width: fit-content;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 700;
}

.es-share a:hover,
.es-back-link:hover,
.es-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.38);
  background: rgba(34, 211, 238, 0.08);
}

.es-article-content {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.075rem);
  line-height: 1.82;
}

.es-article-content > *:first-child {
  margin-top: 0;
}

.es-article-content p,
.es-article-content ul,
.es-article-content ol,
.es-article-content figure {
  margin: 0 0 1.25rem;
}

.es-article-content h2,
.es-article-content h3 {
  max-width: none;
  margin: 2.2rem 0 0.85rem;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.es-article-content h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

.es-article-content h3 {
  font-size: clamp(1.17rem, 2vw, 1.45rem);
}

.es-article-content ul,
.es-article-content ol {
  padding-left: 1.35rem;
}

.es-article-content li {
  margin: 0.35rem 0;
}

.es-article-content a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.es-article-content strong {
  color: #fff;
}

.es-article-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.75rem 0;
  border-radius: 1rem;
  object-fit: contain;
}

.es-article-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding: 0 0 clamp(2.25rem, 5vw, 3.5rem);
}

.es-back-link {
  display: inline-flex;
  margin: 0 0 1.25rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
  font-weight: 800;
}

.es-related {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1.25rem;
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  background: rgba(255, 255, 255, 0.025);
}

.es-related h2 {
  max-width: none;
  margin: 0 0 1rem;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 800;
}

.es-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.es-related-card {
  display: grid;
  align-content: start;
  min-height: 8.25rem;
  gap: 0.5rem;
  border-radius: 0.85rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.06);
}

.es-related-card span {
  color: #67e8f9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.es-related-card strong {
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
}

html[data-theme="light"] .es-blog-hero,
html[data-theme="light"] .es-article-header {
  border-color: var(--es-border);
  background:
    radial-gradient(circle at 88% -10%, rgba(0, 168, 214, 0.10), transparent 32rem),
    radial-gradient(circle at 12% 12%, rgba(0, 102, 255, 0.10), transparent 34rem),
    #f6f8fc;
}

html[data-theme="light"] .es-blog-hero h1,
html[data-theme="light"] .es-article-header h1,
html[data-theme="light"] .es-blog-card h2,
html[data-theme="light"] .es-article-content h2,
html[data-theme="light"] .es-article-content h3,
html[data-theme="light"] .es-article-content strong,
html[data-theme="light"] .es-related h2,
html[data-theme="light"] .es-related-card strong {
  color: var(--es-text) !important;
}

html[data-theme="light"] .es-hero-copy,
html[data-theme="light"] .es-article-header > p,
html[data-theme="light"] .es-blog-card p,
html[data-theme="light"] .es-blog-card time,
html[data-theme="light"] .es-article-content,
html[data-theme="light"] .es-article-featured figcaption,
html[data-theme="light"] .es-breadcrumb,
html[data-theme="light"] .es-breadcrumb a,
html[data-theme="light"] .es-share span {
  color: var(--es-text-muted) !important;
}

html[data-theme="light"] .es-blog-card,
html[data-theme="light"] .es-share a,
html[data-theme="light"] .es-back-link,
html[data-theme="light"] .es-related-card {
  border-color: var(--es-border);
  background: #fff;
  color: var(--es-text);
}

html[data-theme="light"] .es-article {
  background: var(--es-bg);
}

html[data-theme="light"] .es-article-featured img,
html[data-theme="light"] .es-blog-card__image {
  background: #edf3fb;
}

html[data-theme="light"] .es-related {
  border-color: var(--es-border);
}

@media (max-width: 900px) {
  .es-blog-grid,
  .es-related-grid {
    grid-template-columns: 1fr;
  }

  .es-article-shell {
    grid-template-columns: 1fr;
  }

  .es-share {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .es-blog-card__body {
    padding: 1rem;
  }

  .es-article-header,
  .es-article-shell,
  .es-article-footer {
    width: min(100% - 1.25rem, 72rem);
  }

  .es-article-header {
    padding-inline: 0.625rem;
  }
}

/* A tighter, still breathable vertical rhythm across the mirrored site. */
header nav {
  min-height: 4.25rem;
}

.h-16,
.md\:h-20 {
  height: 4.25rem;
}

.container-x {
  padding-inline: clamp(1rem, 3vw, 1.35rem);
}

.py-24 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.py-20 { padding-top: 2.85rem; padding-bottom: 2.85rem; }
.py-16 { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.pb-32 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 3.25rem; }
.pb-20 { padding-bottom: 2.85rem; }
.pb-16 { padding-bottom: 2.4rem; }
.pt-20 { padding-top: 2.85rem; }
.pt-16 { padding-top: 2.4rem; }
.gap-16 { gap: 2.5rem; }
.gap-12 { gap: 1.85rem; }
.gap-10 { gap: 1.55rem; }
.gap-6 { gap: 1.15rem; }
.mb-16 { margin-bottom: 2.25rem; }
.mb-14 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 1.75rem; }
.mb-10 { margin-bottom: 1.5rem; }
.mb-9 { margin-bottom: 1.4rem; }
.mb-8 { margin-bottom: 1.25rem; }
.mb-7 { margin-bottom: 1.15rem; }
.mb-6 { margin-bottom: 1rem; }
.mt-16 { margin-top: 2.35rem; }
.mt-12 { margin-top: 1.85rem; }
.mt-10 { margin-top: 1.55rem; }
.mt-8 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1rem; }
.p-10 { padding: 1.7rem; }
.p-8 { padding: 1.45rem; }
.p-7 { padding: 1.25rem; }
.p-6 { padding: 1.1rem; }

.text-7xl { font-size: 3.8rem; line-height: 1.04; }
.text-6xl { font-size: 3.25rem; line-height: 1.05; }
.text-5xl { font-size: 2.75rem; line-height: 1.06; }
.text-4xl { font-size: 2.15rem; line-height: 1.12; }
.text-3xl { font-size: 1.8rem; line-height: 1.15; }

h1,
h2 {
  letter-spacing: 0 !important;
}

main h1,
main h2 {
  max-width: 12.5em;
}

main p {
  line-height: 1.58;
}

.text-lg { font-size: 1rem; line-height: 1.6; }
.text-xl { font-size: 1.1rem; line-height: 1.6; }

@media (min-width: 768px) {
  .md\:h-20 { height: 4.75rem; }
  .md\:py-32 { padding-top: 4.25rem; padding-bottom: 4.25rem; }
  .md\:py-28 { padding-top: 3.85rem; padding-bottom: 3.85rem; }
  .md\:py-24 { padding-top: 3.45rem; padding-bottom: 3.45rem; }
  .md\:py-20 { padding-top: 3.1rem; padding-bottom: 3.1rem; }
  .md\:pt-28 { padding-top: 4rem; }
  .md\:pt-24 { padding-top: 3.45rem; }
  .md\:pt-20 { padding-top: 3.1rem; }
  .md\:pb-40 { padding-bottom: 5rem; }
  .md\:pb-28 { padding-bottom: 3.85rem; }
  .md\:pb-20 { padding-bottom: 3.1rem; }
  .md\:text-6xl { font-size: 3.35rem; line-height: 1.06; }
  .md\:text-5xl { font-size: 2.8rem; line-height: 1.08; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 1.12; }
  .md\:text-3xl { font-size: 1.95rem; line-height: 1.15; }
  .md\:text-xl { font-size: 1.08rem; line-height: 1.62; }
  .md\:text-lg { font-size: 1rem; line-height: 1.6; }
}

@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 2.85rem; line-height: 1.08; }
}

@media (min-width: 1024px) {
  .lg\:gap-16 { gap: 2.75rem; }
  .lg\:p-20 { padding: 3rem; }
  .lg\:text-6xl { font-size: 3rem; line-height: 1.08; }
  .lg\:text-\[5\.25rem\] { font-size: 3.55rem; line-height: 1.07; }
  .lg\:text-\[4\.25rem\] { font-size: 3.1rem; line-height: 1.08; }
  .lg\:text-\[3\.5rem\] { font-size: 2.65rem; line-height: 1.1; }
}

@media (min-width: 1280px) {
  .lg\:text-\[5\.25rem\] {
    font-size: 3.9rem;
  }
}

/* Vision, mission, goal, and careers */
.ecliptix-purpose {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.1), transparent 34rem),
    radial-gradient(circle at 88% 90%, rgba(37, 99, 235, 0.13), transparent 32rem),
    #070d1c;
}

.ecliptix-purpose__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  padding-block: 4.5rem;
}

.ecliptix-purpose__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.ecliptix-purpose__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ecliptix-purpose__eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.ecliptix-purpose h2 {
  max-width: 39rem;
  margin: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ecliptix-purpose__lead {
  max-width: 37rem;
  margin: 0 0 0.25rem auto;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.75;
}

.ecliptix-purpose__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ecliptix-purpose__card {
  position: relative;
  min-height: 100%;
  padding: 1.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.ecliptix-purpose__card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.35);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.09), rgba(255, 255, 255, 0.035));
}

.ecliptix-purpose__number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 0.75rem;
  background: rgba(34, 211, 238, 0.08);
  color: #67e8f9;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.ecliptix-purpose__card h3 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.ecliptix-purpose__card p,
.ecliptix-purpose__career-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  line-height: 1.72;
}

.ecliptix-purpose__career {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 1.25rem;
  background: linear-gradient(100deg, rgba(8, 145, 178, 0.12), rgba(37, 99, 235, 0.08));
}

.ecliptix-purpose__career-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.ecliptix-purpose__career-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 1rem;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #04101f;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.2);
}

.ecliptix-purpose__career h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.ecliptix-purpose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ecliptix-purpose__button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.ecliptix-purpose__button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #04101f;
}

.ecliptix-purpose__button--secondary {
  background: rgba(255, 255, 255, 0.045);
}

.ecliptix-purpose__button:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.5);
}

.ecliptix-purpose__button:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .ecliptix-purpose__intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ecliptix-purpose__lead {
    margin-left: 0;
  }

  .ecliptix-purpose__grid {
    grid-template-columns: 1fr;
  }

  .ecliptix-purpose__career {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .py-24,
  .py-20 {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .pb-24,
  .pb-20 {
    padding-bottom: 3.25rem;
  }

  .gap-12 {
    gap: 1.75rem;
  }

  .p-8,
  .p-7,
  .p-6 {
    padding: 1.2rem;
  }

  .ecliptix-purpose__inner {
    width: min(100% - 1.5rem, 80rem);
    padding-block: 3.5rem;
  }

  .ecliptix-purpose__intro {
    margin-bottom: 1.5rem;
  }

  .ecliptix-purpose__card {
    padding: 1.35rem;
  }

  .ecliptix-purpose__career {
    gap: 1.25rem;
    padding: 1.35rem;
  }

  .ecliptix-purpose__career-copy {
    grid-template-columns: 1fr;
  }

  .ecliptix-purpose__actions,
  .ecliptix-purpose__button {
    width: 100%;
  }
}
