:root {
  /* Paleta MissionOne: Branding Orange + Primary + cinzas neutros */
  --ink: #000000;
  --ink-2: #121212;
  --line: #333333;
  --mute: #a7a7a7;
  --cream: #f9f9f9;
  --cream-25: rgba(249, 249, 249, .25);
  --accent: #e85002;
  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --side: clamp(16px, 4vw, 56px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wrap { padding-inline: var(--side); }

/* Grain — mesmo recurso do GrainFilter da referência */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); }
  80% { transform: translate(6%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--side);
  transition: transform .5s var(--ease), background .4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-solid { background: rgba(11, 11, 11, .85); backdrop-filter: blur(12px); }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 32px; }
.nav a { opacity: .7; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--cream-25);
  border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--header-h) var(--side) 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(237, 80, 1, .3), transparent 70%),
    radial-gradient(50% 60% at 15% 80%, rgba(255, 248, 238, .08), transparent 70%),
    var(--ink-2);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, rgba(11, 11, 11, .2) 50%, rgba(11, 11, 11, .5) 100%);
}
@keyframes drift { to { background-position: 10% 5%, -10% 0, 0 0; } }
.hero__title {
  font-size: clamp(44px, 8.4vw, 150px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.045em;
  max-width: 13ch;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--cream-25);
}
.hero__foot p { max-width: 380px; color: var(--mute); line-height: 1.5; }
.scroll { display: flex; align-items: center; gap: 12px; }
.scroll i { width: 1px; height: 40px; background: var(--cream-25); position: relative; overflow: hidden; }
.scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* Section base */
section { position: relative; }
.section { padding-block: clamp(96px, 14vw, 180px); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mute); margin-bottom: 32px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h2 {
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 14ch;
}

/* O que fazemos + números */
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.intro p { font-size: 20px; line-height: 1.5; color: var(--mute); max-width: 460px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 500; letter-spacing: -.04em; line-height: 1;
}
.stat b sup { color: var(--accent); font-size: .45em; vertical-align: top; margin-left: 4px; }
.stat span { display: block; margin-top: 12px; color: var(--mute); }
.stat--text b { font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; }
.stat--text b::after { content: "."; color: var(--accent); }

/* Contra o quê */
.enemies { list-style: none; margin-top: 56px; border-top: 1px solid var(--line); }
.enemy {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 16px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.enemy .mono { color: var(--mute); }
.enemy strong {
  font-size: clamp(32px, 5.5vw, 80px); font-weight: 500; letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 55% / 0 3px;
  transition: background-size .9s var(--ease), color .6s;
}
.enemy.in strong { background-size: 100% 3px; color: var(--mute); }
.enemy span:last-child { color: var(--mute); }

/* Serviços — acordeão numerado */
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 64px; }
.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__btn {
  width: 100%;
  display: grid; grid-template-columns: 80px 1fr 40px; align-items: center;
  padding: 28px 0; text-align: left;
}
.svc__btn .mono { color: var(--mute); }
.svc__title {
  font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -.03em;
  transition: color .3s, transform .5s var(--ease);
}
.svc__btn:hover .svc__title { color: var(--accent); transform: translateX(8px); }
.svc__icon { justify-self: end; width: 22px; height: 22px; position: relative; }
.svc__icon::before, .svc__icon::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px;
  background: currentColor; transition: transform .4s var(--ease);
}
.svc__icon::after { transform: rotate(90deg); }
.svc.open .svc__icon::after { transform: rotate(0); }
.svc.open .svc__title { color: var(--accent); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc.open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; }
.svc__grid {
  display: grid; grid-template-columns: 80px 1.2fr 1fr; gap: 0 32px;
  padding-bottom: 40px;
}
.svc__grid p { grid-column: 2; font-size: 18px; line-height: 1.55; color: var(--mute); max-width: 520px; }
.svc__grid ul { grid-column: 3; list-style: none; }
.svc__grid li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.svc__grid li::before { content: "↳ "; color: var(--accent); }

/* Trabalhos */
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: all .25s;
}
.filters button[aria-pressed="true"], .filters button:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { cursor: pointer; transition: opacity .4s, transform .4s var(--ease); }
.card.hide { display: none; }
.card__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden;
  background: var(--ink-2);
}
.card__media .ph {
  position: absolute; inset: 0;
  transition: transform 1s var(--ease);
}
.card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:hover .ph { transform: scale(1.06); }
.card__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  scale: .6; opacity: 0; transition: all .4s var(--ease);
}
.card:hover .card__play { scale: 1; opacity: 1; }
.card__tag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(11, 11, 11, .6); backdrop-filter: blur(6px); font-size: 10px; }
.card h3 { margin-top: 16px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.card p { margin-top: 6px; color: var(--mute); font-size: 14px; line-height: 1.45; }

/* Processo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.step { padding: 28px 24px 32px; background: var(--ink-2); border-radius: 6px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; transition: background .3s; }
.step:hover { background: #1c1c1c; }
.step .mono { color: var(--accent); }
.step h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.step p { color: var(--mute); line-height: 1.5; font-size: 15px; }

/* CTA */
.cta { text-align: center; }
.cta .h2 { margin-inline: auto; max-width: 16ch; font-size: clamp(44px, 8vw, 128px); }
.cta .h2 em { font-style: normal; color: var(--accent); }
.cta__actions { margin-top: 48px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--mute); margin-bottom: 16px; font-weight: 400; }
.footer li { list-style: none; padding: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer__big {
  margin-top: 80px;
  font-size: clamp(48px, 12vw, 220px); font-weight: 700; white-space: nowrap; letter-spacing: -.06em; line-height: .8;
  color: var(--ink-2); -webkit-text-stroke: 1px var(--line);
  user-select: none;
}
.footer__legal { margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; color: var(--mute); flex-wrap: wrap; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Modal de vídeo */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 11, 11, .92);
  display: none; place-items: center; padding: 24px;
}
.modal.open { display: grid; }
.modal__box { width: min(420px, 100%); aspect-ratio: 9 / 16; background: var(--ink-2); border-radius: 8px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--mute); }
.modal__box iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.modal__close { position: absolute; top: 24px; right: var(--side); }

/* Seletor de idioma */
.header__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 11, 11, .4); }
.lang button {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  opacity: .45; transition: opacity .25s, background .25s;
}
.lang button:hover { opacity: .85; }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--accent); }
.lang svg { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.lang .mono { font-size: 11px; }
.footer__company { color: var(--mute); margin-top: 20px; line-height: 1.7; }

/* Programas */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.prog {
  display: flex; flex-direction: column; gap: 24px;
  min-height: 540px; padding: 32px 28px;
  background: var(--ink-2); border: 1px solid transparent; border-radius: 6px;
  transition: border-color .3s;
}
.prog:hover { border-color: var(--line); }
.prog__top { display: flex; justify-content: space-between; align-items: center; color: var(--mute); }
.prog__tag { color: var(--accent); }
.prog h3 { font-size: clamp(40px, 4vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.prog p { color: var(--mute); line-height: 1.55; }
.prog ul { list-style: none; margin-top: auto; }
.prog li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.prog li::before { content: "↳ "; color: var(--accent); }
.prog > .btn { align-self: flex-start; }
.prog--soon { background: transparent; border: 1px dashed var(--line); }
.badge { padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.waitlist { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.waitlist label { color: var(--mute); }
.waitlist input {
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--ink); color: var(--cream); font: inherit; font-size: 16px;
}
.waitlist input:focus { outline: none; border-color: var(--accent); }
.waitlist .btn { justify-content: center; }
.waitlist__ok { color: var(--accent); }

@media (max-width: 960px) {
  .nav, .header .btn { display: none; }
  .lang button { padding: 4px; }
  .lang .mono { display: none; }
  .header.menu-open .nav { order: 3; }
  .menu-toggle { display: block; }
  .header.menu-open { background: var(--ink); height: auto; min-height: 100svh; align-items: flex-start; flex-wrap: wrap; padding-top: 28px; }
  .header.menu-open .nav { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 48px; }
  .header.menu-open .nav a { font-size: 40px; font-weight: 500; letter-spacing: -.03em; opacity: 1; font-family: var(--font-sans); text-transform: none; }
  .intro, .footer__grid { grid-template-columns: 1fr; }
  .stats, .programs { grid-template-columns: 1fr; }
  .prog { min-height: 0; }
  .enemy { grid-template-columns: 40px 1fr; }
  .enemy span:last-child { display: none; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc__btn { grid-template-columns: 48px 1fr 32px; }
  .svc__grid { grid-template-columns: 1fr; gap: 24px; }
  .svc__grid p, .svc__grid ul { grid-column: 1; }
  .hero__foot p { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; gap: 40px; }
  .grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Páginas internas */
.page-top { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px)); }
