/* Scase — Home */

:root {
  --ink: #141414;
  --night: #0b0b0b;
  --paper: #f2f2ee;
  --paper-hover: #e2e2dc;
  --paper-row: #e6e6e0;
  --green: #09ea6b;
  --green-dark: #06b653;
  --muted: #9a9a94;
  --muted-light: #b9b9b3;
  --muted-tab: #62625e;
  --text-soft: #3d3d3a;
  --text-softer: #4a4a46;
  --line-dark: #333;
  --gutter: clamp(16px, 3vw, 40px);
  --image-radius: 16px;
  --pad-section: clamp(72px, 10vw, 160px);
  --font-sans: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --slide-duration: 6s;
  --marquee-duration: 30s;
  --header-h: 60px;
  --topbar-h: 0px;

  --ease-quad-out: cubic-bezier(.25, .46, .45, .94);
  --ease-expo-out: cubic-bezier(.19, 1, .22, 1);
  --ease-quart-out: cubic-bezier(.165, .84, .44, 1);
  --dur-fade: 1.25s;
  --dur-fade-lead: 1.2s;
  --dur-move: .5s;
  --dur-media: 1.2s;
  --dur-list-line: 1.5s;
  --rise-y: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* The rotated marquee band bleeds past the edges on purpose; clip it here. */
main { overflow-x: clip; }

img { max-width: 100%; }
:is(.hero, .sobre, .traffic-hero, .social-hero, .branding-hero, .seo-image-band, .sites-image-band, .seo-example__image) {
  border-radius: var(--image-radius);
  overflow: hidden;
}
:is(.case, .case__media, .ajuda__media, .media, .post__thumb),
:is(.social-direction__photo, .seo-process__photo) > img {
  border-radius: var(--image-radius);
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--green-dark); }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

section, footer { scroll-margin-top: var(--header-h); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--green); color: var(--ink); font-weight: 700; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow--green { color: var(--green-dark); }

.rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section--dark .rule { border-bottom-color: var(--line-dark); color: var(--muted); }
.section--dark .rule--accent { color: var(--green); }
.section--dark .rule--accent span + span { color: var(--muted); }
.motion-ok .section--dark[data-theme] .rule {
  border-bottom-color: color-mix(in srgb, currentColor 22%, transparent);
  color: color-mix(in srgb, currentColor 60%, transparent);
}
.motion-ok .section--dark[data-theme] .rule--accent span + span {
  color: color-mix(in srgb, currentColor 60%, transparent);
}

.display {
  margin: 0 0 clamp(32px, 5vw, 64px);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(44px, 7vw, 124px);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.display__alt {
  font-weight: 300;
  font-stretch: 62%;
  letter-spacing: -.02em;
  color: var(--green);
}

.heading {
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color .2s, color .2s, transform .12s var(--ease-quad-out);
}
.btn:active { transform: scale(.97); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--ink); color: var(--green); }
.btn--ink { padding: 16px 24px; background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--outline { padding: 12px 20px; border: 1px solid var(--ink); font-weight: 600; font-size: 14px; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--lg { gap: 14px; padding: 18px 26px; font-size: 17px; }
.btn--lg:hover { background: var(--paper); color: var(--ink); }
.btn__plus { font-size: 22px; line-height: 1; }

.section { padding: clamp(64px, 9vw, 140px) var(--gutter); }
.section--roomy { padding-block: var(--pad-section); }
.section--dark { background: var(--ink); color: var(--paper); }
/* Theme morph: the ink backdrop is an overlay whose opacity cross-fades on the
   compositor, instead of transitioning background-color/color, which repainted
   the whole (very tall) section on every frame and, with both colours crossing
   the same mid grey halfway, blanked its text out for an instant. The text
   colour flips in one step instead, once the backdrop is past mid grey, so it
   stays readable (about 4:1 or better) all the way through. */
.motion-ok .section--dark[data-theme] {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  transition: color 0s linear .15s;
}
.motion-ok .section--dark[data-theme]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-quad-out);
}
.motion-ok .section--dark[data-theme].is-lit { color: var(--paper); }
.motion-ok .section--dark[data-theme].is-lit::before { opacity: 1; }
.section--ruled { border-bottom: 1px solid var(--ink); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split--center { align-items: center; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--green); }
.topbar__group { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.topbar__social { display: flex; gap: 18px; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.header__brand { display: block; flex: none; }
.header__brand img { display: block; height: 30px; width: auto; }
.header__cta { flex: none; padding: 11px 18px; font-size: 13px; }

.nav {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link { padding: 8px 11px; border-radius: 999px; transition: background-color .2s, color .2s, transform .12s var(--ease-quad-out); }
.nav__link:hover { background: var(--paper-hover); color: var(--ink); }
.nav__link.is-active { background: var(--ink); color: var(--paper); }
.nav__link:active { transform: scale(.97); }
.nav__cta { display: none; }

.nav__dropdown { position: relative; }
.nav__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nav__caret { font-size: 10px; transition: transform .2s; }
.nav__dropdown.is-open .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, visibility .2s;
}
.nav__dropdown.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; }
.motion-ok .nav__panel {
  transition: opacity .3s var(--ease-quad-out), transform .3s var(--ease-quad-out), visibility 0s linear .3s;
}
.motion-ok .nav__dropdown.is-open .nav__panel {
  transition: opacity .3s var(--ease-quad-out), transform .3s var(--ease-quad-out), visibility 0s linear;
}
.nav__sub {
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}
.nav__sub a {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: normal;
}
.nav__sub a:hover { background: var(--green); color: var(--ink); }
.nav__num { padding-top: 2px; font-family: var(--font-mono); font-size: 11px; opacity: .6; }

.header__menu {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease-quad-out);
}
.header__menu:active { transform: scale(.94); }
.header__menu span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.header__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.header__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 940px) {
  .header__menu { display: flex; }
  .header__cta { margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--ink);
    color: var(--paper);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: normal;
    border-bottom: 6px solid var(--green);
  }
  .nav.is-open { display: flex; }
  .motion-ok .nav {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease-quad-out), visibility 0s linear .4s;
  }
  .motion-ok .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s var(--ease-quad-out), visibility 0s linear;
  }
  .nav__link { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav__link:hover, .nav__link.is-active { background: none; color: var(--green); }
  .nav__toggle { width: 100%; cursor: default; pointer-events: none; }
  .nav__caret { display: none; }
  .nav__panel { position: static; padding: 4px 0 8px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__sub { width: auto; padding: 0; background: none; }
  .nav__sub a { padding: 10px 0; font-size: 16px; font-weight: 500; letter-spacing: 0; }
  .nav__sub a:hover { background: none; color: var(--green); }
  .nav__cta { display: inline-flex; align-self: flex-start; margin-top: 24px; padding: 16px 24px; font-size: 16px; letter-spacing: 0; }

  .motion-ok .header { transition: transform .3s var(--ease-quad-out); }
  .motion-ok .header.is-hidden { transform: translateY(-5rem); }

  .motion-ok .nav__link,
  .motion-ok .nav__toggle,
  .motion-ok .nav__cta,
  .motion-ok .nav__sub li {
    transform: translateY(60%);
    opacity: 0;
    transition: transform .3s var(--ease-quad-out), opacity .3s var(--ease-quad-out);
  }
  .motion-ok .nav.is-open .nav__link,
  .motion-ok .nav.is-open .nav__toggle,
  .motion-ok .nav.is-open .nav__cta,
  .motion-ok .nav.is-open .nav__sub li {
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s var(--ease-quart-out) calc(var(--i, 0) * 75ms), opacity 1s var(--ease-quart-out) calc(var(--i, 0) * 75ms);
  }

  html:not(.js) .header { position: relative; flex-wrap: wrap; }
  html:not(.js) .header__menu,
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav { position: static; display: flex; flex: 1 0 100%; max-height: none; overflow: visible; }
}

html.is-menu-open { overflow: hidden; overscroll-behavior: contain; }

@media (max-width: 420px) {
  .header__cta { display: none; }
  .header__menu { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 88px);
  min-height: clamp(560px, 86vh, 860px);
  padding: clamp(24px, 3vw, 40px) var(--gutter);
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
  touch-action: pan-y;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.1s var(--ease-quad-out), transform 7s var(--ease-quad-out);
}
.hero__bg.is-active { opacity: 1; transform: scale(1.06); }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 11, .94) 0%, rgba(11, 11, 11, .6) 50%, rgba(11, 11, 11, .15) 100%);
}
.hero__columns, .intro__columns {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}
.hero__columns span + span, .intro__columns span + span { border-left: 1px solid rgba(255, 255, 255, .07); }

.hero__meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #bdbdb6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__body { position: relative; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }

.hero__title {
  font-weight: 600;
  font-size: clamp(38px, 6.2vw, 112px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: pretty;
}
[data-hero-title] { display: none; touch-action: pan-y; }
[data-hero-title].is-active { display: block; }
.motion-ok .hero__title { display: grid; }
.motion-ok [data-hero-title] {
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.motion-ok [data-hero-title].is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.motion-ok [data-hero-counter] {
  display: inline-block;
  transition: opacity .3s var(--ease-quad-out), transform .3s var(--ease-quad-out);
}
.motion-ok [data-hero-counter].is-swap { transition: none; opacity: 0; transform: translateY(60%); }

@media (max-width: 940px) {
  .hero {
    min-height: max(480px, calc(100vh - var(--header-h) - var(--topbar-h)));
    min-height: max(480px, calc(100svh - var(--header-h) - var(--topbar-h)));
  }
}

.hero__marked { position: relative; display: inline-block; white-space: nowrap; }
.hero__marked::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.hero__marked--line::after {
  left: 0;
  right: 0;
  bottom: -.1em;
  height: .15em;
  background-image: url('../img/sketch-line.svg?v=51687aa1c31b');
}
.hero__marked--circle::after {
  inset: -.16em -.08em -.12em;
  background-image: url('../img/sketch-circle.svg?v=900e5a7bf2c4');
}

.hero__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__badge { display: block; width: 58px; height: 58px; border-radius: 6px; }
.hero__controls { display: flex; align-items: center; gap: 24px; }
.hero__bars { display: flex; align-items: center; gap: 8px; }
.hero__bar {
  display: flex;
  align-items: center;
  width: clamp(40px, 6vw, 88px);
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__track { position: relative; display: block; width: 100%; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.hero__fill { position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-active .hero__fill { animation: bar-fill var(--slide-duration) linear forwards; }

/* The intro loader's ring (.intro__ring) is this same drawing at a larger
   size: it flies into this one at the end of the intro, so the two must stay
   identical in everything but size. */
.ring, .intro__ring {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  width: clamp(88px, 8vw, 116px);
  height: clamp(88px, 8vw, 116px);
}
.ring__text, .intro__text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 8.6px;
  /* Keep both phrases and separators within the radius-40 circle. */
  letter-spacing: 1.4px;
  fill: var(--paper);
  text-rendering: geometricPrecision;
}
.ring__text { animation: spin 22s linear infinite; }
.ring img, .intro__ring img { display: block; height: 34%; width: auto; }

@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Intro (loader) ----------
   Once per session, motion allowed only: gated in <head> as html.is-intro,
   before first paint, and driven by assets/js/intro.js. While it runs the page
   can't scroll (the gutter stays reserved, so the hero doesn't shift when the
   scrollbar comes back), the hero's ring is hidden (the intro's lands on it)
   and the slider's autoplay bar waits, so the first slide gets its full time.
   The fixed intro doesn't cover that reserved gutter: the canvas behind it is
   darkened to match. */

.intro { display: none; }
.is-intro { overflow: hidden; scrollbar-gutter: stable; background: var(--night); }
.is-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.is-intro .hero .ring { visibility: hidden; }
.is-intro .hero__bar.is-active .hero__fill { animation: none; }

.intro__backdrop { position: absolute; inset: 0; background: var(--night); }
.intro__stage {
  position: relative;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .8s var(--ease-quad-out), transform 1.2s var(--ease-expo-out);
}
.intro.is-ready .intro__stage { opacity: 1; transform: none; }
.intro__ring {
  width: clamp(160px, 28vmin, 280px);
  height: clamp(160px, 28vmin, 280px);
}
.intro__count {
  position: absolute;
  top: calc(100% + clamp(20px, 3vmin, 32px));
  left: 0;
  right: 0;
  color: #bdbdb6;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  text-align: center;
}

/* ---------- Soluções ---------- */

.services { border-top: 1px solid var(--ink); }
.service {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(16px, 3vw, 48px);
  padding: clamp(20px, 2.4vw, 32px) clamp(0px, 1vw, 16px);
  border-bottom: 1px solid var(--ink);
  transition: background-color .2s, transform .12s var(--ease-quad-out);
}
.service:hover { background: var(--green); color: var(--ink); }
.service:active { transform: scale(.97); }
.motion-ok .service[data-reveal="list"] { border-bottom-color: transparent; }
.service__head { display: flex; align-items: baseline; gap: 18px; flex: 1 1 380px; }
.service__num { flex: none; font-family: var(--font-mono); font-size: 12px; }
.service__title {
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.service__desc { flex: 1 1 320px; font-size: 16px; line-height: 1.5; color: var(--text-soft); text-wrap: pretty; }
.service__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Marquee ---------- */

.marquee-frame {
  --marquee-gap: 24px;
  /* Reserve the band’s rotated corners as well as the visible section gap. */
  padding-block-start: calc(var(--marquee-gap) + 1.5vw + 1px);
  padding-block-end: calc(200px + 1.5vw + 1px);
  overflow: hidden;
}
@media (min-width: 900px) {
  .marquee-frame { --marquee-gap: clamp(40px, 3.125vw, 60px); }
}
.marquee {
  margin: 0 -20px;
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--green);
  transform: rotate(-1.5deg);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee__run { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__word {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(36px, 5vw, 80px);
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__word--alt { font-stretch: 62%; color: var(--green); }
.marquee__sep { font-size: clamp(36px, 5vw, 80px); font-weight: 300; color: #555; }

/* ---------- Sobre ---------- */

.sobre {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  background: var(--night) url('../img/scase-office-interior.webp?v=609dd9b0f576') center / cover no-repeat;
  color: var(--paper);
}
.sobre::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .76) 42%, rgba(0, 0, 0, .32) 72%, rgba(0, 0, 0, .2));
}
.sobre .rule { border-bottom-color: rgba(255, 255, 255, .4); }
.sobre__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
  align-items: end;
  gap: clamp(36px, 5vw, 80px);
  padding-top: clamp(48px, 7vw, 100px);
}
.sobre__content { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); min-width: 0; }
.sobre__title {
  max-width: 15ch;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sobre__title em { font-weight: 300; font-style: italic; }
.sobre__title mark {
  padding: 0 .08em;
  background: var(--green);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sobre__lead { max-width: 54ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.sobre__more { display: flex; flex-direction: column; gap: 10px; max-width: 65ch; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .45); }
.sobre__more p { font-size: 16px; line-height: 1.55; color: #e2e2dd; text-wrap: pretty; }
.sobre__anniversary { position: relative; justify-self: end; align-self: start; width: max-content; max-width: 100%; padding-top: clamp(16px, 2vw, 32px); text-align: center; }
.sobre__years { display: block; font-weight: 800; font-stretch: 125%; font-size: clamp(160px, 24vw, 360px); line-height: .72; letter-spacing: -.08em; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
.sobre__years-label { position: relative; display: block; margin-top: 16px; padding-bottom: .45em; font-size: clamp(22px, 2.8vw, 40px); font-weight: 300; line-height: .95; text-transform: uppercase; }
.sobre__years-label strong { font-weight: 800; }
.sobre__years-label::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .16em; background: url('../img/sketch-line.svg?v=51687aa1c31b') center / 100% 100% no-repeat; }
.sobre__rocket { position: absolute; right: -6%; top: 39%; width: clamp(32px, 5vw, 72px); height: auto; }

/* ---------- Work rails and portfolio ---------- */

.work-rail__viewport { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.work-rail__track { display: flex; width: max-content; }
.work-rail__run { display: flex; flex: none; margin: 0; padding: 0 var(--case-gap) 0 0; list-style: none; }
.cases__rows {
  --case-width: max(260px, 30vw);
  --case-gap: clamp(12px, 1.5vw, 20px);
  display: grid;
  gap: var(--case-gap);
}
.cases { align-items: start; gap: var(--case-gap); }
.cases li { flex: none; width: var(--case-width); }
.case { display: block; color: var(--paper); }
/* Native focus scrolling may leave a partially visible link in place. Before
   enhancement, make only the focused card a snap target so it is fully shown. */
.cases__viewport:not(.is-ready) { scroll-snap-type: x mandatory; }
.cases__viewport:not(.is-ready) .case:focus-visible { scroll-snap-align: center; }
.case__media { position: relative; display: block; overflow: hidden; aspect-ratio: 692 / 428; background: #222; }
.case__media::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .35s; }
.case__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .45s, transform .6s var(--ease-quad-out); }
.case__name { position: absolute; right: 18px; bottom: 16px; z-index: 1; max-width: calc(100% - 36px); color: #fff; font-weight: 300; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.1; text-align: right; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease-quad-out); }
.case:is(:hover, :focus-visible) .case__media img { filter: grayscale(0); transform: scale(1.035); }
.case:is(:hover, :focus-visible) .case__media::after,
.case:is(:hover, :focus-visible) .case__name { opacity: 1; transform: none; }
.case:focus-visible { outline-offset: 5px; }
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .motion-ok .work-rail__viewport.is-ready { overflow: hidden; }
  .motion-ok .work-rail__viewport.is-ready .work-rail__track { animation: work-rail-slide 60s linear infinite; }
  .motion-ok .cases__viewport--offset.is-ready .work-rail__track {
    margin-inline-start: calc(var(--case-width) * -.45);
    animation-duration: 75s;
  }
  .motion-ok .cases__rows:is(:hover, :focus-within) .work-rail__track,
  .motion-ok .work-rail__track.is-paused { animation-play-state: paused; }
  .motion-ok .cases__viewport:has(:focus-visible) { overflow-x: auto; }
  .motion-ok .cases__viewport:has(:focus-visible) .work-rail__track { animation: none; margin-inline-start: 0; }
  .cases__viewport:has(:focus-visible) .work-rail__run[aria-hidden="true"] { display: none; }
}
@keyframes work-rail-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .work-rail__run[aria-hidden="true"] { display: none; }
  .cases__rows { --case-width: clamp(220px, 72vw, 380px); }
  .case__media img { filter: none; }
  .case__media::after, .case__name { opacity: 1; transform: none; }
}
@media (max-width: 650px) {
  .sobre { min-height: 0; background-position: 62% center; }
  .sobre::before { background: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .7) 58%, rgba(0, 0, 0, .76)); }
  .sobre__grid { grid-template-columns: minmax(0, 1fr); }
  .sobre__anniversary { justify-self: start; margin-top: 24px; padding-top: 0; }
  .sobre__rocket { right: -15%; }
}
@media (max-width: 400px) {
  .sobre__title { font-size: clamp(32px, 11vw, 38px); }
  #projetos .display { font-size: clamp(31px, 11.5vw, 42px); letter-spacing: -.04em; }
}

/* ---------- Como ajuda ---------- */

.ajuda { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); min-width: 0; }
.ajuda__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.ajuda__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  color: var(--muted-tab);
  font-family: inherit;
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -.03em;
  text-align: left;
  cursor: pointer;
  transition: color .2s, transform .12s var(--ease-quad-out);
}
.ajuda__tab:hover, .ajuda__tab[aria-selected="true"] { color: var(--ink); }
.ajuda__tab:active { transform: scale(.98); }
.motion-ok .ajuda__tab[data-reveal="list"] { border-bottom-color: transparent; }
.ajuda__dot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 15px;
  transition: background-color .2s;
}
.ajuda__tab[aria-selected="true"] .ajuda__dot { background: var(--green); }
.ajuda__panel { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.ajuda__bullets { display: flex; flex-direction: column; gap: 12px; }
.ajuda__bullets li { display: flex; gap: 14px; font-size: 18px; line-height: 1.4; font-weight: 500; }
.ajuda__bullets li::before { content: '—'; padding-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--green-dark); }
.ajuda__checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ajuda__checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}
.ajuda__checks li::before {
  content: '✓';
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.ajuda__media { position: relative; min-width: 0; overflow: hidden; container-type: inline-size; }
.ajuda__media > img { display: block; width: 100%; height: auto; aspect-ratio: 450 / 470; object-fit: cover; }
.ajuda__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .76), transparent 47%, transparent 65%, rgba(0, 0, 0, .72));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease-quad-out), transform .4s var(--ease-quad-out);
}
.ajuda__media:is(:hover, :focus-visible) .ajuda__overlay { opacity: 1; transform: none; }
.ajuda__overlay-title { width: 100%; font-size: clamp(18px, 6.7cqi, 48px); font-weight: 800; font-stretch: 112%; line-height: 1.1; text-align: center; text-transform: uppercase; }
.ajuda__overlay-line { display: block; white-space: nowrap; }
.ajuda__overlay-accent { color: var(--green); }
.ajuda__people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: clamp(10px, 1vw, 13px); font-weight: 700; line-height: 1.15; }
.ajuda__people span { text-shadow: 0 1px 6px #000; }
.ajuda__people small { display: block; font-size: .85em; font-weight: 500; }
@media (hover: none), (pointer: coarse) {
  .ajuda__overlay { opacity: 1; transform: none; }
}

/* ---------- Clientes ---------- */

.clientes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 3vw, 44px) var(--gutter);
  background: var(--green);
}
.clientes__group { display: flex; align-items: center; }
.clientes__avatars { display: flex; }
.clientes__avatars li {
  width: 64px;
  height: 64px;
  margin-right: -12px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #000 center / cover no-repeat;
}
.clientes__count {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 20px 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}
.clientes__text {
  flex: 1 1 360px;
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.clientes .btn { flex: none; }

@media (max-width: 480px) {
  .clientes__avatars li { width: 48px; height: 48px; margin-right: -10px; }
  .clientes__count { height: 48px; padding: 0 16px 0 20px; font-size: 16px; }
}

@media (max-width: 350px) {
  .clientes__group { flex-wrap: wrap; row-gap: 10px; }
}

/* ---------- Quem faz acontecer ---------- */

.section--dark .display { margin-bottom: clamp(40px, 6vw, 80px); }
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.team__card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 300px;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .25s, transform .12s var(--ease-quad-out);
}
.motion-ok .team__card[data-reveal="list"] { border-bottom-color: transparent; }
.team__card:hover { background: #1c1c1c; }
.team__card:active { transform: scale(.98); }
.team__top { display: flex; justify-content: space-between; align-items: flex-start; }
.team__letter { font-weight: 800; font-stretch: 125%; font-size: 88px; line-height: .75; letter-spacing: -.05em; color: var(--green); }
.team__num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.team__body { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.team__body h3 { font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; }
.team__body p { font-size: 15px; line-height: 1.5; color: var(--muted-light); text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq__media {
  min-width: 0;
  align-self: center;
}
.faq__media .media img { display: block; width: 100%; height: auto; }
.faq { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--ink); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
  transition: color .2s, transform .12s var(--ease-quad-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green-dark); }
.faq__item summary:active { transform: scale(.98); }
.motion-ok .faq__item[data-reveal="list"] { border-bottom-color: transparent; }
.faq__sign {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
}
.faq__sign::before, .faq__sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__sign::before { width: 13px; height: 1.5px; }
.faq__sign::after { width: 1.5px; height: 13px; transition: transform .3s var(--ease-quart-out); }
.faq__item[open] .faq__sign { background: var(--green); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__item p { padding: 0 58px 22px 0; overflow: hidden; font-size: 16px; line-height: 1.55; color: var(--text-softer); text-wrap: pretty; }

/* ---------- Ideias ---------- */

.ideias { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.ideias__lead { max-width: 540px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; text-wrap: pretty; }
.ideias__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.ideias__grid article { display: flex; flex-direction: column; gap: 10px; }
.ideias__num { font-family: var(--font-mono); font-size: 12px; color: var(--green-dark); }
.ideias__grid h3 { font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
.ideias__grid p { font-size: 15px; line-height: 1.55; color: var(--text-softer); }
.ideias__img { display: block; justify-self: end; width: 100%; max-width: 560px; aspect-ratio: 502 / 531; }
.ideias__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blog ---------- */

.blog__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.blog__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.blog__title { max-width: 14ch; }
.posts { border-top: 1px solid var(--ink); }
.post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 40px);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  transition: background-color .2s, transform .12s var(--ease-quad-out);
}
.post:hover { background: var(--paper-row); color: var(--ink); }
.post:active { transform: scale(.97); }
.motion-ok .post[data-reveal="list"] { border-bottom-color: transparent; }
.post__meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.post__meta span { color: var(--green-dark); }
.post__title { font-weight: 600; font-size: clamp(18px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -.025em; text-wrap: pretty; }
.post__thumb { width: clamp(84px, 11vw, 150px); aspect-ratio: 416 / 270; overflow: hidden; background: var(--ink); }
.post__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post__thumb img { transform: scale(1.05); }

@media (max-width: 600px) {
  .post { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .post__meta { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
}

/* ---------- Footer ---------- */

.footer {
  --muted: var(--muted-light);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(64px, 9vw, 140px) var(--gutter) 20px;
  background: var(--ink);
  color: var(--paper);
}
.footer > :not(.footer__decoration) { position: relative; z-index: 2; }
.footer__decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
/* Even a white lunar highlight stays below #494949 after this veil,
   preserving AA contrast for the existing muted footer text. */
.footer__decoration::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #141414 0%, rgb(20 20 20 / .94) 32%, rgb(20 20 20 / .78) 72%);
}
.footer__moon {
  position: absolute;
  width: clamp(420px, 45vw, 760px);
  aspect-ratio: 1;
  right: -4%;
  bottom: -110px;
}
.footer__moon-poster, .footer__moon canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer__moon canvas { visibility: hidden; }
.footer__moon.is-ready canvas { visibility: visible; }
.footer__moon.is-ready .footer__moon-poster { visibility: hidden; }
@media (max-width: 940px) {
  .footer__moon {
    width: clamp(260px, 54vw, 420px);
    right: -10%;
    bottom: -55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer__moon.is-ready canvas { visibility: hidden; }
  .footer__moon.is-ready .footer__moon-poster { visibility: visible; }
}
.footer a:hover { color: var(--green); }
.footer__cta {
  display: block;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(44px, 8vw, 148px);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.footer__cta span { color: var(--green); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px;
  margin-top: clamp(48px, 7vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.footer__about { display: flex; flex-direction: column; gap: 18px; }
.footer__about img { display: block; width: 190px; height: auto; }
.footer__about p { font-size: 15px; line-height: 1.55; color: var(--muted-light); text-wrap: pretty; }
.footer__social { display: flex; gap: 16px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 16px; }
.footer__col--start { align-items: flex-start; }
.footer__label { margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer__small { font-size: 13px; color: var(--muted); }
.footer__small--gap { margin-top: 6px; }
.footer__badge { display: block; width: 96px; height: 96px; border-radius: 6px; }
.footer__wordmark {
  overflow: clip;
  margin: clamp(48px, 6vw, 96px) 0 24px -.03em;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(80px, 24vw, 420px);
  line-height: .8;
  letter-spacing: -.06em;
}
.footer__wordmark span { color: var(--green); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Motion ---------- */

.char, .word { display: inline-block; }
.word { white-space: nowrap; }

.motion-ok [data-reveal="fade"] {
  opacity: 1;
  transition: opacity var(--dur-fade) var(--ease-quad-out);
}
.motion-ok [data-reveal="fade"]:not(.is-inview) { opacity: 0; }

.motion-ok [data-reveal="rise"] {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-fade-lead) var(--ease-quad-out), transform var(--dur-move) var(--ease-quad-out);
}
.motion-ok [data-reveal="rise"]:not(.is-inview) { opacity: 0; transform: translateY(var(--rise-y)); }

/* Chars targets stay hidden as a whole until motion.js has split them and
   flagged them .is-inview. Without this the plain, unsplit text painted first
   and then blinked out when the split chars (opacity 0) replaced it. */
.motion-ok [data-reveal="chars"]:not(.is-inview) { opacity: 0; }
.motion-ok [data-reveal="chars"] .char {
  transform-origin: 0 0;
  transform: skewX(-2deg) rotate(2deg) scaleY(.92);
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: .3s, calc(.75s + .0025s * var(--gi, 0) * var(--gi, 0));
  transition-timing-function: var(--ease-quad-out);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.motion-ok [data-reveal="chars"].is-inview .char { opacity: 1; transform: none; }
.motion-ok .hero [data-reveal="chars"].is-leaving .char {
  transition-property: opacity;
  transition-duration: .35s;
  transition-timing-function: var(--ease-quad-out);
  transition-delay: calc(var(--i, 0) * 15ms);
  opacity: 0;
}

/* A sketch follows its word; it cannot paint while that word is entering. */
.motion-ok .hero [data-hero-title] .hero__marked::after {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .14s var(--ease-quad-out), transform .3s var(--ease-quad-out);
  transition-delay: 0s;
}
.motion-ok .hero [data-hero-title].is-inview .hero__marked::after {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: var(--mark-delay, 2.2s);
}
.motion-ok .hero [data-hero-title].is-leaving .hero__marked::after {
  opacity: 0;
  transform: scaleX(1);
  transition-duration: .1s;
  transition-delay: 0s;
}

.motion-ok [data-reveal="list"] { position: relative; border-bottom-color: transparent; }
.motion-ok [data-reveal="list"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-list-line) var(--ease-expo-out);
  transition-delay: calc(.1s + var(--i, 0) * .1s);
}
.motion-ok [data-reveal="list"].is-inview::after { transform: scaleX(1); }
.motion-ok .team__card[data-reveal="list"]::after { background: var(--line-dark); }

/* List rows: nothing in a row paints before its reveal. The label rises (60%)
   once the rule has started drawing; the rest of the row fades in just after.
   These run as animations (backwards fill) rather than transitions so they
   don't replace the rows' own hover/press transitions. Until then the row is
   hidden as a whole (one layer per row rather than one per child: those
   layers are all alive for as long as a row waits below the fold); team
   cards, the only rows with a background of their own, fade in as a whole. */
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-lift { from { transform: translateY(60%); } }

.motion-ok [data-reveal="list"]:not(.is-inview) { opacity: 0; }
.motion-ok .team__card[data-reveal="list"].is-inview {
  animation: reveal-fade var(--dur-fade) var(--ease-quad-out) calc(var(--i, 0) * .1s) backwards;
}
.motion-ok [data-reveal="list"].is-inview :is(.service__desc, .service__cta, .post__meta, .post__thumb, .faq__sign, .ajuda__dot, .team__top),
.motion-ok [data-reveal="list"].is-inview > p {
  animation: reveal-fade var(--dur-fade) var(--ease-quad-out) calc(.55s + var(--i, 0) * .15s) backwards;
}
.motion-ok [data-reveal="list"].is-inview :is(.service__head, .post__title, .faq__label, .ajuda__label, .team__body) {
  animation:
    reveal-fade var(--dur-fade) var(--ease-quad-out) calc(.4s + var(--i, 0) * .15s) backwards,
    reveal-lift var(--dur-move) var(--ease-quad-out) calc(.4s + var(--i, 0) * .15s) backwards;
}

.motion-ok [data-reveal="line"] { position: relative; border-bottom-color: transparent; }
.motion-ok [data-reveal="line"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-expo-out);
}
.motion-ok [data-reveal="line"].is-inview::after { transform: scaleX(1); }

.media { display: block; overflow: hidden; }
.motion-ok [data-reveal="media"] { overflow: hidden; }
.motion-ok [data-reveal="media"] img {
  transform: scale(1.14);
  transition: transform var(--dur-media) var(--ease-quad-out);
}
.motion-ok [data-reveal="media"].is-inview img { transform: scale(1); }

.ring__text.is-paused, .marquee__track.is-paused, .work-rail__track.is-paused { animation-play-state: paused; }

@keyframes tab-rise { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: translateY(0); } }
.motion-ok .ajuda__panel li {
  animation: tab-rise .8s var(--ease-quad-out) calc(var(--i, 0) * 75ms) both;
}

/* ---------- Lenis (desktop) ---------- */

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Icons ---------- */

.arrow { display: inline-flex; flex: none; align-items: center; width: 1.4em; height: 1em; overflow: visible; }
.arrow--external { transform: rotate(-45deg); }

/* ---------- Hovers (desktop only) ---------- */

@media (hover: hover) and (pointer: fine) {
  .arrow rect { transform-origin: left center; transition: transform .2s var(--ease-quad-out); }
  .arrow path { transition: transform .2s var(--ease-quad-out) .2s; }
  a:hover .arrow rect, button:hover .arrow rect { transform: scaleX(2); }
  a:hover .arrow path, button:hover .arrow path { transform: translateX(200%); }

  .underline {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: background-size .5s var(--ease-quad-out);
  }
  .underline:hover { background-size: .07em 1px; }

  .btn__plus { display: inline-block; transition: transform .2s var(--ease-quad-out); }
  .btn:hover .btn__plus { transform: rotate(90deg); }

}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { transition: opacity .3s ease; }
  .hero__bg.is-active { transform: none; }
  .motion-ok [data-hero-counter] { transition: none; }
  .motion-ok .hero [data-hero-title] .char,
  .motion-ok .hero [data-hero-title] .hero__marked::after {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__bar.is-active .hero__fill { animation: none; transform: scaleX(1); }
  .ring__text, .marquee__track, .work-rail__track { animation: none; }
  .motion-ok .cases__viewport.is-ready { overflow-x: auto; }
  .motion-ok .cases__viewport.is-ready .work-rail__track { animation: none; margin-inline-start: 0; }
  .work-rail__run[aria-hidden="true"] { display: none; }
  .case__media::after, .case__name { opacity: 1; transform: none; }
  .ajuda__overlay { opacity: 1; transform: none; }
  .faq__sign::after { transition: none; }
}
