html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

:root {
  --page-gutter: clamp(20px, 4vw, 48px);
  --section-top: clamp(92px, 11vh, 116px);
  --section-bottom: clamp(44px, 7vh, 76px);
  --content-width: 1240px;
  --card-gap: clamp(18px, 2vw, 26px);
}

html, body {
  margin: 0;
  padding: 0;
  background: #0B1233;
  overflow-x: hidden;
}
* { box-sizing: border-box; }

/* O runtime usa 100% de altura por padrão; a landing precisa crescer com os capítulos. */
#dc-root,
#dc-root > .sc-host {
  min-height: 100%;
  height: auto !important;
}

.site-shell {
  overflow-x: clip !important;
}

.site-shell > header {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
}

.site-shell > section,
.site-shell > [data-hero] > section {
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  overflow-y: visible !important;
  padding: var(--section-top) var(--page-gutter) var(--section-bottom) !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-gutter: auto;
}

.site-shell > section > div {
  width: 100%;
}

.site-shell > section h2 {
  font-size: clamp(36px, 3.5vw, 48px) !important;
}

/* Navegação discreta da apresentação. */
.presentation-progress {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: clamp(14px, 2vw, 28px);
  display: grid;
  gap: 12px;
  padding: 12px 9px;
  background: rgba(11,18,51,.72);
  border: 2px solid rgba(255,246,229,.13);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(10,14,32,.7);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.presentation-progress::before {
  content: 'Navegação';
  display: block;
  margin: 0 0 4px;
  color: #C9D4F5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.presentation-progress > a {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  color: #FFF6E5;
  border: 0;
}

.presentation-progress > a::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: #6E80C4;
  border: 1px solid #0A0E20;
  border-radius: 3px;
  transform: rotate(45deg);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.presentation-progress > a.is-current::before {
  background: #FFC93C;
  box-shadow: 0 0 0 2px rgba(255,201,60,.2);
  transform: rotate(45deg) scale(1.3);
}

.presentation-progress > a > span {
  position: absolute;
  top: 50%;
  right: 23px;
  width: max-content;
  padding: 5px 8px;
  color: #FFF6E5;
  background: #131E4A;
  border: 2px solid #0A0E20;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #0A0E20;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  translate: 5px -50%;
  transition: opacity .18s ease, translate .18s ease;
}

.presentation-progress > a:hover > span,
.presentation-progress > a:focus-visible > span {
  opacity: 1;
  translate: 0 -50%;
}

/* Transição narrativa reutilizada entre os capítulos. */
.next-chapter {
  --next-color: #C9D4F5;
  --next-accent: #FFC93C;
  display: grid;
  justify-items: center;
  width: min(100%, 760px);
  margin: clamp(38px, 7vh, 68px) auto 0;
  color: var(--next-color);
  text-align: center;
}

.next-chapter--light {
  --next-color: #3D4670;
}

.next-chapter__eyebrow {
  display: flex;
  align-items: center;
  width: min(100%, 430px);
  gap: 10px;
  color: var(--next-color);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.next-chapter__eyebrow::before,
.next-chapter__eyebrow::after {
  content: '';
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: .25;
}

.next-chapter__eyebrow > span::before {
  content: '✦';
  margin-right: 8px;
  color: var(--next-accent);
}

.next-chapter p {
  max-width: 660px;
  margin: 14px 0 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.2;
}

.next-chapter__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 10px 17px;
  color: #FFF6E5;
  background: #131E4A;
  border: 3px solid #0A0E20;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #0A0E20;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

.next-chapter--dark .next-chapter__link,
.next-chapter--process .next-chapter__link {
  color: #0A0E20;
  background: #FFC93C;
}

.next-chapter__arrow {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1;
}

.next-chapter.is-in-view .next-chapter__arrow {
  animation: next-chapter-arrow 2.6s ease-in-out .5s infinite;
}

.next-chapter--process {
  position: relative;
  width: min(100%, 680px);
  padding: 24px clamp(20px, 4vw, 38px);
  color: #C9D4F5;
  background: rgba(11,18,51,.78);
  border: 3px dashed #6E80C4;
  border-radius: 26px;
  box-shadow: 6px 6px 0 #0A0E20;
}

.next-chapter__checkpoint {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -47px;
  margin-bottom: 12px;
  color: #0A0E20;
  background: #FFC93C;
  border: 3px solid #0A0E20;
  border-radius: 14px;
  box-shadow: 3px 3px 0 #0A0E20;
}

.next-chapter--contact {
  margin-top: clamp(36px, 6vh, 58px);
  padding-top: 28px;
  border-top: 3px dashed rgba(61,70,112,.25);
}

.contact-closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  max-width: 760px;
  margin: clamp(34px, 6vh, 56px) auto 0;
  color: #C9D4F5;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  text-align: center;
}

.contact-closing > span:first-child {
  color: #FFC93C;
}

@media (hover: hover) {
  .next-chapter__link:hover {
    color: #FFF6E5;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #0A0E20;
  }

  .next-chapter--dark .next-chapter__link:hover,
  .next-chapter--process .next-chapter__link:hover {
    color: #0A0E20;
  }
}

@keyframes next-chapter-arrow {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 5px; }
}

/* Camada ambiental: estrelas discretas e um cometa ocasional. */
.ambient-section {
  position: relative !important;
  isolation: isolate;
  --comet-cycle: 21s;
  --comet-delay: -7s;
  --comet-top: 18%;
  --comet-travel: 58vw;
}

.ambient-section > :not(.ambient-stars) {
  position: relative;
  z-index: 2;
}

.ambient-stars {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  width: auto !important;
  max-width: none !important;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255,246,229,.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 31% 72%, rgba(159,176,224,.07) 0 1.2px, transparent 2px),
    radial-gradient(circle at 56% 12%, rgba(255,201,60,.06) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 84%, rgba(255,246,229,.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 94% 42%, rgba(159,176,224,.06) 0 1.2px, transparent 2px),
    radial-gradient(circle at 18% 91%, rgba(255,246,229,.08) 0 .9px, transparent 1.7px),
    radial-gradient(circle at 47% 56%, rgba(159,176,224,.07) 0 1px, transparent 1.9px),
    radial-gradient(circle at 66% 71%, rgba(255,201,60,.06) 0 .9px, transparent 1.7px),
    radial-gradient(circle at 86% 19%, rgba(255,246,229,.08) 0 1px, transparent 1.9px);
}

.ambient-stars::before,
.ambient-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: opacity;
}

.ambient-stars::before {
  background-image:
    radial-gradient(circle at 14% 44%, rgba(255,246,229,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 27% 14%, rgba(159,176,224,.8) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 43% 86%, rgba(255,246,229,.75) 0 .9px, transparent 1.8px),
    radial-gradient(circle at 68% 28%, rgba(255,201,60,.65) 0 1.2px, transparent 2.1px),
    radial-gradient(circle at 83% 64%, rgba(255,246,229,.8) 0 1px, transparent 1.9px),
    radial-gradient(circle at 97% 9%, rgba(159,176,224,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 37% 31%, rgba(255,246,229,.72) 0 .8px, transparent 1.7px),
    radial-gradient(circle at 59% 62%, rgba(159,176,224,.72) 0 1px, transparent 1.9px),
    radial-gradient(circle at 91% 76%, rgba(255,201,60,.58) 0 .9px, transparent 1.8px);
  animation: ambient-twinkle-a 8.7s ease-in-out -2.1s infinite;
}

.ambient-stars::after {
  background-image:
    radial-gradient(circle at 4% 78%, rgba(159,176,224,.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 22% 57%, rgba(255,201,60,.65) 0 .9px, transparent 1.8px),
    radial-gradient(circle at 51% 38%, rgba(255,246,229,.85) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 73% 7%, rgba(159,176,224,.7) 0 1px, transparent 1.9px),
    radial-gradient(circle at 89% 91%, rgba(255,246,229,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 12% 27%, rgba(255,246,229,.75) 0 .9px, transparent 1.8px),
    radial-gradient(circle at 64% 93%, rgba(159,176,224,.68) 0 1px, transparent 1.9px),
    radial-gradient(circle at 81% 48%, rgba(255,246,229,.72) 0 .8px, transparent 1.7px);
  animation: ambient-twinkle-b 12.4s ease-in-out -6.8s infinite;
}

.ambient-section::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: var(--comet-top);
  left: -150px;
  width: 130px;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(159,176,224,.08) 35%, rgba(255,246,229,.58));
  box-shadow: 5px 0 7px rgba(255,246,229,.18);
  transform: rotate(-16deg) translate3d(0, 0, 0);
  will-change: transform, opacity;
  animation: ambient-comet var(--comet-cycle) cubic-bezier(.22,.61,.36,1) var(--comet-delay) infinite;
}

.ambient-section--process { --comet-cycle: 24s; --comet-delay: -15s; --comet-top: 31%; --comet-travel: 64vw; }
.ambient-section--technology { --comet-cycle: 18s; --comet-delay: -4s; --comet-top: 67%; --comet-travel: 52vw; }
.ambient-section--about { --comet-cycle: 25s; --comet-delay: -11s; --comet-top: 23%; --comet-travel: 61vw; }
.ambient-section--contact { --comet-cycle: 20s; --comet-delay: -17s; --comet-top: 76%; --comet-travel: 55vw; }
.ambient-section--footer { --comet-cycle: 23s; --comet-delay: -2s; --comet-top: 35%; --comet-travel: 48vw; }

@keyframes ambient-twinkle-a {
  0%, 100% { opacity: .06; }
  42% { opacity: .26; }
  68% { opacity: .13; }
}

@keyframes ambient-twinkle-b {
  0%, 100% { opacity: .05; }
  31% { opacity: .14; }
  72% { opacity: .24; }
}

@keyframes ambient-comet {
  0%, 72% { opacity: 0; transform: rotate(-16deg) translate3d(0, 0, 0); }
  75% { opacity: 0; }
  77% { opacity: .22; }
  87% { opacity: .14; transform: rotate(-16deg) translate3d(var(--comet-travel), 9vh, 0); }
  91%, 100% { opacity: 0; transform: rotate(-16deg) translate3d(calc(var(--comet-travel) + 14vw), 12vh, 0); }
}

/* O divisor decorativo não cria uma faixa extra entre o hero e Serviços. */
.site-shell > [data-hero="b"] > section + div {
  display: none !important;
}

/* Hero */
.site-shell > [data-hero="b"] > section {
  padding-top: clamp(98px, 12vh, 124px) !important;
  padding-bottom: clamp(28px, 4vh, 48px) !important;
}

.site-shell > [data-hero="b"] h1 {
  font-size: clamp(42px, 5vw, 72px) !important;
}

.hero-typewriter {
  display: inline-block;
  width: 100%;
  height: 2em;
  min-height: 2em;
  position: relative;
  transition: opacity .46s ease, transform .46s ease;
}

.hero-typewriter.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}

.hero-typewriter__accent {
  color: #FFC93C;
}

.hero-typewriter__cursor {
  display: none;
}

.hero-typewriter::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: .78em;
  margin-left: 6px;
  vertical-align: -.04em;
  border-radius: 999px;
  background: #FFC93C;
  opacity: .8;
  animation: hero-typewriter-cursor 1s ease-in-out infinite;
}

@keyframes hero-typewriter-cursor {
  0%, 100% { opacity: .25; }
  50% { opacity: .9; }
}

/* Serviços */
#servicos .services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--card-gap) !important;
  margin-top: clamp(30px, 5vh, 44px) !important;
  align-items: stretch;
}

#servicos .service-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  height: 100%;
  padding: clamp(22px, 2.2vw, 28px) !important;
  transition: transform .22s ease, box-shadow .22s ease;
}

/* Textos auxiliares compactos, mas ainda confortáveis para leitura. */
.next-chapter__eyebrow,
.technology-eyebrow,
.project-card__type,
.service-card__category {
  font-size: max(12px, 0.75em);
}

.project-card__content p,
.project-story dd,
.technology-group p,
.faq-item p {
  line-height: 1.55;
}

#servicos .service-card--dark {
  grid-column: 2;
}

.service-card__icon {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #0A0E20;
  border: 3px solid #0A0E20;
  border-radius: 17px;
  box-shadow: 3px 3px 0 #0A0E20;
  transition: transform .22s ease;
}

.service-card__icon--yellow { background: #FFC93C; }
.service-card__icon--cyan { background: #6ED0D8; }
.service-card__icon--pink { background: #F6A5B8; }

.service-card__icon svg {
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#servicos .service-card h3 {
  margin: 20px 0 9px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(21px, 1.7vw, 24px);
  line-height: 1.12;
}

#servicos .service-card > p {
  margin: 0 0 20px;
  color: #3D4670;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

#servicos .service-card--dark > p {
  color: #C9D4F5;
}

.service-card__category {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 11px;
  color: #3D4670;
  background: #F2EDDE;
  border: 2px solid #0A0E20;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.service-card--dark .service-card__category {
  color: #C9D4F5;
  background: #131E4A;
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(32px, 5vh, 48px);
  padding: clamp(24px, 3vw, 34px);
  color: #FFF6E5;
  background: #131E4A;
  border: 3px solid #0A0E20;
  border-radius: 26px;
  box-shadow: 7px 7px 0 #0A0E20;
}

.services-cta h3 {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.services-cta p {
  margin: 8px 0 0;
  color: #C9D4F5;
  font-size: 15px;
  font-weight: 600;
}

.services-cta > a {
  flex-shrink: 0;
  padding: 14px 22px;
  color: #0A0E20;
  background: #FFC93C;
  border: 3px solid #0A0E20;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #0A0E20;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  #servicos .service-card:hover {
    transform: translateY(-4px) rotate(-.25deg);
    box-shadow: 8px 10px 0 #0A0E20 !important;
  }

  #servicos .service-card:hover .service-card__icon {
    transform: translateY(-2px) rotate(3deg);
  }

  .services-cta > a:hover {
    color: #0A0E20;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #0A0E20;
  }
}

/* Processo */
#processo {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow-y: visible;
  scroll-snap-stop: normal;
  scrollbar-gutter: auto;
}

#processo > div:not(.ambient-stars),
#projetos > div {
  max-width: var(--content-width) !important;
}

#processo .process-path {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(280px, 390px) minmax(120px, 1fr) minmax(280px, 390px) !important;
  grid-template-rows: repeat(4, minmax(210px, auto));
  gap: 54px 24px !important;
  margin-top: clamp(30px, 5vh, 44px) !important;
  min-height: 1120px;
  align-items: center;
  overflow: visible;
}

#processo .process-card {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 205px;
  padding: clamp(22px, 2vw, 28px) !important;
  transform-origin: center;
}

#processo .process-card:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
  transform: rotate(-1.5deg);
}

#processo .process-card:nth-of-type(2) {
  grid-column: 3;
  grid-row: 2;
  transform: rotate(1.2deg);
}

#processo .process-card:nth-of-type(3) {
  grid-column: 1;
  grid-row: 3;
  transform: rotate(1deg);
}

#processo .process-card:nth-of-type(4) {
  grid-column: 3;
  grid-row: 4;
  transform: rotate(-1.2deg);
}

#processo .process-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: -13px;
  width: 34px;
  height: 20px;
  border-radius: 50%;
  background: #0A0E20;
  opacity: .28;
  filter: blur(2px);
}

.process-helper-card {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  z-index: 3;
  display: flex;
  gap: 13px;
  width: 100%;
  padding: 18px;
  color: #0A0E20;
  background: #FFF6E5;
  border: 3px solid #0A0E20;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #0A0E20, 0 0 0 10px rgba(19,30,74,.96);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px) rotate(-72deg) scale(.94);
  transform-origin: 28px -18px;
  will-change: transform, opacity;
}

.process-helper-card::before {
  content: '';
  position: absolute;
  top: -39px;
  left: 16px;
  width: 24px;
  height: 24px;
  background: #FFC93C;
  border: 3px solid #0A0E20;
  border-radius: 50%;
  box-shadow: 3px 3px 0 #0A0E20;
}

.process-helper-card.is-visible {
  visibility: visible;
  animation: helper-card-unfold .95s cubic-bezier(.2,.82,.25,1.12) forwards;
}

.process-helper-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #6ED0D8;
  border: 3px solid #0A0E20;
  border-radius: 12px;
}

.process-helper-card__icon > span {
  width: 15px;
  height: 10px;
  border: 3px solid #0A0E20;
  border-radius: 50%;
}

.process-helper-card__icon > span::after {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  margin: 1px auto 0;
  background: #0A0E20;
  border-radius: 50%;
}

.process-helper-card strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.process-helper-card p {
  margin: 7px 0 0;
  color: #3D4670;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

@keyframes helper-card-unfold {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotate(-72deg) scale(.94);
  }
  56% {
    opacity: 1;
    transform: translateY(0) rotate(2deg) scale(1.01);
  }
  76% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-1.5deg) scale(1);
  }
}

@keyframes helper-card-unfold-stacked {
  0% {
    opacity: 0;
    transform: translateY(-22px) rotate(-18deg) scaleY(.72);
  }
  60% {
    opacity: 1;
    transform: translateY(3px) rotate(2deg) scaleY(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-.7deg) scaleY(1);
  }
}

.process-path__trail {
  position: absolute;
  z-index: 0;
  inset: 18px 0 0;
  width: 100%;
  height: calc(100% - 30px);
  overflow: visible;
  pointer-events: none;
}

.process-path__trail-shadow,
.process-path__trail-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-path__trail-shadow {
  stroke: #0A0E20;
  stroke-width: 22;
}

.process-path__trail-line {
  stroke: #FFC93C;
  stroke-width: 11;
  stroke-dasharray: 3 24;
}

.process-path__trail-mobile {
  display: none;
}

/* Tecnologias */
.site-shell > section[data-screen-label="Tecnologias"] {
  display: flex;
  align-items: center;
}

.technology-content {
  display: grid;
  gap: clamp(22px, 3vh, 32px);
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.technology-intro {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(420px, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.technology-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  padding: 8px 14px;
  color: #9FB0E0;
  background: #131E4A;
  border: 3px solid #0A0E20;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #0A0E20;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.technology-eyebrow::before {
  content: '';
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  background: #FFC93C;
  border-radius: 3px;
  transform: rotate(45deg);
}

.technology-intro h2 {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(34px, 3.2vw, 46px) !important;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.technology-intro p {
  max-width: 720px;
  margin: 13px 0 0;
  color: #C9D4F5;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.technology-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.technology-group {
  position: relative;
  min-height: 218px;
  padding: 22px;
  background: rgba(19,30,74,.92);
  border: 3px solid #0A0E20;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #0A0E20;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.technology-group::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 86px;
  height: 86px;
  border: 3px solid rgba(10,14,32,.55);
  border-radius: 50%;
  opacity: .45;
}

.technology-group__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0A0E20;
  border: 3px solid #0A0E20;
  border-radius: 13px;
  box-shadow: 3px 3px 0 #0A0E20;
}

.technology-group--yellow .technology-group__icon { background: #FFC93C; }
.technology-group--cyan .technology-group__icon { background: #6ED0D8; }
.technology-group--pink .technology-group__icon { background: #F6A5B8; }

.technology-group--yellow .technology-group__icon > span {
  width: 21px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 4px 0 rgba(10,14,32,.2);
}

.technology-group--cyan .technology-group__icon {
  grid-template-columns: repeat(2, 8px);
  gap: 7px;
}

.technology-group--cyan .technology-group__icon::before {
  content: '';
  position: absolute;
  width: 17px;
  height: 3px;
  background: currentColor;
}

.technology-group--cyan .technology-group__icon > span {
  z-index: 1;
  width: 9px;
  height: 9px;
  background: currentColor;
  border: 2px solid #6ED0D8;
  border-radius: 50%;
}

.technology-group--pink .technology-group__icon > span {
  width: 17px;
  height: 17px;
  background: currentColor;
  border-radius: 5px;
  transform: rotate(45deg);
}

.technology-group h3 {
  margin: 17px 0 6px;
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
}

.technology-group > p {
  margin: 0;
  color: #C9D4F5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.technology-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.technology-tags > span {
  padding: 6px 9px;
  color: #FFF6E5;
  background: #0B1233;
  border: 2px solid #0A0E20;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
}

.technology-partnership {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 19px 22px;
  color: #0A0E20;
  background: #FFF6E5;
  border: 3px solid #0A0E20;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #0A0E20;
}

.technology-partnership__marker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 3px;
  place-items: center;
  width: 48px;
  height: 44px;
  background: #FFC93C;
  border: 3px solid #0A0E20;
  border-radius: 14px;
}

.technology-partnership__marker::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 3px;
  background: #0A0E20;
}

.technology-partnership__marker > span {
  width: 13px;
  height: 13px;
  background: #0A0E20;
  border: 3px solid #FFC93C;
  border-radius: 50%;
}

.technology-partnership strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.technology-partnership p {
  margin: 4px 0 0;
  color: #3D4670;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.technology-partnership > a {
  padding: 11px 17px;
  color: #FFF6E5;
  background: #131E4A;
  border: 3px solid #0A0E20;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #0A0E20;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .technology-group:hover {
    transform: translateY(-3px);
    box-shadow: 8px 9px 0 #0A0E20;
  }

  .technology-partnership > a:hover {
    color: #FFF6E5;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #0A0E20;
  }
}

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(22px, 2.5vw, 30px) !important;
  margin-top: clamp(30px, 5vh, 44px) !important;
  align-items: stretch;
}

.project-card {
  display: grid;
  grid-template-rows: 126px 1fr;
  min-width: 0;
  height: 100%;
  background: #FFFFFF;
  border: 3px solid #0A0E20;
  border-radius: 26px;
  box-shadow: 7px 7px 0 #0A0E20;
  overflow: hidden;
}

.project-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 3px solid #0A0E20;
  overflow: hidden;
}

.project-card--yellow .project-card__visual { background: #FFE08A; }
.project-card--cyan .project-card__visual { background: #BDEEF1; }
.project-card--pink .project-card__visual { background: #F9CBD6; }

.project-card__visual::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border: 3px dashed rgba(10,14,32,.28);
  border-radius: 50%;
}

.project-card__visual > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #FFF6E5;
  background: #131E4A;
  border: 3px solid #0A0E20;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #0A0E20;
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.project-card:nth-child(even) .project-card__visual > span {
  transform: rotate(4deg);
}

.project-card__visual > i {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FFF6E5;
  border: 2px solid #0A0E20;
  border-radius: 4px;
  transform: rotate(45deg);
}

.project-card__visual > i:nth-of-type(1) { top: 24px; left: 23%; }
.project-card__visual > i:nth-of-type(2) { right: 20%; bottom: 25px; width: 9px; height: 9px; }
.project-card__visual > i:nth-of-type(3) { top: 19px; right: 10%; width: 7px; height: 7px; }

.project-card__content {
  padding: clamp(20px, 2vw, 26px) !important;
}

.project-card__type {
  color: #3D4670;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 10px 0 18px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(21px, 1.8vw, 24px);
  line-height: 1.12;
}

.project-story {
  display: grid;
  gap: 0;
  margin: 0;
}

.project-story > div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 2px dashed #DDD6C5;
}

.project-story dt {
  align-self: start;
  padding: 4px 6px;
  color: #0A0E20;
  background: #F2EDDE;
  border: 2px solid #0A0E20;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.project-story dd {
  margin: 0;
  color: #3D4670;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* Sobre, FAQ e Contato */
#sobre > div {
  gap: clamp(36px, 5vw, 64px) !important;
}

#sobre > div > div:last-child {
  height: clamp(300px, 48vh, 400px) !important;
}

#faq > div > div:last-child {
  gap: clamp(12px, 2vh, 17px) !important;
}

#faq details {
  padding: clamp(18px, 2.2vh, 23px) clamp(20px, 2vw, 26px) !important;
}

#contato > div {
  gap: clamp(32px, 5vw, 56px) !important;
  align-items: center !important;
}

#contato form {
  gap: 14px !important;
  padding: clamp(24px, 3vw, 32px) !important;
}

/* Scroll reveal: progressive enhancement ativado pelo DCLogic. */
.scroll-reveal {
  --reveal-delay: 0ms;
  --reveal-duration: 580ms;
  --reveal-x: 0px;
  --reveal-y: 24px;
  --reveal-scale: 1;
}

html.has-scroll-animations .scroll-reveal {
  opacity: 0;
  translate: var(--reveal-x) var(--reveal-y);
  scale: var(--reveal-scale);
}

html.has-scroll-animations .scroll-reveal--fade-up.is-in-view,
html.has-scroll-animations .scroll-reveal--eyebrow.is-in-view,
html.has-scroll-animations .scroll-reveal--from-left.is-in-view,
html.has-scroll-animations .scroll-reveal--from-right.is-in-view {
  animation: scroll-reveal-enter var(--reveal-duration) cubic-bezier(.22,1,.36,1) var(--reveal-delay) both;
}

.scroll-reveal--eyebrow {
  --reveal-duration: 420ms;
  --reveal-y: 16px;
}

.scroll-reveal--pop {
  --reveal-duration: 540ms;
  --reveal-y: 20px;
  --reveal-scale: .97;
}

html.has-scroll-animations .scroll-reveal--pop.is-in-view {
  animation: scroll-reveal-pop var(--reveal-duration) cubic-bezier(.22,1,.36,1) var(--reveal-delay) both;
}

.scroll-reveal--journey-left,
.scroll-reveal--journey-right {
  --reveal-duration: 580ms;
  --reveal-y: 14px;
  --reveal-scale: .98;
}

.scroll-reveal--journey-left { --reveal-x: -38px; }
.scroll-reveal--journey-right { --reveal-x: 38px; }

html.has-scroll-animations .scroll-reveal--journey-left.is-in-view,
html.has-scroll-animations .scroll-reveal--journey-right.is-in-view {
  animation: scroll-reveal-journey var(--reveal-duration) cubic-bezier(.22,1,.36,1) var(--reveal-delay) both;
}

.scroll-reveal--from-left {
  --reveal-x: -38px;
  --reveal-y: 8px;
  --reveal-duration: 650ms;
}

.scroll-reveal--from-right {
  --reveal-x: 38px;
  --reveal-y: 8px;
  --reveal-duration: 650ms;
}

html.has-scroll-animations .process-path__trail.scroll-reveal--draw-path {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  translate: 0 0;
  scale: 1;
}

html.has-scroll-animations .process-path__trail.scroll-reveal--draw-path.is-in-view {
  animation: scroll-reveal-path 1100ms cubic-bezier(.22,1,.36,1) var(--reveal-delay) both;
}

@keyframes scroll-reveal-enter {
  from {
    opacity: 0;
    translate: var(--reveal-x) var(--reveal-y);
    scale: var(--reveal-scale);
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes scroll-reveal-pop {
  0% {
    opacity: 0;
    translate: 0 var(--reveal-y);
    scale: var(--reveal-scale);
  }
  72% {
    opacity: 1;
    translate: 0 -2px;
    scale: 1.012;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes scroll-reveal-journey {
  0% {
    opacity: 0;
    translate: var(--reveal-x) var(--reveal-y);
    scale: var(--reveal-scale);
  }
  72% {
    opacity: 1;
    translate: 0 -1px;
    scale: 1.008;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes scroll-reveal-path {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

a { color: #FFC93C; text-decoration: none; }
a:hover { color: #FFE08A; }
input, textarea, select, button { font-family: inherit; }
summary::-webkit-details-marker { display: none; }
@keyframes shc-twinkle { 0%,100% { opacity: .25; transform: scale(.8) rotate(45deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@keyframes shc-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 1080px) {
  .process-helper-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 18px;
    box-shadow: 5px 5px 0 #0A0E20;
    transform: translateY(-22px) rotate(-18deg) scaleY(.72);
    transform-origin: 30px 0;
  }

  .process-helper-card::before {
    display: none;
  }

  .process-helper-card.is-visible {
    animation-name: helper-card-unfold-stacked;
  }
}

@media (max-width: 980px) {
  :root {
    --section-top: 104px;
    --section-bottom: 48px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - (var(--card-gap) / 2));
    justify-self: center;
  }

  .presentation-progress {
    display: none;
  }

  #servicos .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #servicos .service-card--dark {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - (var(--card-gap) / 2));
  }

  .services-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .technology-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .technology-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technology-group:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - (var(--card-gap) / 2));
  }

  .technology-partnership {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .technology-partnership > a {
    grid-column: 2;
    justify-self: start;
  }

  #processo .process-path {
    grid-template-columns: minmax(260px, 340px) minmax(40px, 1fr) minmax(260px, 340px) !important;
    gap-inline: 12px !important;
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutter: 20px;
    --section-top: 96px;
    --section-bottom: 40px;
  }

  .scroll-reveal--from-left,
  .scroll-reveal--from-right {
    --reveal-x: 0px;
    --reveal-y: 18px;
    --reveal-duration: 560ms;
  }

  .scroll-reveal--journey-left { --reveal-x: -16px; }
  .scroll-reveal--journey-right { --reveal-x: 16px; }

  .scroll-reveal--pop {
    --reveal-y: 16px;
  }

  [data-reveal-group="services"],
  [data-reveal-group="technology"],
  [data-reveal-group="projects"],
  [data-reveal-group="faq"] {
    --reveal-delay: 0ms !important;
  }

  .site-shell > header {
    padding: 12px 20px !important;
  }

  .site-shell > header nav {
    display: none !important;
  }

  .site-shell > header > div > a {
    display: none !important;
  }

  .site-shell > [data-hero="b"] > section {
    padding-top: 108px !important;
    overflow-y: auto !important;
  }

  .site-shell > [data-hero="b"] > section > div {
    grid-template-columns: 1fr !important;
  }

  .site-shell > [data-hero="b"] h1 {
    font-size: clamp(38px, 12vw, 54px) !important;
  }

  #servicos > div > div:first-child {
    align-items: flex-start !important;
  }

  #servicos .services-grid,
  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  .project-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  #servicos .service-card--dark {
    grid-column: auto;
    width: 100%;
  }

  .services-cta {
    gap: 20px;
  }

  .services-cta > a {
    width: 100%;
  }

  .technology-groups {
    grid-template-columns: 1fr;
  }

  .technology-group:last-child {
    grid-column: auto;
    width: 100%;
  }

  .technology-partnership {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }

  .technology-partnership > a {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  #processo .process-path {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(4, auto);
    gap: 72px !important;
    min-height: 0;
    padding: 14px 10px 20px;
  }

  #processo .process-card:nth-of-type(n) {
    grid-column: 1;
    width: min(92%, 430px);
  }

  #processo .process-card:nth-of-type(odd) {
    justify-self: start;
    transform: translateX(-4px) rotate(-1deg);
  }

  #processo .process-card:nth-of-type(even) {
    justify-self: end;
    transform: translateX(4px) rotate(1deg);
  }

  .process-path__trail {
    inset: 8px 5% 0;
    width: 90%;
    height: calc(100% - 18px);
  }

  .process-path__trail-desktop {
    display: none;
  }

  .process-path__trail-mobile {
    display: block;
  }

  #servicos .service-card {
    min-height: 0;
  }

  #sobre > div,
  #contato > div {
    grid-template-columns: 1fr !important;
  }

  #contato form {
    padding: 22px !important;
  }

  .next-chapter {
    margin-top: 42px;
  }

  .next-chapter p {
    font-size: 21px;
  }

  .next-chapter__eyebrow {
    width: min(100%, 340px);
  }

  .presentation-progress::before {
    display: none;
  }

  .next-chapter--process {
    margin-top: 58px;
  }

  .contact-closing {
    align-items: flex-start;
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typewriter__cursor {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .ambient-stars::before,
  .ambient-stars::after {
    animation: none;
    opacity: .08;
  }

  .ambient-section::after {
    display: none;
  }

  .next-chapter.is-in-view .next-chapter__arrow {
    animation: none;
  }

  .process-helper-card,
  .process-helper-card.is-visible {
    visibility: visible;
    opacity: 1;
    animation: none;
    transform: rotate(-1.5deg);
  }

  html.has-scroll-animations .scroll-reveal,
  html.has-scroll-animations .scroll-reveal.is-in-view,
  html.has-scroll-animations .process-path__trail.scroll-reveal--draw-path,
  html.has-scroll-animations .process-path__trail.scroll-reveal--draw-path.is-in-view {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    clip-path: none;
    animation: none;
  }

  #servicos .service-card,
  #servicos .service-card__icon,
  .services-cta > a,
  .technology-group,
  .technology-partnership > a {
    transition: none;
  }

  .presentation-progress > a::before,
  .presentation-progress > a > span,
  .next-chapter__link {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1080px) {
  .process-helper-card,
  .process-helper-card.is-visible {
    transform: rotate(-.7deg);
  }
}
