/* ============================================================
   ROMINI — camada de movimento e layout
   Entrada, navbar, hero e Missão/Visão/Valores no modelo do site
   da MGA; Lenis, SplitText, parallax e marquee conforme refs.md.
   Roda por cima do app React, sem alterar o bundle.
   ============================================================ */

:root {
  --rm-ink: #121212;
  --rm-paper: #f3eee7;
  --rm-tone-950: #0a0a0a;
  --rm-tone-900: #151413;
  --rm-tone-800: #1f1d1b;
  --rm-accent: #d6c8ae;
  --rm-accent-ink: #a48f68;
  --rm-corner-md: 2px 72px 2px 2px;
  --rm-ease: cubic-bezier(.65, 0, .35, 1);
  --rm-header-h: 68px;
  --rm-max: 1440px;
  --rm-gutter: clamp(1rem, 4vw, 3.5rem);
  --rm-corner: 2px 28px 2px 2px;
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 64%, transparent);
}
@media (min-width: 900px) {
  :root { --rm-header-h: 84px; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------
   ENTRADA (o essencial também está inline no index.html)
   ------------------------------------------------------------ */
.rm-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: var(--rm-tone-950);
  color: var(--rm-paper);
}
html.rm-intro-seen .rm-intro { display: none; }
.rm-intro__panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 80% at 50% 60%, var(--rm-tone-800) 0%, var(--rm-tone-950) 70%);
}
.rm-intro__logo {
  position: relative;
  width: min(70vw, 460px);
}
.rm-intro__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.rm-intro__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2rem;
  height: 1px;
  background: var(--rm-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------ */
/* a navbar original do app dá lugar à nova */
.rm-ready .min-h-screen > nav.fixed { display: none !important; }

.rm-header {
  --h-fg: var(--rm-ink);
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--h-fg);
  font-family: Montserrat, sans-serif;
  transition: transform .6s var(--rm-ease), color .4s var(--rm-ease);
}
.rm-header.is-light,
.rm-header.is-open { --h-fg: var(--rm-paper); }
.rm-header.is-hidden { transform: translateY(-110%); }
.rm-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: color-mix(in srgb, var(--rm-paper) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--rm-ink) 8%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity .4s var(--rm-ease);
}
.rm-header.is-light::before {
  background: color-mix(in srgb, var(--rm-tone-950) 90%, transparent);
  border-bottom-color: color-mix(in srgb, var(--rm-paper) 10%, transparent);
}
.rm-header.is-solid::before { opacity: 1; }
.rm-header.is-open::before { opacity: 0; }

.rm-header__bar {
  height: var(--rm-header-h);
  max-width: var(--rm-max);
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.rm-header__logo {
  flex: none;
  display: block;
  width: clamp(104px, 10vw, 140px);
  padding-block: .75rem;
}
.rm-header__logo img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter .4s var(--rm-ease);
}
/* a logo é branca: sobre fundo claro vira grafite */
.rm-header:not(.is-light):not(.is-open) .rm-header__logo img { filter: brightness(0) opacity(.86); }

.rm-header__nav {
  display: none;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}
.rm-header__link {
  position: relative;
  padding-block: .25rem;
  font-size: .9375rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}
.rm-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--rm-ease);
}
.rm-header__link:hover::after,
.rm-header__link[data-active]::after,
.rm-header__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.rm-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rm-header__cta {
  display: none;
  padding: .65rem 1.25rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  transition: background .35s var(--rm-ease), color .35s var(--rm-ease);
}
.rm-header__cta:hover { background: var(--h-fg); color: var(--rm-tone-900); }
.rm-header:not(.is-light):not(.is-open) .rm-header__cta:hover { color: var(--rm-paper); }

.rm-burger {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.rm-burger span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--rm-ease), top .4s var(--rm-ease);
}
.rm-burger span:first-child { top: 17px; }
.rm-burger span:last-child { top: 25px; }
.rm-burger:hover span:first-child { top: 19px; }
.rm-burger:hover span:last-child { top: 23px; }
.rm-header.is-open .rm-burger span { top: 21px; background: var(--rm-accent); }
.rm-header.is-open .rm-burger span:first-child { transform: rotate(45deg); }
.rm-header.is-open .rm-burger span:last-child { transform: rotate(-45deg); }
.rm-header.is-open .rm-header__nav,
.rm-header.is-open .rm-header__cta { opacity: 0; pointer-events: none; }
.rm-header__nav, .rm-header__cta { transition: opacity .3s var(--rm-ease), background .35s var(--rm-ease), color .35s var(--rm-ease); }

@media (min-width: 720px)  { .rm-header__cta { display: inline-flex; } }
@media (min-width: 1120px) { .rm-header__nav { display: flex; } }

/* ------------------------------------------------------------
   MENU EM TELA CHEIA
   ------------------------------------------------------------ */
.rm-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  visibility: hidden;
  overflow: hidden auto;
  background: var(--rm-tone-950);
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
  clip-path: inset(0 0 100%);
}
.rm-menu__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  max-width: var(--rm-max);
  margin-inline: auto;
  padding: calc(var(--rm-header-h) + 1.5rem) var(--rm-gutter) 1.5rem;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 2rem;
}
.rm-menu__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rm-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: .15rem;
  font-size: clamp(2rem, 8.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
  color: var(--rm-paper);
  text-decoration: none;
  transition: color .35s var(--rm-ease);
}
.rm-menu__num {
  min-width: 1.75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--rm-accent);
}
.rm-menu__mask {
  display: block;
  overflow: hidden;
  margin-block: -.12em;
  padding-block: .12em;
}
.rm-menu__text {
  display: block;
  transition: translate .5s var(--rm-ease);
}
@media (hover: hover) {
  .rm-menu__links:hover .rm-menu__link { color: color-mix(in srgb, var(--rm-paper) 35%, transparent); }
  .rm-menu__links .rm-menu__link:hover { color: var(--rm-paper); }
  .rm-menu__link:hover .rm-menu__text { translate: .75rem; }
}
.rm-menu__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rm-line);
  font-size: .875rem;
  color: var(--rm-muted);
}
.rm-menu__footer a {
  padding-block: .35rem;
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--rm-ease);
}
.rm-menu__footer a:hover { color: var(--rm-paper); }
.rm-menu__footer span { margin-left: auto; padding-block: .35rem; }
.rm-menu__mark {
  position: absolute;
  right: -6vw;
  bottom: -4vh;
  width: min(80vw, 1000px);
  opacity: .045;
  pointer-events: none;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.rm-ready section.h-screen { background: var(--rm-tone-950); isolation: isolate; }
/* a logo agora aparece na entrada e na navbar; o hero fica só com a imagem */
.rm-ready section.h-screen > .z-10 { pointer-events: none; }
.rm-ready section.h-screen > .z-10 > img,
.rm-ready section.h-screen > .z-10 > button { display: none !important; }

.rm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--rm-tone-950);
  will-change: transform;
}
.rm-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--rm-ease);
}
.rm-hero__slide.is-active { opacity: 1; z-index: 1; }
.rm-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--rm-ease);
}
.rm-hero__slide.is-active img {
  transform: scale(1);
  transition: transform 7.4s linear;
}
.rm-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .55;
  pointer-events: none;
  background:
    linear-gradient(#0a0a0a80 0%, #0000 22%),
    linear-gradient(#0000 72%, #0a0a0abf 100%);
}
.rm-hero__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.rm-hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  max-width: var(--rm-max);
  margin-inline: auto;
  padding: 1.5rem var(--rm-gutter) 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  font-family: Montserrat, sans-serif;
  font-size: .875rem;
  color: color-mix(in srgb, var(--rm-paper) 78%, transparent);
}
.rm-hero__footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--rm-gutter);
  right: var(--rm-gutter);
  height: 1px;
  background: var(--rm-line);
}
.rm-hero__caption {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.rm-hero__caption > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rm-hero__caption:hover > span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rm-hero__tag {
  flex: none;
  padding: .25rem .65rem;
  border-radius: 2px 10px 2px 2px;
  background: var(--rm-accent);
  color: var(--rm-tone-950);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rm-hero__bars {
  grid-area: 2 / 1 / auto / -1;
  display: flex;
  gap: .4rem;
}
.rm-hero__bar {
  position: relative;
  flex: 1;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rm-hero__bar::before,
.rm-hero__fill {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
}
.rm-hero__bar::before { background: color-mix(in srgb, var(--rm-paper) 22%, transparent); }
.rm-hero__fill {
  background: var(--rm-paper);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.rm-hero__bar.is-done .rm-hero__fill { transform: scaleX(1); }
.rm-hero__scroll {
  display: none;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.rm-hero__scroll i {
  position: relative;
  width: 1px;
  height: 2.5rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--rm-paper) 25%, transparent);
}
.rm-hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rm-paper);
  animation: rm-drip 2s var(--rm-ease) infinite;
}
@keyframes rm-drip {
  0%  { transform: translateY(-100%); }
  to  { transform: translateY(100%); }
}
@media (min-width: 900px) {
  .rm-hero__footer { grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) auto; }
  .rm-hero__bars { grid-area: auto; }
  .rm-hero__scroll { display: inline-flex; }
}

/* ------------------------------------------------------------
   MISSÃO, VISÃO E VALORES
   ------------------------------------------------------------ */
.rm-ready .rm-mvv-source { display: none !important; }

.rm-mvv {
  --rm-line: color-mix(in srgb, var(--rm-ink) 14%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-ink) 64%, transparent);
  position: relative;
  overflow: hidden;
  color: var(--rm-ink);
  font-family: Montserrat, sans-serif;
}
.rm-mvv__pin { padding-block: clamp(5rem, 11vw, 10rem); }
.rm-mvv__container {
  width: 100%;
  max-width: var(--rm-max);
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
}
.rm-mvv__head { margin-bottom: 3rem; }
.rm-mvv__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-mvv__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}
.rm-mvv__h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.3vw, 4rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
}
.rm-mvv__h2 b { font-weight: 700; }
.rm-mvv__track {
  display: grid;
  gap: 1rem;
  max-width: var(--rm-max);
  margin: 0 auto;
  padding: 0 var(--rm-gutter);
  list-style: none;
}
.rm-mvv__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 2rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-corner);
  background: color-mix(in srgb, #fff 46%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rm-mvv__num {
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 200;
  letter-spacing: -.05em;
  line-height: .85;
  color: var(--rm-accent-ink);
}
.rm-mvv__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.rm-mvv__text {
  margin: 0;
  max-width: 30rem;
  line-height: 1.6;
  color: var(--rm-muted);
}
.rm-mvv__kicker {
  margin-bottom: -.4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rm-accent-ink);
}
.rm-mvv__progress { display: none; }

@media (min-width: 600px) and (max-width: 899px) {
  .rm-mvv__track { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .rm-mvv__pin {
    min-height: 100vh;
    padding-block: calc(var(--rm-header-h) + 2rem) 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .rm-mvv__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-left: max(var(--rm-gutter), calc((100vw - var(--rm-max)) / 2 + var(--rm-gutter)));
    padding-right: var(--rm-gutter);
    will-change: transform;
  }
  .rm-mvv__step {
    justify-content: flex-end;
    width: clamp(340px, 34vw, 520px);
    min-height: 46vh;
  }
  .rm-mvv__num { margin-bottom: auto; }
  .rm-mvv__progress {
    display: block;
    height: 1px;
    margin-top: 3rem;
    background: var(--rm-line);
  }
  .rm-mvv__progress span {
    display: block;
    height: 100%;
    background: var(--rm-ink);
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  /* sem animação: os cartões quebram em grade em vez de rolar na horizontal */
  .rm-mvv.is-static .rm-mvv__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    max-width: var(--rm-max);
    margin-inline: auto;
    padding-inline: var(--rm-gutter);
  }
  .rm-mvv.is-static .rm-mvv__step { width: auto; }
}

/* ------------------------------------------------------------
   INSTAGRAM (no lugar dos depoimentos)
   ------------------------------------------------------------ */
.rm-ready .rm-replaced { display: none !important; }

.rm-reels {
  overflow: hidden;
  padding: clamp(4rem, 10vw, 10rem) 0;
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
}
.rm-reels__head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding: 0 clamp(1rem, 7.5vw, 7rem);
}
.rm-reels__eyebrow {
  margin: 0 0 1rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-reels__title {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
}
.rm-reels__mask {
  display: block;
  overflow: hidden;
  margin-block: -.12em;
  padding-block: .12em;
}
/* mesma animação do e-mail no rodapé da DCX: a linha cresce da esquerda */
.rm-reels__handle {
  display: inline-block;
  padding-bottom: .08em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .5s var(--rm-ease), color .3s;
}
.rm-reels__handle:hover,
.rm-reels__handle:focus-visible {
  color: var(--rm-accent);
  background-size: 100% 3px;
  outline: none;
}
.rm-reels__viewport { perspective: 1400px; }
.rm-reels__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}
.rm-reels__card { margin-right: clamp(1rem, 2vw, 1.75rem); }
.rm-reels__inner {
  position: relative;
  overflow: hidden;
  width: clamp(240px, 24vw, 360px);
  aspect-ratio: 2 / 3;
  margin: 0;
  border-radius: 20px clamp(60px, 6vw, 96px) 20px 20px;
  background: #111;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .4s;
}
.rm-reels__inner.is-active { box-shadow: 0 0 0 2px var(--rm-accent); }
.rm-reels__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rm-reels__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0000 45%, #000000bf);
}
.rm-reels__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.rm-reels__sound {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff59;
  border-radius: 50%;
  background: #00000059;
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .2s, color .2s, border-color .2s;
}
.rm-reels__sound svg { width: 20px; height: 20px; }
.rm-reels__sound:hover,
.rm-reels__sound:focus-visible,
.rm-reels__sound[aria-pressed="true"] {
  border-color: var(--rm-accent);
  background: var(--rm-accent);
  color: #000;
  outline: none;
}
.rm-reels__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.25rem 1.4rem;
  color: #fff;
}
.rm-reels__quote {
  margin: 0 0 .75rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
}
.rm-reels__who { margin: 0; font-size: .85rem; opacity: .8; }
.rm-reels__who strong { font-weight: 700; }
.rm-reels.is-static .rm-reels__viewport { overflow-x: auto; }
.rm-reels.is-static .rm-reels__card[aria-hidden="true"] { display: none; }

/* ------------------------------------------------------------
   RODAPÉ — escuro, com o crédito "Desenvolvido por DCTech"
   ------------------------------------------------------------ */
.rm-credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rm-line);
  font-family: Montserrat, sans-serif;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-credit__dctech {
  display: inline-flex;
  opacity: .7;
  transition: opacity .3s var(--rm-ease);
}
.rm-credit__dctech:hover { opacity: 1; }
.rm-credit__dctech img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 2.4vw, 2.25rem);
}

/* ------------------------------------------------------------
   FUNDO COM FEIXE
   Claro: bege com feixe branco. Escuro: preto com feixe bege.
   ------------------------------------------------------------ */
html.rm-ready body { background: #ece4d6; }
.rm-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.rm-aura-dark {
  position: fixed;
  inset: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* as seções claras deixam o feixe aparecer */
.rm-ready .section-sand,
.rm-ready .section-white,
.rm-ready .section-grey { background-color: transparent; }

/* zona escura: a seção recorta a própria cópia fixa do fundo escuro */
.rm-ready [data-aura="dark"] {
  isolation: isolate;
  /* 1px de sobra em cima e embaixo: sem isso, o arredondamento de subpixel
     durante a rolagem deixa uma linha clara na emenda entre as dobras */
  clip-path: inset(-1px 0);
  background-color: #0a0a0a;
}
.rm-ready [data-aura="dark"] + [data-aura="dark"] { margin-top: -1px; padding-top: 1px; }
.rm-ready .rm-dark {
  --foreground: 36 33% 93%;
  --muted-foreground: 36 12% 66%;
  --charcoal: 36 18% 80%;
  --card: 30 6% 11%;
  --border: 36 10% 24%;
  --background: 0 0% 5%;
  color: var(--rm-paper);
}
.rm-ready .rm-dark input,
.rm-ready .rm-dark textarea { color: var(--rm-paper); }

/* ------------------------------------------------------------
   BLOCOS COMPARTILHADOS (cabeçalho de dobra, botão, cartão, trilho)
   ------------------------------------------------------------ */
.rm-container {
  width: 100%;
  max-width: var(--rm-max);
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
}
.rm-head {
  display: grid;
  gap: 1.75rem 4rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.rm-head__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 52rem;
}
.rm-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .rm-head { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.rm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}
.rm-h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.3vw, 4rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.04;
}
.rm-h2 b { font-weight: 700; }
.rm-lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--rm-muted);
}

.rm-btn {
  --btn-fg: var(--rm-ink);
  --btn-bg: var(--rm-paper);
  --btn-icon-bg: var(--rm-ink);
  --btn-icon-fg: var(--rm-paper);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .4rem .4rem .4rem 1.5rem;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: Montserrat, sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .4s var(--rm-ease), color .4s var(--rm-ease), border-color .4s var(--rm-ease);
}
.rm-btn--outline {
  --btn-fg: currentColor;
  --btn-bg: transparent;
  --btn-icon-bg: var(--rm-paper);
  --btn-icon-fg: var(--rm-ink);
  border-color: var(--rm-line);
  color: inherit;
}
.rm-btn--dark {
  --btn-fg: var(--rm-paper);
  --btn-bg: var(--rm-ink);
  --btn-icon-bg: var(--rm-paper);
  --btn-icon-fg: var(--rm-ink);
}
.rm-btn__label { white-space: nowrap; }
.rm-btn__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--btn-icon-bg);
  color: var(--btn-icon-fg);
  transition: transform .5s var(--rm-ease);
}
.rm-btn__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: translate .5s var(--rm-ease);
}
@media (hover: hover) {
  .rm-btn:hover .rm-btn__icon { transform: scale(1.08); }
  .rm-btn:hover .rm-btn__icon svg { animation: rm-arrow-loop .6s var(--rm-ease); }
  .rm-btn--outline:hover { border-color: currentColor; }
}
@keyframes rm-arrow-loop {
  0%  { translate: 0; }
  45% { translate: 140%; }
  46% { translate: -140%; }
  to  { translate: 0; }
}

.rm-rail-wrap { position: relative; }
.rm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  column-gap: 1rem;
  margin: 0;
  padding: 0 var(--rm-gutter) .5rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rm-gutter);
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.rm-rail::-webkit-scrollbar { display: none; }
.rm-rail > li { scroll-snap-align: start; }
.rm-rail > li[hidden] { display: none; }
.rm-rail[data-dragging] { cursor: grabbing; scroll-snap-type: none; }
.rm-rail img, .rm-rail a { -webkit-user-drag: none; }
.rm-rail[data-dragging] a { pointer-events: none; }
.rm-rail__controls {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 2rem;
  padding-inline: var(--rm-gutter);
}
.rm-rail__btn {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid var(--rm-line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .35s var(--rm-ease), color .35s, opacity .3s;
}
.rm-rail__btn svg { width: 1.2rem; }
.rm-rail__btn:not(:disabled):hover { background: var(--rm-paper); color: var(--rm-ink); }
.rm-rail__btn:disabled { opacity: .3; cursor: default; }
.rm-rail__prev { transform: rotate(180deg); }
@media (min-width: 700px) {
  .rm-rail { grid-auto-columns: calc((100% - 2 * var(--rm-gutter) - 1.5rem) / 2.15); column-gap: 1.5rem; }
}
@media (min-width: 1100px) {
  .rm-rail { grid-auto-columns: calc((100% - 2 * var(--rm-gutter) - 4rem) / 3.15); column-gap: 2rem; }
}

.rm-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
}
.rm-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--rm-corner-md);
  background: var(--rm-tone-800);
  isolation: isolate;
}
.rm-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35);
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .8s var(--rm-ease);
}
.rm-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#00000040, #0000 35%);
}
.rm-card__tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}
.rm-card__status {
  padding: .4rem .8rem;
  border-radius: 2px 12px 2px 2px;
  background: var(--rm-accent);
  color: var(--rm-tone-900);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.rm-card__go {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--rm-paper);
  color: var(--rm-tone-900);
  transform: scale(0) rotate(-45deg);
  transition: transform .5s var(--rm-ease);
}
.rm-card__go svg { width: 1.2rem; }
@media (hover: hover) {
  .rm-card:hover .rm-card__img { filter: none; transform: scale(1.06); }
  .rm-card:hover .rm-card__go { transform: scale(1) rotate(0); }
}
.rm-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rm-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rm-line);
}
.rm-card__name {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}
.rm-card__place {
  font-size: .875rem;
  white-space: nowrap;
  color: var(--rm-muted);
}

/* ------------------------------------------------------------
   PORTFÓLIO POR AMBIENTE
   ------------------------------------------------------------ */
.rm-port {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 10rem);
  font-family: Montserrat, sans-serif;
}
.rm-port__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.rm-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem .55rem 1.1rem;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .35s var(--rm-ease), color .35s var(--rm-ease), border-color .35s;
}
.rm-chip:hover { border-color: currentColor; }
.rm-chip[aria-selected="true"] {
  background: var(--rm-paper);
  border-color: var(--rm-paper);
  color: var(--rm-ink);
}
.rm-chip__count {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: .35rem;
  border-radius: 999px;
  background: var(--rm-line);
  font-size: .75rem;
}
.rm-chip[aria-selected="true"] .rm-chip__count { background: color-mix(in srgb, var(--rm-ink) 12%, transparent); }
.rm-port__slider {
  max-width: var(--rm-max);
  margin-inline: auto;
}
.rm-port__slider.is-in { animation: rm-fade-in .7s var(--rm-ease); }
@keyframes rm-fade-in {
  0% { opacity: 0; transform: translate(40px); }
}

/* ------------------------------------------------------------
   PÁGINA DE AMBIENTE (/ambientes/<slug>/)
   ------------------------------------------------------------ */
.rm-page {
  margin: 0;
  font-family: Montserrat, sans-serif;
  color: var(--rm-ink);
}
.rm-amb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--rm-tone-950);
  color: var(--rm-paper);
}
.rm-amb-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}
.rm-amb-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-amb-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(#0a0a0a8c 0%, #0000 26%),
    linear-gradient(#0000 40%, #0a0a0ad9 100%);
}
.rm-amb-hero__content {
  width: 100%;
  max-width: var(--rm-max);
  margin-inline: auto;
  padding: 0 var(--rm-gutter) clamp(3rem, 7vw, 5.5rem);
}
.rm-amb-hero__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .4rem .8rem;
  border-radius: 2px 12px 2px 2px;
  background: var(--rm-accent);
  color: var(--rm-tone-950);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.rm-amb-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
}
.rm-amb-hero__sub {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: color-mix(in srgb, var(--rm-paper) 80%, transparent);
}
.rm-amb-section {
  --rm-line: color-mix(in srgb, var(--rm-ink) 14%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-ink) 64%, transparent);
  padding-block: clamp(5rem, 11vw, 10rem);
}
.rm-amb-section.rm-dark {
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 64%, transparent);
  overflow: hidden;
}
.rm-amb-section .rm-head { margin-bottom: 0; }
.rm-amb-section.rm-dark .rm-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.rm-amb-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--rm-muted);
  text-decoration: none;
}
.rm-amb-back:hover { color: inherit; }
/* ------------------------------------------------------------
   CONTATO — painel grafite liso, com cartão claro do formulário
   ------------------------------------------------------------ */
.rm-contact {
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 66%, transparent);
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
}
.rm-contact__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .rm-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 6rem); align-items: stretch; }
}
.rm-contact__intro {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}
.rm-contact__title {
  font-size: clamp(2rem, 3.9vw, 3.75rem);
  line-height: 1.06;
}
.rm-contact__title b { color: color-mix(in srgb, var(--rm-paper) 78%, transparent); font-weight: 600; }
.rm-contact .rm-lead { max-width: 34rem; }
.rm-contact__wa {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 2px 2px 28px 2px;
  background: var(--rm-paper);
  color: var(--rm-ink);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .35s var(--rm-ease);
}
.rm-contact__wa:hover { background: var(--rm-accent); }
.rm-contact__wa svg { flex: none; width: 2rem; height: 2rem; }
.rm-contact__wa small {
  display: block;
  margin-bottom: .15rem;
  font-size: .75rem;
  font-weight: 500;
  opacity: .7;
}
.rm-contact__info {
  display: grid;
  gap: 0 2rem;
  margin: auto 0 0;
}
@media (min-width: 560px) {
  .rm-contact__info { grid-template-columns: 1fr 1fr; }
  .rm-contact__info-full { grid-column: 1 / -1; }
}
.rm-contact__info > div {
  padding-block: 1.1rem;
  border-top: 1px solid var(--rm-line);
}
.rm-contact__info dt {
  margin-bottom: .35rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-contact__info dd { margin: 0; line-height: 1.5; }
.rm-contact__info a { color: inherit; text-decoration: none; }
.rm-contact__info a:hover { text-decoration: underline; text-underline-offset: 4px; }

.rm-form {
  --f-line: color-mix(in srgb, var(--rm-ink) 18%, transparent);
  --f-muted: color-mix(in srgb, var(--rm-ink) 58%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3.4vw, 3rem);
  border-radius: clamp(40px, 6vw, 88px) 4px clamp(40px, 6vw, 88px) 4px;
  background: #f8f5ef;
  color: var(--rm-ink);
}
.rm-form__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .3rem;
  border: 1px solid var(--f-line);
  border-radius: 999px;
}
@media (max-width: 560px) {
  .rm-form__tabs { width: 100%; border-radius: 26px; }
  .rm-form__tab { flex: 1 1 100%; text-align: center; }
}
.rm-form__tab { position: relative; cursor: pointer; }
.rm-form__tab input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rm-form__tab span {
  display: block;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .3s var(--rm-ease), color .3s var(--rm-ease);
}
.rm-form__tab input:checked + span { background: var(--rm-ink); color: var(--rm-paper); }
.rm-form__tab input:focus-visible + span { outline: 2px solid var(--rm-accent-ink); outline-offset: 2px; }
.rm-form__grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .rm-form__grid { grid-template-columns: 1fr 1fr; }
  .rm-field--full { grid-column: 1 / -1; }
}
.rm-field { display: block; }
.rm-field > span {
  display: block;
  margin-bottom: .35rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--f-muted);
}
.rm-field input,
.rm-field select,
.rm-field textarea {
  display: block;
  width: 100%;
  padding: .85rem 0;
  border: 0;
  border-bottom: 1px solid var(--f-line);
  border-radius: 0;
  background: transparent;
  color: var(--rm-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .3s;
}
.rm-field textarea { resize: vertical; min-height: 6.5rem; }
.rm-field select { cursor: pointer; }
.rm-field input::placeholder,
.rm-field textarea::placeholder { color: color-mix(in srgb, var(--rm-ink) 38%, transparent); }
.rm-field input:focus,
.rm-field select:focus,
.rm-field textarea:focus { outline: none; border-bottom-color: var(--rm-ink); }
.rm-form__consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  color: var(--f-muted);
  cursor: pointer;
}
.rm-form__consent input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--rm-ink); }
.rm-form__error { margin: -.5rem 0 0; font-size: .875rem; color: #a3341f; }
.rm-form .rm-btn { cursor: pointer; font-family: inherit; }

/* ------------------------------------------------------------
   RODAPÉ — preto com feixe bege
   ------------------------------------------------------------ */
.rm-footer {
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 62%, transparent);
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
}
.rm-footer a { color: inherit; text-decoration: none; }
.rm-footer ul { margin: 0; padding: 0; list-style: none; }
.rm-footer__main {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.rm-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.rm-footer__email {
  font-size: clamp(1.3rem, 6.4vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.05;
  align-self: flex-start;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--rm-ease), color .3s;
}
.rm-footer__email:hover,
.rm-footer__email:focus-visible {
  color: var(--rm-accent);
  background-size: 100% 2px;
  outline: none;
}
@media (min-width: 900px) {
  .rm-footer__email { font-size: clamp(2rem, 5.6vw, 6.25rem); }
}
.rm-footer__social,
.rm-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem clamp(1.25rem, 2.6vw, 2.25rem);
  font-size: clamp(1rem, 1.5vw, 1.375rem);
}
.rm-footer__social a,
.rm-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: .3rem;
  padding-block: .2rem;
}
.rm-footer__social svg { width: .65em; height: .65em; margin-top: .15em; }
.rm-footer__social a::after,
.rm-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--rm-ease);
}
.rm-footer__social a:hover::after,
.rm-footer__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.rm-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
}
.rm-footer__pill {
  padding: 1rem 1.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  transition: background .35s var(--rm-ease), color .35s var(--rm-ease);
}
.rm-footer .rm-footer__pill:hover { background: var(--rm-paper); color: var(--rm-ink); }
.rm-footer__bottom {
  display: grid;
  gap: 1.75rem;
  padding-block: 2rem;
  font-size: .8125rem;
  color: var(--rm-muted);
}
.rm-footer__legal {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rm-line);
}
.rm-footer .rm-credit { margin-top: 0; }

/* ------------------------------------------------------------
   PÁGINA /portfolio/ — grade desencontrada
   ------------------------------------------------------------ */
.rm-show {
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 64%, transparent);
  padding-block: calc(var(--rm-header-h) + clamp(3rem, 7vw, 6rem)) clamp(4rem, 8vw, 7rem);
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
}
.rm-show__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 800px) {
  .rm-show__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem); }
  .rm-show__cell:nth-child(even) { margin-top: 160px; }
}
.rm-show__card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.rm-show__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 64px 6px;
  background: var(--rm-tone-800);
}
.rm-show__card.is-tall .rm-show__media { aspect-ratio: 4 / 5; }
.rm-show__inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120%;
  will-change: transform;
}
.rm-show__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35);
  transition: filter .8s var(--rm-ease), transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) {
  .rm-show__card:hover .rm-show__inner img { filter: none; transform: scale(1.04); }
}
.rm-show__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1.25rem;
}
.rm-show__cat {
  display: block;
  margin-bottom: .35rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-show__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.rm-show__meta {
  font-size: .875rem;
  text-align: right;
  color: var(--rm-muted);
}
.rm-page .rm-port {
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 64%, transparent);
}

/* ------------------------------------------------------------
   PÁGINA /experiencias/ — jornada em tela cheia
   ------------------------------------------------------------ */
.rm-exp {
  --rm-line: color-mix(in srgb, var(--rm-paper) 22%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 72%, transparent);
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--rm-tone-950);
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
}
.rm-exp__stage {
  position: absolute;
  inset: -4%;
  z-index: -1;
  will-change: transform;
}
.rm-exp__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--rm-ease);
}
.rm-exp__bg.is-active { opacity: 1; }
.rm-exp__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.rm-exp__bg.is-active img { transform: scale(1); }
.rm-exp__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0ae6 0%, #0a0a0a99 45%, #0a0a0a33 100%),
    linear-gradient(#0a0a0a99 0%, #0000 25%, #0000 70%, #0a0a0acc 100%);
  transition: opacity 1.2s var(--rm-ease);
}
/* depois de escolher o ambiente, a foto ganha presença */
.rm-exp.is-inside .rm-exp__shade { opacity: .78; }
.rm-exp__ui {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: calc(var(--rm-header-h) + 1.5rem);
  padding-bottom: 2rem;
}
.rm-exp__top,
.rm-exp__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.rm-exp__count {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--rm-accent);
}
.rm-exp__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  max-width: 46rem;
}
.rm-exp__q {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.04;
  outline: none;
}
.rm-exp__options { display: grid; }
.rm-exp__opt {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.05rem 0;
  border: 0;
  border-top: 1px solid var(--rm-line);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: padding .45s var(--rm-ease), color .3s;
}
.rm-exp__opt:last-child { border-bottom: 1px solid var(--rm-line); }
.rm-exp__num {
  min-width: 1.75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--rm-accent);
}
.rm-exp__opt svg {
  width: 1.3rem;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .35s, transform .45s var(--rm-ease);
}
.rm-exp__opt:hover,
.rm-exp__opt:focus-visible,
.rm-exp__opt.is-selected { padding-left: .9rem; outline: none; }
.rm-exp__opt:hover svg,
.rm-exp__opt:focus-visible svg,
.rm-exp__opt.is-selected svg { opacity: 1; transform: none; }
@media (hover: hover) {
  .rm-exp__options:hover .rm-exp__opt { color: color-mix(in srgb, var(--rm-paper) 45%, transparent); }
  .rm-exp__options .rm-exp__opt:hover { color: var(--rm-paper); }
}
.rm-exp__resume {
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--rm-muted);
}
.rm-exp__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.rm-exp__restart,
.rm-exp__back {
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: var(--rm-muted);
  font-family: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.rm-exp__restart { margin-left: .5rem; text-decoration: underline; text-underline-offset: 4px; }
.rm-exp__restart:hover,
.rm-exp__back:hover { color: var(--rm-paper); }
.rm-exp__bars {
  display: flex;
  gap: .4rem;
  width: min(100%, 360px);
  margin-left: auto;
}
.rm-exp__bars i {
  flex: 1;
  height: 2px;
  background: color-mix(in srgb, var(--rm-paper) 22%, transparent);
}
.rm-exp__bars b {
  display: block;
  height: 100%;
  background: var(--rm-paper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .7s var(--rm-ease);
}
.rm-exp__bars i.is-done b { transform: scaleX(1); }

/* ------------------------------------------------------------
   PÁGINA /about/ — quem somos, novidades e galeria
   ------------------------------------------------------------ */
.rm-page--light {
  --rm-line: color-mix(in srgb, var(--rm-ink) 14%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-ink) 64%, transparent);
}
.rm-page--light .rm-dark {
  --rm-line: color-mix(in srgb, var(--rm-paper) 16%, transparent);
  --rm-muted: color-mix(in srgb, var(--rm-paper) 64%, transparent);
}
.rm-about-hero {
  padding-block: calc(var(--rm-header-h) + clamp(3.5rem, 8vw, 7rem)) clamp(3rem, 6vw, 5rem);
}
.rm-about-hero .rm-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.rm-about-hero__title { max-width: 20ch; font-size: clamp(2.1rem, 5.4vw, 5rem); }
.rm-about-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 8;
  border-radius: 64px 6px;
  background: var(--rm-tone-800);
}
.rm-about-image__inner {
  position: absolute;
  inset: 0 0 auto;
  height: 118%;
  will-change: transform;
}
.rm-about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rm-about-story { padding-block: clamp(3.5rem, 8vw, 7rem); }
.rm-about-story--last { padding-top: 0; }
.rm-about-row {
  display: grid;
  gap: 1rem 4rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--rm-line);
}
.rm-about-row:last-child { border-bottom: 1px solid var(--rm-line); }
@media (min-width: 900px) {
  .rm-about-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
.rm-h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.rm-about-row p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--rm-muted);
}
.rm-about-pillars { padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.rm-about-pillars__grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px)  { .rm-about-pillars__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1100px) { .rm-about-pillars__grid { grid-template-columns: repeat(4, 1fr); } }
.rm-about-pillars__grid .rm-mvv__step { width: auto; min-height: 20rem; justify-content: flex-end; }
.rm-about-pillars__grid .rm-mvv__num { margin-bottom: auto; font-size: clamp(3.5rem, 6vw, 5.5rem); }

.rm-news,
.rm-gallery {
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--rm-paper);
}
.rm-gallery { padding-top: 0; }
/* nas páginas de ambiente a galeria abre a faixa escura e emenda com "Outros ambientes" */
.rm-gallery--amb { padding-top: clamp(5rem, 10vw, 9rem); }
.rm-gallery--amb + .rm-amb-section { padding-top: 0; }
.rm-news__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 760px)  { .rm-news__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rm-news__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.rm-post__open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.rm-post__media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: .5rem;
  border-radius: var(--rm-corner-md);
  background: var(--rm-tone-800);
}
.rm-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.35);
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .8s var(--rm-ease);
}
.rm-post__open:hover .rm-post__media img,
.rm-post__open:focus-visible .rm-post__media img { filter: none; transform: scale(1.05); }
.rm-post__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .4rem .8rem;
  border-radius: 2px 12px 2px 2px;
  background: var(--rm-accent);
  color: var(--rm-tone-900);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.rm-post__meta {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rm-muted);
}
.rm-post__title {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.rm-post__excerpt { line-height: 1.6; color: var(--rm-muted); }
.rm-post__more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--rm-line);
  font-size: .875rem;
  font-weight: 600;
  transition: border-color .3s, gap .4s var(--rm-ease);
}
.rm-post__more svg { width: 1rem; }
.rm-post__open:hover .rm-post__more { gap: .9rem; border-color: currentColor; }

.rm-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(140px, 22vw, 320px);
  grid-auto-flow: dense;
  gap: clamp(.6rem, 1.4vw, 1.25rem);
}
@media (min-width: 900px) { .rm-gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.rm-gallery__item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--rm-tone-800);
  cursor: zoom-in;
}
.rm-gallery__item.is-wide { grid-column: span 2; }
.rm-gallery__item.is-tall { grid-row: span 2; }
.rm-gallery__item.is-full { grid-column: 1 / -1; }
.rm-gallery__item:first-child { border-top-left-radius: 64px; }
.rm-gallery__item:last-child { border-bottom-right-radius: 64px; }
.rm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.rm-gallery__item:hover img,
.rm-gallery__item:focus-visible img { transform: scale(1.05); }

.rm-dialog {
  max-width: min(94vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 6px 40px 6px 6px;
  background: var(--rm-tone-900);
  color: var(--rm-paper);
  font-family: Montserrat, sans-serif;
  overflow: auto;
}
.rm-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.rm-dialog[open] { animation: rm-dialog-in .45s var(--rm-ease); }
@keyframes rm-dialog-in { from { opacity: 0; transform: translateY(24px); } }
.rm-dialog__close {
  position: sticky;
  top: .75rem;
  z-index: 2;
  float: right;
  width: 2.75rem;
  height: 2.75rem;
  margin: .75rem .75rem -3.5rem 0;
  border: 0;
  border-radius: 50%;
  background: var(--rm-paper);
  color: var(--rm-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.rm-dialog__post { display: grid; }
@media (min-width: 860px) { .rm-dialog__post { grid-template-columns: 1fr 1.15fr; } }
.rm-dialog__post > img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 92vh;
  object-fit: cover;
  display: block;
}
.rm-dialog__text {
  --rm-muted: color-mix(in srgb, var(--rm-paper) 64%, transparent);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.rm-dialog__text h2 {
  margin: .75rem 0 1.5rem;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.rm-dialog__text p { margin: 0 0 1rem; line-height: 1.75; color: color-mix(in srgb, var(--rm-paper) 78%, transparent); }
.rm-dialog__text a { color: var(--rm-accent); text-underline-offset: 4px; }
.rm-dialog--photo { background: transparent; overflow: visible; }
.rm-dialog__photo { position: relative; margin: 0; }
.rm-dialog__photo img {
  display: block;
  max-width: min(94vw, 1100px);
  max-height: 82vh;
  border-radius: 6px;
}
.rm-dialog__photo figcaption { padding-top: .75rem; font-size: .875rem; text-align: center; color: color-mix(in srgb, var(--rm-paper) 75%, transparent); }
.rm-dialog__nav {
  position: absolute;
  top: 45%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--rm-paper);
  color: var(--rm-ink);
  cursor: pointer;
}
.rm-dialog__nav svg { width: 1.2rem; }
.rm-dialog__nav[data-dir="-1"] { left: .75rem; }
.rm-dialog__nav[data-dir="1"] { right: .75rem; }
.rm-dialog--photo .rm-dialog__close { position: absolute; top: .75rem; right: .75rem; float: none; margin: 0; }

/* ------------------------------------------------------------
   MARQUEE
   ------------------------------------------------------------ */
.rm-marquee {
  overflow: hidden;
  padding: 2.2rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rm-ink) 10%, transparent);
  white-space: nowrap;
  user-select: none;
}
.rm-marquee__track {
  display: inline-flex;
  animation: rm-marquee 48s linear infinite;
  will-change: transform;
}
.rm-marquee__track span {
  display: inline-flex;
  align-items: center;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.75rem, 4.6vw, 4rem);
  font-weight: 200;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1c1b1a;
}
.rm-marquee__track span::after {
  content: "";
  width: .32em;
  height: .32em;
  margin: 0 .7em;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .5;
}
@keyframes rm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   TÍTULOS E PARALLAX
   ------------------------------------------------------------ */
.rm-ready #about h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 300;
}
.rm-ready #about .grid > .relative { overflow: hidden; border-radius: 2px; }
.rm-ready #about .grid > .relative img { will-change: transform; }
.rm-magnetic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .rm-marquee__track,
  .rm-hero__scroll i::after { animation: none; }
  .rm-hero__slide,
  .rm-hero__slide img,
  .rm-header { transition-duration: 0s !important; }
}

/* ------------------------------------------------------------
   PÁGINA /portfolio/ — projetos realizados
   mesmos cartões da dobra do Instagram, parados e centralizados
   ------------------------------------------------------------ */
.rm-reels--grid { padding-top: clamp(2rem, 5vw, 4rem); }
.rm-reels--grid .rm-reels__handle { white-space: normal; cursor: default; }
.rm-reels--grid .rm-reels__handle:hover { color: inherit; background-size: 0 3px; }
.rm-reels--grid .rm-reels__viewport { padding: 0 clamp(1rem, 7.5vw, 7rem); }
.rm-reels--grid .rm-reels__track {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  will-change: auto;
}
.rm-reels--grid .rm-reels__card { margin-right: 0; }
.rm-reels--grid .rm-reels__inner {
  width: min(82vw, 380px);
  will-change: auto;
}
