html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

.hero-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(320px, 100svh);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 120px;
  background: radial-gradient(ellipse at 63% 45%, rgba(74, 130, 172, .24), transparent 52%);
}

.hero-watermark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -22vw;
  width: min(100vw, 1280px);
  height: auto;
  opacity: .075;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-brand-lockup {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(100%, 1000px);
  height: 180px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.hero-brand-logo {
  display: block;
  width: min(68vw, 680px);
  max-width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

.hero-services {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 7vh, 56px);
  display: flex;
  width: min(76vw, 960px);
  justify-content: center;
  transform: translateX(-50%);
}

.hero-service-link {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  color: rgba(255, 255, 255, .92);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}

.hero-service-link:not(:last-child) {
  border-right: 1px solid #00b9f1;
}

.hero-service-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform .2s ease;
}

.hero-service-link:hover,
.hero-service-link:focus-visible {
  color: #fff;
  outline: none;
}

.hero-service-link:hover svg,
.hero-service-link:focus-visible svg {
  transform: translateY(-3px);
}

.header-brand,
.header-brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  opacity: 1;
  visibility: visible;
}

.header-brand {
  flex: 0 0 auto;
  min-width: 150px;
  align-items: center;
}

.header-brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 132px;
  opacity: 1;
  visibility: visible;
}

body.intro-active {
  overflow: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility .3s ease;
}

.site-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-intro-logo {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  max-height: 42vh;
  object-fit: contain;
}

::selection {
  background: #8F592B;
  color: #fff;
}

/* three-bar "E" motif */
.ebars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.ebars span {
  display: block;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
}

.ebars span:nth-child(1) {
  width: 100%;
}

.ebars span:nth-child(2) {
  width: 78%;
}

.ebars span:nth-child(3) {
  width: 56%;
}

/* animated process bars */
.pbar {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22, .9, .3, 1);
}

.pbar.fill {
  transform: scaleX(1);
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .9, .3, 1), transform .8s cubic-bezier(.22, .9, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-parallax {
  will-change: transform;
}

html body [class~="bg-deep"],
html body [class~="bg-deep/95"],
html body [class~="bg-graphite"],
html body [class~="bg-black"] {
  background-color: #1E4568 !important;
}

html body [class~="hover:bg-graphite"]:hover {
  background-color: #1E4568 !important;
}

html body [class~="bg-deep"] [class~="text-bronzeSoft"],
html body [class~="bg-graphite"] [class~="text-bronzeSoft"],
html body [class~="bg-black"] [class~="text-bronzeSoft"] {
  color: #F2C99F !important;
}

html body [class~="bg-deep"] .kicker,
html body [class~="bg-graphite"] .kicker,
html body [class~="bg-black"] .kicker,
html body [class~="bg-deep"] .kicker-idx,
html body [class~="bg-graphite"] .kicker-idx,
html body [class~="bg-black"] .kicker-idx {
  color: #F2C99F;
}

html body [class~="bg-deep"] .kicker-rule,
html body [class~="bg-graphite"] .kicker-rule,
html body [class~="bg-black"] .kicker-rule {
  background: linear-gradient(90deg, rgba(242, 201, 159, .8), rgba(242, 201, 159, .2));
}

html body [class~="bg-deep"] .kicker-label,
html body [class~="bg-graphite"] .kicker-label,
html body [class~="bg-black"] .kicker-label {
  color: #FFFFFF;
  opacity: .9;
}

html body [class~="bg-deep"] [class~="text-white/60"],
html body [class~="bg-graphite"] [class~="text-white/60"],
html body [class~="bg-black"] [class~="text-white/60"] {
  color: rgba(255, 255, 255, .82) !important;
}

html body [class~="bg-deep"] [class~="text-white/50"],
html body [class~="bg-graphite"] [class~="text-white/50"],
html body [class~="bg-black"] [class~="text-white/50"],
html body [class~="bg-deep"] [class~="text-white/45"],
html body [class~="bg-graphite"] [class~="text-white/45"],
html body [class~="bg-black"] [class~="text-white/45"],
html body [class~="bg-deep"] [class~="text-white/65"],
html body [class~="bg-graphite"] [class~="text-white/65"],
html body [class~="bg-black"] [class~="text-white/65"],
html body [class~="bg-deep"] [class~="text-white/70"],
html body [class~="bg-graphite"] [class~="text-white/70"],
html body [class~="bg-black"] [class~="text-white/70"] {
  color: rgba(255, 255, 255, .76) !important;
}

html body [class~="bg-deep"] [class~="text-white/40"],
html body [class~="bg-graphite"] [class~="text-white/40"],
html body [class~="bg-black"] [class~="text-white/40"] {
  color: rgba(255, 255, 255, .76) !important;
}

/* hero panel */
.hero-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 70px -28px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .06);
  pointer-events: none;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-toggle {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 92px;
  height: 38px;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: hidden;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .06);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.language-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 156, 59, .8) 0 33%, rgba(255, 223, 0, .8) 33% 66%, rgba(0, 39, 118, .85) 66%);
  opacity: .28;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: #C98A44;
  background: rgba(201, 138, 68, .22);
  transform: translateY(-1px);
  outline: none;
}

.language-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

.language-toggle-current {
  color: #F2C99F;
  font-weight: 700;
}

.language-toggle-arrow {
  color: rgba(255, 255, 255, .45);
  letter-spacing: 0;
}

.language-toggle-label {
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
}

.language-toggle-dot.flag-br {
  background: linear-gradient(135deg, #009c3b 0 33%, #ffdf00 33% 66%, #002776 66%);
}

.language-toggle-dot.flag-us {
  background: repeating-linear-gradient(180deg, #b22234 0 1px, #fff 1px 2px);
  border: 1px solid rgba(255, 255, 255, .45);
  position: relative;
}

.language-toggle-dot.flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: #3c3b6e;
  border-radius: 50% 0 0 0;
}

.language-toggle-mobile {
  align-self: flex-start;
  margin-top: 2px;
}

#cover-tagline {
  display: block;
  min-height: 1.3em;
}

.services-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(15, 16, 18, .08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 16, 18, .03), rgba(166, 111, 53, .06));
  box-shadow: 0 12px 28px -22px rgba(15, 16, 18, .3);
}

.solution-card {
  border: 1px solid rgba(15, 16, 18, .08);
  border-radius: 22px;
  box-shadow: 0 14px 30px -22px rgba(15, 16, 18, .24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -20px rgba(15, 16, 18, .28);
}

.solution-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 16, 18, .07), rgba(166, 111, 53, .08));
  padding: 8px;
  margin-bottom: 18px;
  cursor: zoom-in;
}

.solution-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  transition: transform .45s cubic-bezier(.22, .9, .3, 1), filter .3s ease;
}

.lead-popup { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 24px; background: rgba(15, 16, 18, .72); backdrop-filter: blur(7px); }
.lead-popup-card { position: relative; width: min(100%, 460px); padding: 42px 34px 34px; text-align: center; color: #0F1012; background: #fff; border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.lead-popup-card h2 { margin: 16px 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: 27px; font-weight: 700; }
.lead-popup-card p { margin: 0; color: rgba(15, 16, 18, .7); line-height: 1.6; }
.lead-popup-mark { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; background: #8F592B; font-size: 26px; font-weight: 700; }
.lead-popup-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: #555; cursor: pointer; font-size: 28px; line-height: 1; }
.lead-popup-action { margin-top: 25px; padding: 12px 26px; border: 0; border-radius: 2px; color: #fff; background: #8F592B; cursor: pointer; font-weight: 700; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 0 18px; border-radius: 999px; color: #fff; background: #25D366; box-shadow: 0 8px 24px rgba(0, 0, 0, .24); font-size: 14px; font-weight: 700; text-decoration: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, visibility .25s ease, transform .25s ease, box-shadow .2s ease; }
.whatsapp-float.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.whatsapp-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 640px) { .whatsapp-float { right: 16px; bottom: 16px; width: 56px; min-height: 56px; padding: 0; } .whatsapp-float span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } }

.solution-visual:hover .solution-image,
.solution-image:focus-visible {
  transform: scale(1.04);
  filter: saturate(1.08);
  outline: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer img {
  display: block;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.image-viewer-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(166, 111, 53, .12);
  color: #8F592B;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* nav link underline */
.navlink {
  position: relative;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: #8F592B;
  transition: right .3s cubic-bezier(.22, .9, .3, 1);
}

.navlink:hover::after,
.navlink.active::after {
  right: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  width: 264px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(30, 69, 104, .98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
}

.nav-dropdown-menu a,
.nav-dropdown-label {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; outline: none; }
.nav-dropdown-label { padding-top: 0; color: #F2C99F; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.nav-dropdown-all { margin-top: 7px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 !important; padding-top: 14px !important; color: #F2C99F !important; }
.service-card-link { color: inherit; text-decoration: none; }
.service-card-link:focus-visible { outline: 3px solid #A66F35; outline-offset: 4px; }
.service-card-link .solution-visual { cursor: pointer; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8F592B;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.kicker-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  color: #8F592B;
  font-weight: 600;
}

.kicker-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 89, 43, 0.75), rgba(143, 89, 43, 0.18));
}

.kicker-label {
  color: #17181B;
  opacity: 0.8;
}

.card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent, #8F592B);
  opacity: .8;
}

.case-spark {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: 150px;
  height: 70px;
  align-items: end;
}

.case-spark i {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent, #1E4568), rgba(255, 255, 255, 0.12));
}

.case {
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.case.is-hidden {
  display: none;
}

#hero-diag {
  position: sticky;
  top: 0;
  will-change: transform;
  transition: transform .18s ease-out;
}

#pitch {
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}

#pitch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(30, 69, 104, 0) 0%, #1E4568 18%, #1E4568 100%);
  pointer-events: none;
}

#pitch > div {
  position: relative;
  z-index: 1;
}

.letterform {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: min(24vw, 240px);
  line-height: .78;
  letter-spacing: -.03em;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ECEFF2;
}

::-webkit-scrollbar-thumb {
  background: #1E4568;
  border-radius: 6px;
}

/* ---- FAQ accordion ---- */
/* .faq-a starts collapsed via grid-template-rows: 0fr (see index.html markup).
   Adding .is-open expands it; the icon rotates into an "x" to show the open state. */
.faq-a.is-open {
  grid-template-rows: 1fr;
}

.faq-icon {
  transition: transform .3s cubic-bezier(.22, .9, .3, 1);
}

.faq-icon.is-open {
  transform: rotate(45deg);
}

@media (max-width: 767px) {
  .hero-cover {
    min-height: max(580px, 100svh);
    padding: 80px 18px 136px;
  }

  .hero-watermark {
    top: 43%;
    left: -32vw;
    width: 100vw;
    opacity: .075;
  }

  .hero-brand-lockup {
    width: 100%;
    height: 140px;
  }

  .hero-brand-logo {
    width: min(75vw, 380px);
  }

  .hero-services {
    left: 50%;
    width: calc(100% - 24px);
  }

  .hero-service-link {
    gap: 7px;
    padding: 0 4px;
    font-size: clamp(7px, 2vw, 9px);
    letter-spacing: .06em;
  }

  .hero-service-link svg {
    width: 21px;
    height: 21px;
  }

  header nav,
  section > div,
  footer > div {
    padding-left: 20px;
    padding-right: 20px;
  }

  #pitch {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 96px;
    padding-bottom: 96px;
    gap: 40px;
  }

  #hero-diag {
    padding-left: 20px;
    padding-right: 20px;
  }

  .solution-card {
    padding: 20px;
    border-radius: 16px;
  }

  .services-cta-card {
    padding: 20px;
    border-radius: 16px;
  }

  .services-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-cta-card a {
    width: 100%;
  }

  .case-featured {
    grid-column: span 1 / span 1;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .image-viewer {
    padding: 18px;
  }

  .image-viewer-close {
    top: 12px;
    right: 14px;
  }

  .language-toggle {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* =====================================================================
  SIGNATURE: "O COMPILE" | terminal chrome, diff lines, 3D layer stack,
   drifting code glyphs. These tie back to ENDIS's own brand doc: the
   logo's three bars = Infra/Cloud, Dados, Software.
===================================================================== */

/* ---- terminal window chrome ---- */
.term {
  background: #0c1117;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.term-body {
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.85;
}

.term-prompt::before {
  content: "$ ";
  color: #8FB6D8;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #C98A44;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---- diff / git-style comparison ---- */
.diff-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 9px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  border-left: 2px solid transparent;
}

.diff-remove {
  background: rgba(220, 80, 80, .08);
  border-left-color: rgba(220, 80, 80, .55);
  color: #e8a5a5;
}

.diff-remove .diff-sym {
  color: #e37272;
}

.diff-add {
  background: rgba(122, 196, 140, .09);
  border-left-color: rgba(122, 196, 140, .6);
  color: #bfe6c8;
}

.diff-add .diff-sym {
  color: #7ac48c;
}

.diff-sym {
  font-weight: 700;
  text-align: center;
}

.diff-file {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #8fa6bd;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ---- 3D layer stack (literalizes the "E" = 3 bars = 3 layers) ---- */
.stack3d-scene {
  perspective: 1300px;
}

.stack3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
}

.stack3d .layer {
  position: absolute;
  left: 0;
  right: 0;
  transform-style: preserve-3d;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: transform .5s cubic-bezier(.22, .9, .3, 1), box-shadow .5s;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .5);
}

.stack3d .layer .face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  backface-visibility: hidden;
}

.stack3d .layer .face-top {
  background: linear-gradient(135deg, var(--lc1), var(--lc2));
}

.stack3d .layer .face-edge {
  background: var(--lc2);
  transform: translateZ(-14px);
  filter: brightness(.6);
}

/* ---- small inline code chip used in service cards ---- */
.code-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  line-height: 1.7;
  background: rgba(15, 16, 18, .05);
  border: 1px solid rgba(15, 16, 18, .12);
  border-radius: 4px;
  padding: 10px 12px;
  color: #1E4568;
}

.code-chip .k {
  color: #8F592B;
}

.code-chip .s {
  color: #5c8a3a;
}

/* ---- commit-timeline connector for Modelo section ---- */
.commit-line {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18) 8%, rgba(255, 255, 255, .18) 92%, transparent);
}

.commit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C98A44;
  box-shadow: 0 0 0 4px rgba(201, 138, 68, .15);
}

/* =====================================================================
  ART DIRECTION PASS 3 | dropped the terminal/code motifs (not
   accessible to a non-technical reader) in favor of plain-language
   panels and an icon-based systems diagram. Kept: fluid glow, grain,
  blobs, marquee, kinetic type | none of those require reading code.
===================================================================== */

/* ---- film grain, whole page ---- */
body.grain {
  position: relative;
}

body.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- fluid dual-tone glow ---- */
.spotlight {
  background:
    radial-gradient(560px circle at var(--sx, 50%) var(--sy, 30%), rgba(166, 111, 53, .20), transparent 62%),
    radial-gradient(760px circle at var(--sx2, 60%) var(--sy2, 55%), rgba(30, 69, 104, .28), transparent 60%);
  mix-blend-mode: screen;
  will-change: background;
}

/* ---- ambient mesh blobs for dark sections ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  pointer-events: none;
  animation: blobfloat 16s ease-in-out infinite;
}

@keyframes blobfloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(26px, -22px) scale(1.09);
  }
}

/* ---- orbit diagram: ENDIS hub + the 3 pillars, connected & flowing ---- */
.orbit-scene {
  perspective: 900px;
}

.orbit-tilt {
  will-change: transform;
}

.orbit-flow {
  stroke-dasharray: 5 9;
  animation: flow 3.2s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -140;
  }
}

.orbit-node {
  transition: transform .3s ease;
}

.orbit-scene:hover .orbit-node {
  transform: scale(1.04);
}

/* ---- plain-language "pain point" checklist card (replaces the log/terminal) ---- */
.pain-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: 34px;
}

.pain-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pain-item svg {
  flex: none;
  margin-top: 2px;
}

/* ---- plain comparison list (replaces the diff terminal) ---- */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compare-cell {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.compare-cell svg {
  flex: none;
  margin-top: 3px;
}

/* ---- plain pill chip for service cards (replaces the code-chip) ---- */
.pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  background: rgba(15, 16, 18, .06);
  border: 1px solid rgba(15, 16, 18, .14);
  border-radius: 999px;
  padding: 7px 13px;
  color: #1E4568;
}

/* ---- infinite marquee ticker ---- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.2rem;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---- kinetic typography reveal ---- */
.kinetic-wrap .word {
  display: inline-block;
  opacity: .1;
  filter: blur(3px);
  transition: opacity .65s cubic-bezier(.22, .9, .3, 1), filter .65s cubic-bezier(.22, .9, .3, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.kinetic-wrap.in .word {
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

  .blob,
  .marquee-track,
  .orbit-flow {
    animation: none !important;
  }
}
