/* Reusable component styles — re-skinned to the Accenture design system
   (tokens.css; originally 0_Ajustes_Sprints/0_sprint2_ajustesdokaiky/01-design-system.md).
   Class names are kept stable where existing Jinja macros already emit
   them; only the visual treatment changes. Buttons live in base.css.
   Illustrations + the Rastro de Inteligência trail live in their own
   partials, appended in later build phases. */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-card);
  color: var(--navy-700);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
}
.badge__icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

/* -- Brand / logo slot ---------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  min-height: 44px;
}
.brand__logo {
  align-self: center;
  height: 26px;
  width: auto;
}
.brand__logo--custom {
  height: 34px;
}
.brand--icon-only .brand__logo--custom {
  height: 28px;
}
.brand__logo--negative {
  display: none;
}
.site-header .brand__logo--positive,
.site-footer .brand__logo--positive {
  display: none;
}
.site-header .brand__logo--negative,
.site-footer .brand__logo--negative {
  display: block;
}
.brand__wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: var(--tracking-display);
  color: #fff;
}
.brand__unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-300);
  white-space: nowrap;
}
.site-header[data-stuck] .brand__name {
  color: var(--ink);
}
.site-header[data-stuck] .brand__unit {
  color: var(--navy-700);
}
.site-footer .brand__name {
  color: #fff;
}
.site-footer .brand__unit {
  color: var(--cyan-300);
}

/* ============================================================
   HEADER
   ============================================================ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ds-primary);
}

/* -- Official sponsor strip (Brazil Management Week 2026) ----------------
   Sits at the very top of the page and scrolls away with it; the header
   starts right under it (--header-start) as a square full-width bar.
   One slim line repeated across, separated by small glowing nodes; the
   track holds two identical halves, so moving it by -50% loops
   seamlessly. Pauses on hover; with reduced motion it stands still. */
:root:has(.sponsors) {
  --header-start: var(--strip-h);
  --header-space: calc(var(--strip-h) + var(--header-h));
}
.sponsors {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  height: var(--strip-h);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, #001f3d, #003a6e 50%, #001f3d);
  color: #fff;
}
.sponsors__track {
  display: flex;
  width: max-content;
  animation: sponsors-marquee 40s linear infinite;
}
.sponsors:hover .sponsors__track {
  animation-play-state: paused;
}
.sponsors__list {
  display: flex;
  align-items: center;
}
.sponsors__item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* glowing node between repetitions */
.sponsors__item::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 var(--s-lg);
  border-radius: 50%;
  background: var(--ds-primary-text);
  box-shadow: 0 0 0 3px rgba(0, 196, 248, 0.16), 0 0 8px rgba(0, 196, 248, 0.7);
}
@keyframes sponsors-marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sponsors__track {
    animation: none;
  }
}

/* Two states. At the top of the page: a square, full-width bar right under
   the sponsor strip (--header-start), its content lined up with the page
   container. Once the page scrolls (data-scrolled, header.js): the floating
   glass pill, detached from the viewport edges, rounded, the width of the
   page content (so the logo still lines up with it). */
.site-header {
  /* one soft ease-out for the bar <-> pill morph */
  --morph: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  top: var(--header-top);
  /* inset from both sides, so the morph shrinks / grows symmetrically */
  left: calc((100% - var(--header-w)) / 2);
  right: calc((100% - var(--header-w)) / 2);
  z-index: 110;
  height: var(--header-h);
  border-radius: 16px;
  display: flex;
  align-items: center;
  /* glass: see-through, only the blur and a faint sheen set it apart; once
     the page scrolls it keeps the glass, just a touch more tint so the menu
     stays legible over bright cards */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  transition: background 0.4s ease, top var(--morph), left var(--morph), right var(--morph),
    border-radius var(--morph), box-shadow var(--morph);
}
.site-header:not([data-scrolled]) {
  top: var(--header-start, 0px);
  left: 0;
  right: 0;
  border-radius: 0;
  border-color: transparent transparent rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.site-header:not([data-scrolled]) .site-header__inner {
  padding-inline: max(20px, calc((100% - var(--container)) / 2));
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__inner {
    transition: background 0.4s ease;
  }
}
.site-header[data-stuck] {
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.42), rgba(8, 12, 18, 0.3));
}
/* the pill is the content width + 32px, so 16px inner padding puts the
   logo on the same line as the hero title */
.site-header__inner {
  width: 100%;
  max-width: none;
  padding-inline: 16px;
  transition: padding var(--morph);
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}

.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.14s ease;
}
.site-nav a {
  position: relative;
}
.site-nav a:hover {
  color: #fff;
}
.site-nav a[aria-current="location"] {
  color: #fff;
}
.site-nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--ds-primary);
}
.site-header[data-stuck] .site-nav a {
  color: var(--body);
}
.site-header[data-stuck] .site-nav a:hover,
.site-header[data-stuck] .site-nav a[aria-current="location"] {
  color: #fff;
}
@media (max-width: 1440px) {
  .site-nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  margin-left: auto;
}
@media (min-width: 1441px) {
  .header-actions {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .header-actions__cta {
    display: none;
  }
}
@media (min-width: 641px) {
  .drawer__cta {
    display: none;
  }
}

/* language dropdown: a disclosure button revealing a list of links (each
   language has its own URL, so this isn't a listbox) */
.lang-dd {
  position: relative;
}
.lang-dd__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.lang-dd__btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.site-header[data-stuck] .lang-dd__btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-header[data-stuck] .lang-dd__btn:hover {
  border-color: var(--hairline);
}
.lang__globe {
  flex: none;
  opacity: 0.7;
}
.lang__flag {
  width: 19px;
  height: 14px;
  border-radius: 2.5px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.lang__chev {
  flex: none;
  opacity: 0.65;
  transition: transform 0.18s ease;
}
.lang-dd__btn[aria-expanded="true"] .lang__chev {
  transform: rotate(180deg);
}
.lang-dd__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 140;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.lang-dd__menu[hidden] {
  display: none;
}
.lang-dd__menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: background 0.12s ease;
}
.lang-dd__menu a:hover {
  background: var(--ds-surface);
  color: #fff;
}
.lang-dd__menu a[aria-current="true"] {
  background: var(--ds-surface);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--ds-primary);
}
.lang__abbr {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.lang-dd__menu a[aria-current="true"] .lang__abbr {
  color: var(--navy-700);
}
@media (max-width: 420px) {
  .site-header__inner {
    gap: var(--s-sm);
  }
  .lang-dd__btn .lang__flag {
    display: none;
  }
  .lang-dd__btn {
    padding: 0 10px;
  }
  .lang-dd__menu {
    min-width: 196px;
  }
}

/* ============================================================
   MOBILE NAVIGATION
   Below 1080px the links stop fitting the bar; instead of disappearing
   they move to a panel: a button with aria-expanded + a drawer with
   trapped focus, Escape, click-outside, and locked background scroll.
   ============================================================ */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  transition: background 0.14s ease;
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.site-header[data-stuck] .menu-btn {
  background: rgba(255, 255, 255, 0.1);
}
.menu-btn__box {
  display: block;
  position: relative;
  width: 18px;
  height: 12px;
}
.menu-btn__box i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.16s ease, top 0.22s ease;
}
.site-header[data-stuck] .menu-btn__box i {
  background: #fff;
}
.menu-btn__box i:nth-child(1) {
  top: 0;
}
.menu-btn__box i:nth-child(2) {
  top: 5px;
}
.menu-btn__box i:nth-child(3) {
  top: 10px;
}
.menu-btn[aria-expanded="true"] .menu-btn__box i:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__box i:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .menu-btn__box i:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}
@media (max-width: 1440px) {
  .menu-btn {
    display: flex;
  }
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.scrim[hidden] {
  display: none;
}
.scrim[data-open] {
  opacity: 1;
}

.drawer {
  position: fixed;
  z-index: 130;
  top: calc(var(--header-space) + 8px);
  left: 50%;
  width: var(--header-w);
  margin-left: calc(var(--header-w) / -2);
  max-height: calc(100dvh - var(--header-space) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.9);
  padding: var(--s-lg) 0 calc(var(--s-lg) + env(safe-area-inset-bottom));
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.drawer[hidden] {
  display: none;
}
.drawer[data-open] {
  transform: none;
  opacity: 1;
}
.drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.drawer__nav a:hover {
  color: var(--ds-primary-text);
}
.drawer__nav li:last-child a {
  border-bottom: 0;
}
.drawer__cta {
  display: flex;
  margin-top: var(--s-lg);
}
.drawer__cta .btn {
  flex: 1;
  min-height: 48px;
  font-size: 16px;
}
@media (min-width: 1441px) {
  .drawer,
  .scrim {
    display: none !important;
  }
}

/* ============================================================
   FOOTER — blue band, compact: brand + statement, navigation and
   contact in three columns, then a hairline and a centred copyright.
   ============================================================ */
.site-footer {
  background: radial-gradient(70% 120% at 85% 0%, rgba(0, 168, 240, 0.28), transparent 60%),
    linear-gradient(180deg, #003a6e 0%, #001f3d 100%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}
.site-footer > .container {
  padding-top: var(--s-xxl);
  padding-bottom: var(--s-lg);
}
.site-footer__main {
  display: grid;
  gap: var(--s-xl);
}
@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
    gap: var(--s-xxl);
  }
}
.site-footer__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-md);
}
.site-footer__statement {
  max-width: 44ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.site-footer__col-title {
  margin-bottom: var(--s-xs);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-primary-text);
}
.site-footer__nav {
  display: grid;
  column-gap: var(--s-xl);
}
@media (min-width: 560px) {
  .site-footer__nav {
    grid-template-columns: repeat(2, max-content);
  }
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: color 0.14s ease;
}
.site-footer__link:hover {
  color: var(--ds-primary-text);
}
.site-footer__powered-by {
  margin-top: var(--s-sm);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bottom {
  margin-top: var(--s-xl);
  padding-top: var(--s-md);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.site-footer__bottom p {
  margin: 0;
}

/* -- Section heading ----------------------------------------------------- */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  margin-bottom: var(--s-xxl);
  max-width: 64ch;
}
.section-heading--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ds-primary-text);
  letter-spacing: 0.01em;
}
.section-heading__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: none;
  background: var(--ds-primary);
}
.section-heading--inverse .section-heading__eyebrow {
  color: var(--cyan-300);
}
.section-heading__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}
.section-heading--inverse .section-heading__title {
  color: #fff;
}
.section-heading__intro {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  margin-top: var(--s-md);
}
/* Justified body copy — requested for these specific sections' intros
   only, not as a site-wide default. */
#metodologia .section-heading__intro,
#advisory .section-heading__intro,
.ai-ops .section-heading__intro {
  text-align: justify;
  text-justify: inter-word;
}
.section-heading--inverse .section-heading__intro {
  color: var(--on-dark-soft);
}
.section-heading--center .section-heading__intro {
  margin-inline: auto;
}

/* -- Tag grid (pill + card variants) -------------------------------------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--surface-card);
  color: var(--ds-text);
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 600;
}
.chip--inverse {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.chip__icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

/* -- Semana PRAXIANAI de Inteligência Artificial ----------------------------
   A dark, full-bleed "save the date" banner — deliberately louder than the
   surrounding light sections, with a few continuously-running animations
   (the pulsing live-dot, the glowing CTA) rather than only scroll-reveal,
   since the brief was specifically to draw attention to an upcoming event,
   not just to narrate content as the visitor scrolls past it. */
.ai-week {
  background: radial-gradient(900px 420px at 85% 0%, rgba(0, 216, 248, 0.28), transparent 60%), var(--ds-band-deep);
  overflow: hidden;
}
.ai-week__inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.ai-week__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-lg);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
.ai-week__badge-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: ai-week-pulse 1.8s ease-in-out infinite;
}
@keyframes ai-week-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
}
.ai-week__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display);
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: var(--tracking-heading);
  color: #fff;
  margin: 0 0 var(--s-sm);
}
.ai-week__tagline {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 var(--s-md);
}
.ai-week__intro {
  max-width: 62ch;
  margin: 0 auto var(--s-xl);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.ai-week__topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-sm);
  list-style: none;
  margin: 0 0 var(--s-xl);
  padding: 0;
}
.ai-week__topic {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.ai-week .btn--primary.ai-week__cta {
  background: #fff;
  color: var(--ds-bg);
  animation: ai-week-cta-glow 2.4s ease-in-out infinite;
}
.ai-week .btn--primary.ai-week__cta:hover {
  background: var(--ds-bg);
  color: #fff;
}
@keyframes ai-week-cta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-week__badge-dot,
  .ai-week .btn--primary.ai-week__cta {
    animation: none;
  }
}

/* -- PraxianAI Academy & Certification --------------------------------------
   Photo + copy in a media-text block (sections.css), then three belt cards
   colored to match the growing-circle illustration (green → blue → black),
   so badges and copy read as one deliberate progression. */
.academy__lead {
  max-width: 60ch;
  margin-top: var(--s-lg);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--ds-primary);
}
.academy__progression {
  display: flex;
  justify-content: center;
  margin: var(--s-xl) 0;
}
.academy__progression-art {
  width: 100%;
  max-width: 480px;
  height: auto;
}
.academy__belts {
  display: grid;
  gap: var(--s-lg);
}
@media (min-width: 760px) {
  .academy__belts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.academy-belt {
  background: var(--ds-band-deep);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
.academy-belt:nth-child(1) {
  border-top-color: var(--green-500);
}
/* belt names carry their color (Green / Blue / Black Belt), so these stay
   literal instead of following the accent; the black belt reads as white
   on the black canvas */
.academy-belt:nth-child(2) {
  border-top-color: #2e7cf6;
}
.academy-belt:nth-child(3) {
  border-top-color: #fff;
}
.academy-belt__index {
  display: block;
  margin-bottom: var(--s-md);
  font-size: 14px;
  color: var(--muted);
}
.academy-belt__label {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--fw-heading);
  color: var(--ink);
  margin: 0;
  letter-spacing: var(--tracking-heading);
}
.academy-belt__role {
  margin: 4px 0 var(--s-sm);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ds-primary-text);
}
.academy-belt__desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}

/* -- Security, Privacy & Governance -----------------------------------------
   OWASP/LGPD/GDPR as the design system's tall "award" cards: the name set
   large at the top, the description anchored to the bottom — louder than
   the regular tag-grid cards for the other controls below. */
.security__lead {
  max-width: 70ch;
  margin-top: var(--s-lg);
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--ds-primary);
}
.standards-row {
  display: grid;
  gap: var(--s-md);
  margin: var(--s-xl) 0;
}
@media (min-width: 760px) {
  .standards-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.standards-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  min-height: clamp(240px, 26vw, 340px);
  background: var(--ds-surface);
  border-top: 3px solid var(--ds-primary);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  overflow: hidden;
  transition: background var(--dur-ds, 0.55s) var(--ease-ds, ease);
}
.standards-badge:nth-child(2) {
  background: var(--ds-band-deep);
}
.standards-badge:hover {
  background: var(--ds-surface-2);
}
.standards-badge:nth-child(2):hover {
  background: var(--ds-band-deep);
}
.standards-badge__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: rgba(0, 168, 240, 0.18);
}
.standards-badge__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cyan-300);
}
.standards-badge__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  color: #fff;
  letter-spacing: var(--tracking-heading);
}
.standards-badge__desc {
  margin: auto 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

/* -- AI Cloud & Infrastructure ---------------------------------------------
   The "stack formula" turns the PDF's own equation ("Infraestrutura + LLMs +
   Tokens + ... + Suporte") into a row of connected pills — a "+" between
   each chip via a pseudo-element, instead of one long plain-text line. */
.ai-cloud__desc {
  max-width: 70ch;
  margin-top: var(--s-lg);
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--orange-500);
}
.stack-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-sm);
  list-style: none;
  margin: var(--s-xl) 0 0;
  padding: 0;
}
.stack-formula__term {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
}
.stack-formula__term:not(:last-child)::after {
  content: "+";
  color: var(--muted);
  font-weight: 600;
}

.editorial {
  display: grid;
  gap: var(--s-xl);
}
@media (min-width: 960px) {
  .editorial {
    grid-template-columns: 5fr 7fr;
  }
}
.editorial__body p {
  margin: 0 0 var(--s-md);
  font-size: 17px;
  color: var(--body);
  max-width: 64ch;
}
#conhecimento .editorial__body p {
  text-align: justify;
  text-justify: inter-word;
}

/* -- About (Quem somos) -----------------------------------------------------
   Centred heading and summary, then the three values as cards linking to
   the cases page (cases.html). Text and cards reveal on scroll
   (data-reveal, base.css). */
/* "Meet our team": a centred pill with the leaders' faces stacked in front
   of the label; it opens the team below */
.about__team-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s-xxl);
}
.about__team-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  min-height: 64px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(0, 168, 240, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.about__team-toggle[hidden] {
  display: none;
}
.about__team-toggle:hover,
.about__team-toggle:focus-visible {
  border-color: var(--ds-primary);
  background: rgba(0, 168, 240, 0.12);
  box-shadow: 0 0 0 6px rgba(0, 168, 240, 0.1), 0 0 32px rgba(0, 168, 240, 0.25);
}
.about__team-faces {
  display: flex;
}
.about__team-faces img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ds-surface);
  border-radius: 50%;
  object-fit: cover;
  transition: margin var(--dur-ds, 0.55s) var(--ease-ds, ease);
}
.about__team-faces img + img {
  margin-left: -14px;
}
.about__team-toggle:hover .about__team-faces img + img {
  margin-left: -6px;
}
.about__team-toggle-icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-primary);
  color: #000;
  transition: transform var(--dur-ds, 0.55s) var(--ease-ds, ease);
}
.about__team-toggle-icon::before,
.about__team-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  background: currentColor;
}
.about__team-toggle-icon::after {
  transform: rotate(90deg);
}
.about__team-toggle[aria-expanded="true"] .about__team-toggle-icon {
  transform: rotate(45deg);
}
@media (max-width: 479px) {
  .about__team-toggle {
    font-size: 16px;
    gap: var(--s-sm);
  }
  .about__team-faces img:nth-child(n + 4) {
    display: none;
  }
}
.team.is-opening {
  animation: team-open var(--dur-ds, 0.55s) var(--ease-ds, ease) both;
}
@keyframes team-open {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .team.is-opening {
    animation: none;
  }
}

.about__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.about__heading {
  margin-bottom: 0;
}
.about__heading .section-heading__title {
  max-width: 16ch;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1;
}
.about__tagline {
  margin: var(--s-lg) 0 var(--s-sm);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}
.about__summary {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}

/* the three values as cards; each one opens its block on /cases/ */
.about__values {
  display: grid;
  gap: var(--s-md);
  margin: var(--s-xxl) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) {
  .about__values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-lg);
  }
}
.about__value {
  display: flex;
}
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300px;
  padding: var(--pad-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(32, 32, 32, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--body);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
/* blue rule that grows across the top on hover */
.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--ds-primary);
  transition: width var(--dur-ds, 0.55s) var(--ease-ds, ease);
}
.value-card:hover,
.value-card:focus-visible {
  border-color: rgba(0, 168, 240, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 168, 240, 0.12);
  transform: translateY(-4px);
}
.value-card:hover::before,
.value-card:focus-visible::before {
  width: 100%;
}
.value-card__index {
  position: absolute;
  top: var(--s-md);
  right: var(--s-lg);
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  /* solid number filled with the logo gradient */
  color: var(--ds-primary-text);
  background: var(--ds-band);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 168, 240, 0.25));
  transition: filter 0.25s ease, transform 0.25s ease;
}
.value-card:hover .value-card__index,
.value-card:focus-visible .value-card__index {
  filter: drop-shadow(0 0 22px rgba(0, 168, 240, 0.55));
  transform: scale(1.06);
}
.value-card__eyebrow {
  margin-top: var(--s-lg);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ds-primary-text);
}
.value-card__title {
  margin: var(--s-sm) 0 var(--s-md);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}
.value-card__title strong {
  font-weight: var(--fw-heading);
  color: var(--ds-primary-text);
}
.value-card__title strong::after {
  content: ".";
  color: var(--ink);
}
.value-card__text {
  margin: 0 0 var(--s-lg);
  font-size: 16px;
  line-height: 1.6;
}
.value-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  margin-top: auto;
  font-weight: 600;
  color: var(--ink);
}
.value-card__arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 168, 240, 0.55);
  border-radius: 50%;
  color: var(--ds-primary-text);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.value-card:hover .value-card__arrow,
.value-card:focus-visible .value-card__arrow {
  background: var(--ds-primary);
  color: var(--ds-primary-ink);
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .value-card,
  .value-card::before,
  .value-card__arrow {
    transition: none;
  }
  .value-card:hover,
  .value-card:focus-visible {
    transform: none;
  }
}

.about__statement {
  margin: var(--s-section) 0;
  max-width: 26ch;
  font-family: var(--font-heading);
  font-size: var(--fs-statement);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
  font-weight: var(--fw-display);
}

/* Shared bold "breather" statement — reused wherever a section needs the
   PDF's isolated one-line emphasis (e.g. About's "Não começamos do zero.",
   Security's "Segurança não é uma etapa..."). */
.statement-highlight {
  margin: var(--s-lg) 0;
  padding-left: var(--s-md);
  border-left: 3px solid var(--ds-primary);
  max-width: 42ch;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: clamp(20px, 2vw, 24px);
  line-height: var(--lh-heading);
  color: var(--ink);
  letter-spacing: var(--tracking-heading);
}
.about__origin-body {
  display: grid;
  gap: var(--s-xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 960px) {
  .about__origin-body {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--s-xxl);
  }
}
.about__origin-heading {
  margin-bottom: var(--s-lg);
}
.about__origin-copy p:not(.statement-highlight) {
  margin: 0 0 var(--s-md);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}
.about__questions-intro {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ds-primary-text);
  letter-spacing: 0.01em;
}
.about-questions {
  list-style: none;
  margin: var(--s-md) 0 var(--s-xl);
  padding: 0;
  display: grid;
  border-top: 1px solid var(--hairline);
}
.about-questions__item {
  display: flex;
  align-items: baseline;
  gap: var(--s-md);
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--hairline);
  transition-property: opacity, transform;
}
.about-questions__item:nth-child(2) {
  transition-delay: 0.08s;
}
.about-questions__item:nth-child(3) {
  transition-delay: 0.16s;
}
.about-questions__item:nth-child(4) {
  transition-delay: 0.24s;
}
.about-questions__item:nth-child(5) {
  transition-delay: 0.32s;
}
.about-questions__index {
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-primary-text);
}
.about-questions__text {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--ink);
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
  list-style: none;
  margin: var(--s-lg) 0 var(--s-xl);
  padding: 0;
}
.signals li {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(0, 168, 240, 0.16);
  border: 1px solid rgba(0, 168, 240, 0.5);
  color: var(--ds-primary-text);
}

.tag-grid {
  display: grid;
  gap: var(--s-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.tag-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .tag-card:hover {
    transform: translateY(-2px);
    border-color: var(--ds-primary);
    box-shadow: 0 16px 32px -20px rgba(0, 168, 240, 0.55);
  }
}
.tag-card--inverse {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: var(--orange-400);
}
.tag-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-md);
  background: var(--surface-card);
}
.tag-card--inverse .tag-card__icon-wrap {
  background: rgba(255, 255, 255, 0.1);
}
.tag-card__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--navy-700);
}
.tag-card--inverse .tag-card__icon {
  color: var(--cyan-300);
}
.tag-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.tag-card--inverse .tag-card__title {
  color: #fff;
}
.tag-card__desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
.tag-card--inverse .tag-card__desc {
  color: var(--on-dark-soft);
}

/* -- Team grid (portrait card + role + name + bio toggle) ------------------ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--s-xl) var(--s-lg);
  margin: 0 0 var(--s-section);
  padding: 0;
  list-style: none;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-card__media {
  aspect-ratio: 4 / 5;
  margin-bottom: var(--s-sm);
  overflow: hidden;
  background: var(--ds-surface);
}
.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-ds, 0.55s) var(--ease-ds, ease);
}
.team-card:hover .team-card__photo,
.team-card:focus-within .team-card__photo {
  transform: scale(1.04);
}
.team-card__role {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ds-primary-text);
}
.team-card__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: var(--fw-heading);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: var(--tracking-heading);
}
.team-card__bio {
  margin-top: var(--s-xs);
  border-top: 1px solid var(--hairline);
}
.team-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.team-card__toggle::-webkit-details-marker {
  display: none;
}
.team-card__toggle::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--ds-primary);
  transition: transform 0.2s ease;
}
.team-card__bio[open] .team-card__toggle::after {
  transform: rotate(45deg);
}
.team-card__bio p {
  margin: 0 0 var(--s-sm);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}


/* -- Methodology intro (heading + animated cycle illustration) ------------ */

.methodology__intro {
  display: grid;
  gap: var(--s-lg);
  margin-bottom: var(--s-xxl);
}
@media (min-width: 960px) {
  .methodology__intro {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--s-xxl);
    align-items: start;
  }
}
.methodology__heading {
  margin-bottom: 0;
}
.methodology__heading .section-heading__title {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
}
.methodology__lead p {
  margin: 0 0 var(--s-md);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}
.methodology__lead .methodology__tagline {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}

/* -- Journey (methodology steps) --------------------------------------------
   Five steps on one hairline rail, a glowing node per step; number, title
   and description sit under it, no boxes. Columns from 860px; below that
   the same journey runs vertically (rail and nodes on the left). Motion, once .journey is revealed: the rail
   draws left to right, nodes pop in turn, then a light pulse runs along the
   rail every 5s and each node rings as the pulse reaches it (node i sits
   at i/5 of the width, so its ring is delayed i/5 of the cycle). */
.journey {
  --cycle: 5s;
  position: relative;
  display: grid;
  gap: var(--s-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey[data-reveal] {
  opacity: 1;
  transform: none;
}
@media (min-width: 860px) {
  .journey {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .journey::before,
  .journey::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    height: 1px;
    pointer-events: none;
  }
  .journey::before {
    right: 0;
    background: linear-gradient(90deg, var(--ds-primary), var(--hairline) 75%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--ease-ds, ease);
  }
  .journey.is-visible::before {
    transform: scaleX(1);
  }
  .journey::after {
    top: 4px;
    width: 140px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--ds-primary-text), transparent);
    filter: drop-shadow(0 0 6px rgba(0, 196, 248, 0.8));
    opacity: 0;
  }
  .journey.is-visible::after {
    animation: journey-pulse var(--cycle) linear 1.2s infinite;
  }
}
@keyframes journey-pulse {
  0% {
    left: -140px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.journey__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  padding-top: var(--s-lg);
  transition-delay: calc(var(--i, 0) * 160ms + 200ms);
}
.journey__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ds-primary);
  box-shadow: 0 0 0 4px rgba(0, 168, 240, 0.16);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  transition-delay: calc(var(--i, 0) * 160ms + 300ms), 0s;
}
.journey__step.is-visible .journey__node {
  transform: scale(1);
}
/* ring that pings as the pulse passes */
.journey__node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--ds-primary-text);
  opacity: 0;
}
.journey.is-visible .journey__node::after {
  animation: journey-ping var(--cycle) ease-out infinite;
  animation-delay: calc(1.2s + var(--cycle) * var(--i, 0) / 5);
}
@keyframes journey-ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  18% {
    transform: scale(3.2);
    opacity: 0;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.journey__step:hover .journey__node {
  box-shadow: 0 0 0 6px rgba(0, 168, 240, 0.22), 0 0 18px rgba(0, 168, 240, 0.6);
}
/* phones / tablets: vertical journey — rail down the left, nodes on it,
   the pulse travelling top to bottom */
@media (max-width: 859px) {
  .journey {
    gap: var(--s-lg);
    padding-left: 28px;
  }
  .journey::before,
  .journey::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 1px;
    pointer-events: none;
  }
  .journey::before {
    bottom: 6px;
    background: linear-gradient(180deg, var(--ds-primary), var(--hairline) 85%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.1s var(--ease-ds, ease);
  }
  .journey.is-visible::before {
    transform: scaleY(1);
  }
  .journey::after {
    left: 4px;
    width: 3px;
    height: 90px;
    border-radius: 3px;
    background: linear-gradient(180deg, transparent, var(--ds-primary-text), transparent);
    filter: drop-shadow(0 0 6px rgba(0, 196, 248, 0.8));
    opacity: 0;
  }
  .journey.is-visible::after {
    animation: journey-pulse-v var(--cycle) linear 1.2s infinite;
  }
  .journey__step {
    padding-top: 0;
  }
  .journey__node {
    top: 4px;
    left: -28px;
  }
}
@keyframes journey-pulse-v {
  0% {
    top: -90px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey::before,
  .journey__node {
    transform: none;
    transition: none;
  }
  .journey.is-visible::after,
  .journey.is-visible .journey__node::after {
    animation: none;
  }
}
.journey__index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ds-primary-text);
}
.journey__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: var(--fw-heading);
  line-height: 1.25;
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
}
.journey__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}

/* -- Agentes de IA confiáveis ---------------------------------------------
   The card at the end of Metodologia (.trust-card) opens the
   /agentes-confiaveis/ page; that page's own styles live in sections.css
   (trust.html). */
.trust-card {
  display: grid;
  gap: var(--s-lg);
  align-items: center;
  margin-top: var(--s-xxl);
  padding: var(--pad-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ds-primary);
  background: var(--ds-surface);
  color: var(--body);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
@media (min-width: 860px) {
  .trust-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-xxl);
    padding: var(--s-xl) var(--s-xxl) var(--s-xl) var(--s-xl);
  }
}
.trust-card:hover,
.trust-card:focus-visible {
  border-color: rgba(0, 168, 240, 0.55);
  border-left-color: var(--ds-primary);
  background: #252525;
}
.trust-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-sm);
}
.trust-card__title {
  max-width: 32ch;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: var(--fw-heading);
  line-height: 1.2;
  color: var(--ink);
}
.trust-card__text {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
}
.trust-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.trust-card__arrow {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 168, 240, 0.55);
  border-radius: 50%;
  color: var(--ds-primary-text);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.trust-card:hover .trust-card__arrow,
.trust-card:focus-visible .trust-card__arrow {
  background: var(--ds-primary);
  color: var(--ds-primary-ink);
  transform: translateX(4px);
}

/* -- Order flow (methodology "ordem da engenharia" stepper) ---------------
   A numbered horizontal stepper (vertical on mobile) with a connecting
   line through the markers — same title/description type scale as the
   .trilho cards right below it, so the two five-step blocks in the
   Metodologia section read as one family instead of two unrelated
   components stacked on top of each other. */
.order-flow {
  position: relative;
  list-style: none;
  margin: 0 0 var(--s-xl);
  padding: 0;
  display: grid;
  gap: var(--s-lg) var(--s-md);
}
@media (min-width: 860px) {
  .order-flow {
    grid-template-columns: repeat(5, 1fr);
  }
  .order-flow::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--hairline);
  }
}
.order-flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
@media (min-width: 860px) {
  .order-flow__step {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 859px) {
  .order-flow__step {
    padding-left: 44px;
  }
  .order-flow__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: calc(var(--s-lg) * -1);
    width: 2px;
    background: var(--hairline);
  }
}
.order-flow__marker {
  position: relative;
  z-index: 1;
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--ds-primary);
  color: var(--ds-primary-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 859px) {
  .order-flow__marker {
    position: absolute;
    left: 0;
    top: 0;
  }
}
.order-flow__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.order-flow__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
  max-width: 34rem;
}

/* -- Comparison block -------------------------------------------------------
   Two premium, contrasting cards: a flat line that visibly stops (left) vs
   a glowing circuit that loops back on itself (right). The right card reuses
   the site's established "dark navy + glow blooms + faint grid" treatment
   (see .hero, .contact-card) so the premium/tech feel stays on-brand. */

.comparison-block {
  display: grid;
  align-items: stretch;
  gap: var(--s-lg);
}
@media (min-width: 860px) {
  .comparison-block {
    grid-template-columns: 5fr 7fr;
  }
}
.comparison-column {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  color: var(--ink);
}
.comparison-column--linear {
  display: flex;
  flex-direction: column;
}
.comparison-column__heading {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.comparison-column--loop .comparison-column__heading {
  color: #fff;
}

/* -- Left: a static line that visibly ends -------------------------------- */

.linear-flow {
  list-style: none;
  margin: var(--s-xl) 0 var(--s-sm);
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  position: relative;
}
@media (min-width: 860px) {
  .linear-flow {
    margin-top: auto;
    margin-bottom: auto;
  }
}
.linear-flow::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 1px;
  background: var(--hairline);
}
.linear-flow__step {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-xs);
  text-align: center;
}
.linear-flow__node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hairline);
  border: 1px solid var(--muted);
}
.linear-flow__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.linear-flow__step--end .linear-flow__node {
  border-radius: 2px;
  background: var(--body);
  border-color: var(--body);
}
.linear-flow__step--end .linear-flow__label {
  color: var(--ink);
}
@media (max-width: 479px) {
  .linear-flow {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-md);
  }
  .linear-flow::before {
    left: 6px;
    top: 6px;
    bottom: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .linear-flow__step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--s-sm);
  }
}

/* -- Right: a premium, glowing, closed-loop circuit ------------------------ */

.comparison-column--loop {
  position: relative;
  background: radial-gradient(620px 260px at 88% -12%, rgba(0, 168, 240, 0.45), transparent 60%),
    radial-gradient(460px 260px at 4% 106%, rgba(0, 216, 248, 0.16), transparent 62%),
    linear-gradient(160deg, #001c33, #000);
  border-color: transparent;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.comparison-column--loop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 82% 6%, #000, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 82% 6%, #000, transparent 65%);
}
.comparison-column--loop > * {
  position: relative;
  z-index: 1;
}
.circuit {
  position: relative;
  margin: var(--s-xl) 0 var(--s-lg);
  padding-left: 30px;
}
.circuit__return {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 100%;
  overflow: visible;
}
.circuit__return-path {
  fill: none;
  stroke: var(--cyan-300);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
  opacity: 0.6;
  animation: circuit-dash 1.4s linear infinite;
}
.circuit__return-arrow {
  fill: var(--cyan-300);
  opacity: 0.85;
}
@keyframes circuit-dash {
  to {
    stroke-dashoffset: -18;
  }
}
.circuit__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  position: relative;
}
.circuit__steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--cyan-300) 0,
    var(--cyan-300) 5px,
    transparent 5px,
    transparent 11px
  );
  opacity: 0.55;
  animation: circuit-flow-y 1.1s linear infinite;
}
@keyframes circuit-flow-y {
  to {
    background-position-y: 11px;
  }
}
.circuit__step {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
}
.circuit__node {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 0 3px rgba(0, 216, 248, 0.18), 0 0 14px 2px rgba(0, 168, 240, 0.7);
}
.circuit__label {
  font-size: 16px;
  line-height: 1.35;
  color: var(--on-dark-soft);
  padding-top: 1px;
}
.circuit__cycle-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 216, 248, 0.5);
  border-radius: var(--r-pill);
  background: rgba(0, 168, 240, 0.16);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--orange-400);
}
.circuit__cycle-icon {
  width: 14px;
  height: 14px;
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  .circuit__return-path,
  .circuit__steps::before {
    animation: none;
  }
}

/* Shared by macros/flow_diagram.html (problem/business-operations flow
   diagrams) — unrelated to the comparison block above. */
.flow-connector {
  margin-inline: auto;
  width: 1px;
  height: var(--s-sm);
  background: var(--hairline);
}
.flow-connector--inverse {
  background: rgba(255, 255, 255, 0.25);
}

/* -- Ecosystem (four pillars, right after Differential) --------------------
   Reads as one strategic framework, not four unrelated cards: a shared
   hairline "rail" runs above the row, and each card connects up to it with
   a small node — same restrained connector language as .order-flow. */
.ecosystem-grid {
  position: relative;
  display: grid;
  gap: var(--s-lg);
  grid-template-columns: 1fr;
  margin-top: var(--s-xl);
  padding-top: 16px;
}
@media (min-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ecosystem-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: var(--hairline);
  }
}
.ecosystem-pillar {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ds-primary);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
@media (min-width: 1080px) {
  .ecosystem-pillar::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-500);
    box-shadow: 0 0 0 3px var(--canvas);
  }
}
.ecosystem-pillar__index {
  display: block;
  margin-bottom: var(--s-xs);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ecosystem-pillar__label {
  margin: 0 0 var(--s-md);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 2.6em;
}
.ecosystem-pillar__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}
.ecosystem-pillar__item {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-text);
  background: var(--ds-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* -- Bento (operations) ---------------------------------------------------- */

.bento {
  display: grid;
  gap: var(--s-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) and (max-width: 819px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__tile--protagonist {
    grid-column: span 2;
  }
}
@media (min-width: 820px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento__tile--protagonist {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento__tile--medium {
    grid-column: span 2;
  }
}
.bento__tile {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .bento__tile:hover {
    transform: translateY(-2px);
    border-color: var(--ds-primary);
    box-shadow: 0 16px 32px -20px rgba(0, 168, 240, 0.55);
  }
}
.bento__tile--protagonist {
  background: radial-gradient(520px 300px at 100% 0%, rgba(0, 216, 248, 0.3), transparent 60%), var(--ds-band-deep);
  color: #fff;
  border-color: transparent;
}
.bento__protagonist-visual {
  display: none;
}
.bento__protagonist-flow {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--s-lg);
}
.tile__badge {
  font-size: var(--fs-label);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.bento__protagonist-flow i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  display: block;
}
.bento__protagonist-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
.bento__tile--protagonist .bento__icon {
  display: none;
}
.bento__tile--protagonist .bento__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: var(--tracking-heading);
  color: #fff;
}
.bento__tile--protagonist .bento__desc {
  color: rgba(255, 255, 255, 0.9);
}
.bento__tile--medium {
  justify-content: center;
}
.bento__tile--compact {
  gap: var(--s-xs);
}
.bento__tile--compact .bento__desc {
  font-size: 15px;
}
.bento__icon {
  display: none;
}
.bento__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.bento__tile--medium .bento__title {
  font-size: 22px;
}
.bento__desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
.bento-more {
  margin-top: var(--s-lg);
}
.bento-more__summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-700);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bento-more__summary::-webkit-details-marker {
  display: none;
}
.bento-more__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-sm);
  margin-top: var(--s-sm);
  padding: 0;
  list-style: none;
}
.bento-more__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  padding: var(--s-sm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
}
.bento-more__icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 2px;
  color: var(--navy-700);
  flex-shrink: 0;
}
.bento-more__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}
.bento-more__desc {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--body);
  margin: 0;
}

/* -- Editorial index (advisory) --------------------------------------------
   An animated accordion, one stage of the advisory process open at a time
   (see static/js/advisory.js for the smooth height animation — this CSS
   also degrades cleanly to plain native <details> show/hide without JS).
   The numbered markers form a connecting rail down the left edge, reusing
   the same "numbered stepper" language as .order-flow/.trilho elsewhere in
   the page, so the four stages read as a process, not a flat reference. */

.editorial-index {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  max-width: 46rem;
}
.editorial-index__group {
  position: relative;
  border: none;
}
.editorial-index__group:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 2px;
  height: calc(100% + var(--s-lg));
  background: var(--hairline);
}
.editorial-index__summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-md);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.editorial-index__summary::-webkit-details-marker {
  display: none;
}
.editorial-index__number {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--ds-surface-2);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.editorial-index__group[open] .editorial-index__number {
  background: var(--ds-primary);
  color: var(--ds-primary-ink);
}
.editorial-index__category {
  flex: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.editorial-index__chevron {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.editorial-index__group[open] .editorial-index__chevron {
  transform: rotate(180deg);
  color: var(--orange-600);
}
.editorial-index__panel {
  display: grid;
  gap: var(--s-md);
  padding: var(--s-md) 0 var(--s-xs) 44px;
}
.editorial-index__item {
  display: flex;
  gap: var(--s-sm);
  opacity: 0;
  transform: translateY(6px);
  animation: editorial-item-in 0.32s ease forwards;
}
@keyframes editorial-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.editorial-index__item:nth-child(2) {
  animation-delay: 0.05s;
}
.editorial-index__item:nth-child(3) {
  animation-delay: 0.1s;
}
.editorial-index__item:nth-child(4) {
  animation-delay: 0.15s;
}
.editorial-index__item-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--navy-700);
}
.editorial-index__item-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.editorial-index__item-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .editorial-index__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* -- Integrations constellation --------------------------------------------
   The wave animates only background + border, never text color — an
   interpolated text color measured 3.34:1 mid-transition. */
.constellation {
  display: grid;
  gap: var(--s-lg);
  margin-top: var(--s-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.constellation-layer {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: block;
}
.constellation-layer__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--s-sm);
}
.constellation-layer__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange-600);
  font-weight: 600;
}
.constellation-layer__category {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
}
.constellation-layer__nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}
.constellation-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: var(--r-pill);
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--surface-card);
  box-shadow: inset 0 0 0 1px transparent;
  animation: chipWave 6s ease-in-out infinite;
  animation-delay: calc((var(--i, 0) * 0.28s) + (var(--col, 0) * 0.5s));
}
.constellation-node::before {
  display: none;
}
@keyframes chipWave {
  0%,
  84%,
  100% {
    background: var(--surface-card);
    box-shadow: inset 0 0 0 1px transparent;
  }
  8%,
  18% {
    background: rgba(0, 168, 240, 0.28);
    box-shadow: inset 0 0 0 1px var(--ds-primary);
  }
}
.integrations__note {
  max-width: 70ch;
  margin-top: var(--s-xl);
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 16px;
  border-left: 3px solid var(--orange-500);
}

/* -- Pull quote (manifesto only — see 05_ ai_architecture chapter) --------- */

.pull-quote {
  background: transparent;
  color: inherit;
}
.pull-quote--manifesto {
  padding: var(--s-section) 0;
  background: var(--ds-band);
  color: var(--ds-primary-ink);
}
.pull-quote__inner {
  position: relative;
}
.pull-quote__text {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-display);
  font-size: var(--fs-statement);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--ds-primary-ink);
  text-wrap: balance;
}
.pull-quote__trace {
  display: block;
  margin-top: var(--s-lg);
  width: clamp(48px, 6vw, 80px);
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--ds-primary-ink);
}

/* -- Contact: closing call-to-action card ----------------------------------
   Same treatment as .comparison-column--loop (navy gradient, glow blooms,
   faint grid masked to the top-right corner) with a glowing edge. Text
   left, the button centred on the right from 860px; stacked on phones. */
.contact-card {
  position: relative;
  display: grid;
  gap: var(--s-xl);
  padding: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(0, 168, 240, 0.4);
  border-radius: var(--r-lg);
  background: radial-gradient(620px 260px at 92% -20%, rgba(0, 168, 240, 0.45), transparent 60%),
    radial-gradient(460px 260px at 0% 120%, rgba(0, 216, 248, 0.16), transparent 62%),
    linear-gradient(160deg, #001c33, #000);
  box-shadow: 0 0 0 1px rgba(0, 168, 240, 0.08), 0 24px 80px -24px rgba(0, 168, 240, 0.35);
  color: #fff;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 88% 0%, #000, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 88% 0%, #000, transparent 60%);
}
.contact-card > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 860px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--s-xxl);
  }
}
.contact-card__title {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: var(--fw-heading);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  color: #fff;
}
.contact-card__subtitle {
  max-width: 56ch;
  margin: var(--s-md) 0 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--body);
}
/* link to the Praxian AI Discovery page, under the subtitle */
.contact-card__discovery {
  margin: var(--s-lg) 0 0;
}
.contact-card__actions {
  display: flex;
  justify-content: center;
}
.contact-card__cta {
  box-shadow: 0 0 32px rgba(0, 168, 240, 0.35);
}
/* phones: the button spans the card and its label stays on one line */
@media (max-width: 859px) {
  .contact-card {
    padding: 28px 20px;
  }
  .contact-card__cta {
    width: 100%;
    white-space: nowrap;
    padding: 14px 16px;
    font-size: 15px;
  }
}
@media (max-width: 359px) {
  .contact-card__cta {
    padding: 12px;
    font-size: 13.5px;
  }
}

/* -- FAQ: heading centred on the left, scroll-driven vertical carousel -----
   Base: a plain accordion list. .faq-section.is-scrub (faq.js) turns the
   list into a fixed window with faded edges; the pinned section's scroll
   progress moves the list up (transform), the bar and counter follow. */

.faq-layout {
  display: grid;
  gap: var(--s-xl);
}
@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-xxl);
    align-items: center;
  }
}
.faq-section__heading {
  margin-bottom: 0;
}
.faq-nav {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-top: var(--s-lg);
  max-width: 280px;
}
.faq-nav[hidden] {
  display: none;
}
.faq-nav__bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--hairline);
  overflow: hidden;
}
.faq-nav__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-primary-text));
  transform: scaleX(0);
  transform-origin: left;
}
.faq-nav__count {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.faq-nav__count [data-faq-current] {
  color: var(--ds-primary-text);
  font-weight: 600;
}
.faq {
  width: 100%;
  border-top: 1px solid var(--hairline);
}
.faq-section.is-scrub .faq-window {
  height: clamp(340px, 50vh, 460px);
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 78%, transparent);
}
.faq-section.is-scrub .faq {
  position: relative;
  will-change: transform;
}
.faq-section.is-scrub .faq-item {
  transition: opacity 0.3s ease;
}
.faq-section.is-scrub .faq-item:not(.is-current) {
  opacity: 0.55;
}
@media (max-width: 1023px) {
  .faq-section.is-scrub .faq-window {
    height: clamp(300px, 46vh, 420px);
  }
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item__summary {
  display: flex;
  align-items: baseline;
  gap: var(--s-md);
  cursor: pointer;
  list-style: none;
  padding: var(--s-lg) 44px var(--s-lg) 0;
  position: relative;
  min-height: 44px;
}
.faq-item__summary::-webkit-details-marker {
  display: none;
}
/* "+" that turns into "×" when open */
.faq-item__summary::before,
.faq-item__summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--ds-primary);
  transition: transform 0.3s var(--ease-ds, ease);
}
.faq-item__summary::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-item__summary::before {
  transform: rotate(45deg);
}
.faq-item[open] .faq-item__summary::after {
  transform: rotate(135deg);
}
.faq-item__index {
  flex: none;
  font-size: 14px;
  color: var(--muted);
}
.faq-item__question {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.faq-item__icon {
  display: none;
}
.faq-item__panel {
  padding: 0 44px var(--s-lg) calc(13px * 2.4 + var(--s-md));
}
.faq-item__answer {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}
@media (max-width: 600px) {
  .faq-item__panel {
    padding-left: 0;
  }
}

/* ============================================================
   ILLUSTRATIONS — animated UI-as-artefact fragments (macros/illustrations.html)
   All share --clock so they pulse together.
   ============================================================ */
.ill {
  margin: 0;
  position: relative;
}
.sk {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
  width: 100%;
}
.sk i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-primary-text));
}
.sk--faint i {
  background: var(--hairline);
  opacity: 0.9;
}
.sk--live i {
  animation: barBreathe var(--clock) ease-in-out infinite;
}
@keyframes barBreathe {
  0%,
  100% {
    width: calc(var(--w) * 0.78);
  }
  50% {
    width: var(--w);
  }
}

/* opaque on purpose: .arow__chip stacks two of these and crossfades them,
   so a translucent fill would let the hidden label show through */
.chip--ok {
  background: #0f2e20;
  color: var(--green-600);
}
.chip--live {
  background: #062a3d;
  color: var(--ds-primary-text);
}
.chip--gov {
  background: #0b2230;
  color: var(--ds-primary-text);
}
.chip--idle {
  background: var(--surface-card);
  color: var(--muted);
}

/* product window (hero console) */
.win {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 168, 240, 0.45);
}
.win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--tint-cool);
}
.win__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hairline);
  flex: none;
}
.win__bar i:first-child {
  background: #ff5f57;
}
.win__bar i:nth-child(2) {
  background: #febc2e;
}
.win__bar i:nth-child(3) {
  background: #28c840;
}
.win__title {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
}
.win__live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-600);
}
.win__live b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
.win__body {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.win__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 168, 240, 0.14), transparent);
  animation: scan var(--clock) linear infinite;
}
@keyframes scan {
  0% {
    transform: translateY(-64px);
  }
  100% {
    transform: translateY(560px);
  }
}
.crow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-xs);
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  animation: rowLift var(--clock) ease-in-out infinite;
  animation-delay: calc(var(--i) * (var(--clock) / 5) * -1);
}
@keyframes rowLift {
  0%,
  10% {
    background: var(--tint-cool);
  }
  22%,
  100% {
    background: transparent;
  }
}
@media (min-width: 680px) {
  .crow {
    grid-template-columns: 210px 1fr auto;
    gap: var(--s-lg);
    align-items: center;
  }
}
.crow:last-child {
  border-bottom: 0;
}
.crow__code {
  font-size: 13px;
  color: var(--navy-700);
  font-weight: 500;
}
.crow__state {
  display: flex;
  align-items: center;
  gap: 8px;
}
.win__foot {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 14px 20px;
  border-top: 1px solid var(--hairline-soft);
  background: var(--tint-blue);
}
.trace-mini {
  flex: none;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--cyan-500), var(--orange-500));
  background-size: 200% 100%;
  animation: slide 4s linear infinite;
}
@keyframes slide {
  to {
    background-position: -200% 0;
  }
}
.win__note {
  font-size: 14px;
  color: var(--body);
}
@media (max-width: 559px) {
  .win__bar,
  .win__foot,
  .crow {
    padding-inline: 16px;
  }
}

/* ingestion */
.ill--ingestion {
  display: flex;
  flex-direction: column;
  align-items: center;
  container-type: inline-size;
}
.ing__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-sm);
  width: 100%;
}
.fchip {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: chipLift 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.65s);
}
@keyframes chipLift {
  0%,
  88%,
  100% {
    transform: translateY(0);
    border-color: var(--hairline);
  }
  8%,
  20% {
    transform: translateY(-3px);
    border-color: var(--navy-500);
  }
}
.fchip__ext {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fchip__ext::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  background: var(--muted);
}
.fchip--doc .fchip__ext::before {
  background: var(--red-500);
}
.fchip--sheet .fchip__ext::before {
  background: var(--green-500);
}
.fchip--api .fchip__ext::before {
  background: var(--blue-400);
}
.fchip__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
@container (max-width: 330px) {
  .ing__row {
    gap: var(--s-xs);
  }
  .fchip {
    padding: 10px 7px;
  }
  .fchip__ext {
    font-size: 11.5px;
    gap: 4px;
  }
}
@container (max-width: 260px) {
  .ing__row {
    gap: 6px;
  }
  .fchip {
    padding: 10px 5px;
  }
  .fchip__ext {
    gap: 3px;
  }
  .fchip__ext::before {
    width: 6px;
    height: 6px;
  }
}
.ing__wires {
  width: 100%;
  height: 46px;
}
.ing__wire {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 1.4;
}
.ing__dot {
  fill: var(--cyan-500);
}
.ing__node {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--canvas);
  border: 1px solid var(--navy-500);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  box-shadow: 0 0 18px rgba(0, 168, 240, 0.35);
}
.ing__node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  flex: none;
  animation: blink 2.2s ease-in-out infinite;
}

/* decision */
.dcard {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
@media (max-width: 559px) {
  .dcard {
    padding: var(--s-md);
  }
}
.dcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
}
.dcard__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.dcard__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dtrail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.dtrail__item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: var(--s-sm);
  align-items: center;
}
.dtrail__mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  position: relative;
  animation: markRing 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes markRing {
  0%,
  6% {
    border-color: var(--hairline);
  }
  14%,
  90% {
    border-color: var(--green-500);
  }
  100% {
    border-color: var(--hairline);
  }
}
.dtrail__mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--green-500);
  transform: scale(0);
  animation: markFill 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes markFill {
  0%,
  6% {
    transform: scale(0);
  }
  14%,
  90% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
.dtrail__label {
  font-size: 15px;
  color: var(--body);
}

/* agents — states swap on their own */
.apanel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  container-type: inline-size;
}
.apanel__head {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--tint-cool);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apanel__live b {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: blink 2s ease-in-out infinite;
}
.apanel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arow {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: var(--s-sm);
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.arow:last-child {
  border-bottom: 0;
}
.arow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: dotCycle 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s);
}
@keyframes dotCycle {
  0%,
  45% {
    background: var(--blue-400);
  }
  50%,
  95% {
    background: var(--green-500);
  }
  100% {
    background: var(--blue-400);
  }
}
.arow__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}
@container (max-width: 400px) {
  .arow {
    grid-template-columns: 10px 1fr;
    row-gap: 6px;
    padding: 12px 16px;
  }
  .arow .sk {
    display: none;
  }
  .arow__states {
    grid-column: 2;
    justify-self: start;
    min-height: 36px;
    align-items: start;
  }
  .arow__chip {
    white-space: normal;
    text-align: left;
    font-size: 12px;
    line-height: 1.32;
    padding: 5px 10px;
  }
  .apanel__head {
    padding-inline: 16px;
  }
}
.arow__states {
  position: relative;
  display: grid;
}
.arow__chip {
  grid-area: 1 / 1;
  animation-duration: 7s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-delay: calc(var(--i) * 0.8s);
}
.arow__chip[data-phase="0"] {
  animation-name: phaseA;
}
.arow__chip[data-phase="1"] {
  animation-name: phaseB;
}
@keyframes phaseA {
  0%,
  42% {
    opacity: 1;
  }
  50%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes phaseB {
  0%,
  42% {
    opacity: 0;
  }
  50%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* memory graph */
.ill--memory svg {
  width: 100%;
  height: auto;
  display: block;
}
.graph__edge {
  stroke: var(--navy-500);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.45;
  stroke-dasharray: 4 7;
  animation: edgeFlow 3.4s linear infinite;
  animation-delay: calc(var(--i) * -0.42s);
}
@keyframes edgeFlow {
  to {
    stroke-dashoffset: -22;
  }
}
.graph__node {
  fill: var(--navy-700);
  animation: nodePulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.34s);
}
@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.ill__cap {
  display: block;
  margin-top: var(--s-sm);
  font-size: 14px;
  color: var(--body);
}
.ill-pair {
  display: grid;
  gap: var(--s-lg);
  margin: var(--s-xl) 0 var(--s-md);
}
@media (min-width: 620px) {
  .ill-pair {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
  }
}

/* -- Features (fcard pair above the technical row list) -------------------- */
.fgrid {
  display: grid;
  gap: var(--s-lg);
}
@media (min-width: 860px) {
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
}
.fcard {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  min-height: clamp(380px, 62vw, 460px);
  overflow: hidden;
}
.fcard__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.fcard__desc {
  margin: 0;
  font-size: 17px;
  color: var(--body);
  max-width: 44ch;
}
.fcard__art {
  margin-top: auto;
  padding-top: var(--s-lg);
}

/* -- Carousel ---------------------------------------------------------------- */
.carousel__label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-600);
}
.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  margin-bottom: var(--s-lg);
  flex-wrap: wrap;
}
.carousel__nav {
  display: flex;
  gap: var(--s-xs);
}
.carousel {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s-xs);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(268px, 100%), 1fr);
  gap: var(--s-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
@media (min-width: 900px) {
  .carousel {
    grid-auto-columns: calc(50% - 12px);
  }
}
.slide {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  min-width: 0;
}
.slide__stage {
  background: var(--tint-cool);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 42vw, 250px);
}
.slide__stage > * {
  min-width: 0;
  max-width: 100%;
}
.slide__stage .ill {
  width: 100%;
  min-width: 0;
}
.slide__cap {
  margin: 0;
  font-size: 17px;
  color: var(--body);
}
.slide__cap b {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 400px) {
  .carousel__head {
    gap: var(--s-sm);
  }
}

/* ============================================================
   RASTRO DE INTELIGÊNCIA — the signature trail (macros/trace.html)
   Two variants in use: fragmented (problem), consolidated (architecture,
   scroll-scrubbed by static/js/architecture.js). The macro's third
   variant, "numbered", is no longer used by any template — methodology
   now renders its ordem flow with .order-flow instead (see that section
   of this file) — but is left in the macro rather than ripped out, since
   the other two variants share its geometry helpers.
   ============================================================ */
.stage-caption {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--s-sm);
}
.trace-wrap {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(14px, 3.2vw, 24px);
  overflow: hidden;
  margin-bottom: var(--s-xl);
}
.trace-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.trace-scroll:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.trace-mobile {
  display: none;
}
@media (max-width: 719px) {
  .trace-mobile {
    display: block;
    width: 100%;
    height: auto;
  }
  .trace-scroll {
    display: none;
  }
}
.trace-mobile .node__code,
.trace-mobile .node__label,
.trace-mobile .node__num {
  text-anchor: start;
}
.trace-wrap .trace-desktop {
  display: block;
  width: 100%;
  min-width: 600px;
  height: auto;
}
.trace-wrap--consolidated .trace-desktop {
  min-width: 420px;
}
.trace-path {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.trace-path--ghost {
  stroke: var(--hairline);
  stroke-width: 2;
}
.node__ring {
  fill: var(--canvas);
  stroke: var(--hairline);
  stroke-width: 2;
}
.node__core {
  fill: var(--hairline);
}
.node[data-state="active"] .node__ring {
  stroke: var(--orange-500);
  stroke-width: 2.4;
}
.node[data-state="active"] .node__core {
  fill: var(--orange-500);
}
.node[data-state="done"] .node__ring {
  stroke: var(--cyan-500);
}
.node[data-state="done"] .node__core {
  fill: var(--cyan-500);
}
.node__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  fill: var(--muted);
}
.node[data-state="active"] .node__code {
  fill: var(--orange-600);
  font-weight: 600;
}
.node__num {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--muted);
}
.node[data-state="active"] .node__num {
  fill: var(--orange-600);
}
.node__label {
  font-size: 15px;
  fill: var(--body);
}
/* SVG text is in viewBox units: the 320-wide phone trace needs smaller
   labels to fit the longest line */
.trace-mobile .node__label {
  font-size: 12.5px;
}
.node__label tspan {
  fill: inherit;
}
.node[data-state="active"] .node__label {
  fill: var(--ink);
  font-weight: 600;
}
.pulse {
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 1.6;
  opacity: 0;
}
.layer-row {
  fill: var(--tint-blue);
  stroke: var(--hairline);
  stroke-width: 1;
}
/* Problem section: the dashed "ghost" trace never consolidates into a
   solid line, so it gets its own ambient motion instead — a marching-dash
   flow plus an out-of-sync pulse per node — to read as alive without
   implying the flow ever completes. */
.trace-wrap--fragmented .trace-path:not(.trace-path--ghost) {
  animation: fragment-flow 3.6s linear infinite;
}
.trace-wrap--fragmented .pulse {
  opacity: 0;
  animation: fragment-pulse 3.2s ease-out infinite;
}
.trace-wrap--fragmented .node:nth-of-type(2) .pulse {
  animation-delay: 0.6s;
}
.trace-wrap--fragmented .node:nth-of-type(3) .pulse {
  animation-delay: 1.2s;
}
.trace-wrap--fragmented .node:nth-of-type(4) .pulse {
  animation-delay: 1.8s;
}
.trace-wrap--fragmented .node:nth-of-type(5) .pulse {
  animation-delay: 2.4s;
}
@keyframes fragment-flow {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes fragment-pulse {
  0% {
    r: 9;
    opacity: 0.5;
  }
  100% {
    r: 21;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trace-wrap--fragmented .trace-path:not(.trace-path--ghost),
  .trace-wrap--fragmented .pulse {
    animation: none;
  }
}
.gear {
  transform-box: fill-box;
  transform-origin: center;
}
.gear__body,
.gear__hub {
  fill: none;
  stroke: var(--orange-600);
  stroke-width: 1.3;
}
.gear__tooth {
  fill: var(--orange-600);
}
.gear-ic {
  color: var(--orange-600);
  transform-origin: center;
  flex: none;
  animation: spin 14s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- architecture (sticky rail + scrub) ---------- */
.arch {
  display: grid;
  gap: var(--s-xl);
}
@media (min-width: 1000px) {
  .arch {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .arch__stage {
    position: sticky;
    top: calc(var(--header-space) + 24px);
  }
  .arch__steps {
    min-height: 118vh;
    justify-content: space-between;
  }
}
.architecture-narrative {
  display: contents;
}
.architecture-narrative__visual {
  grid-column: 1;
}
.architecture-narrative__steps {
  grid-column: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}
@media (min-width: 1000px) {
  .architecture-narrative {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-xl);
  }
  .architecture-narrative__visual {
    grid-column: 1;
  }
  /* Horizontal carousel below the diagram (full width) instead of a tall,
     scroll-spaced vertical list beside it — the steps used to be stretched
     out over 118vh to sync with a scroll-scrubbed diagram; now that the
     diagram animates on its own (architecture.js), that height only
     produced dead whitespace. Scrolled with the mouse wheel
     (architecture.js), snapping card to card. */
  .architecture-narrative__steps {
    grid-column: 1;
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: var(--s-md);
    padding-bottom: var(--s-sm);
    scrollbar-width: thin;
  }
  .architecture-narrative__steps .architecture-step {
    flex: 0 0 320px;
    scroll-snap-align: start;
  }
}
.architecture-step {
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.architecture-step[data-active] {
  background: var(--ds-surface);
  border-left-color: var(--orange-500);
}
.architecture-step__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.architecture-step[data-active] .architecture-step__index {
  color: var(--orange-600);
  font-weight: 600;
}
.architecture-step__icon {
  display: none;
}
.architecture-step__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.architecture-step__desc {
  margin: 0;
  font-size: 17px;
  color: var(--body);
}
.architecture-narrative__link {
  margin-top: var(--s-md);
  color: var(--navy-700);
}

/* rounded controls to match the floating header pill */
.site-header .lang-dd__btn,
.site-header .menu-btn {
  border-radius: 10px;
}
.lang-dd__menu {
  border-radius: 12px;
  overflow: hidden;
}
