/* ==========================================================================
   E.M. de Sousa — telas ≤850px.
   As cenas de rolagem do desktop viram blocos editoriais em fluxo normal:
   título, texto, imagem — com alturas naturais e um único reveal leve por cena.
   Carregado via <link media="(max-width:850px)">; nenhuma regra aqui roda no desktop.
   ========================================================================== */
:root {
  --gutter: 6%;
  --header: 72px;
}
html {
  scroll-padding-top: 16px;
}
body {
  font-size: 16px;
}

h1 {
  font-size: clamp(44px, 12.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -1.2px;
}
h2 {
  font-size: clamp(38px, 10.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 30px;
  line-height: 1.14;
}
.eyebrow {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 1.5px;
  line-height: 1.45;
}
.section {
  padding: 64px var(--gutter);
}
.button {
  width: 100%;
  max-width: none;
  font-size: 14px;
  min-height: 50px;
}
.primary-button {
  justify-content: center;
}

/* Header: marca + um único convite. ------------------------------------------ */
.header {
  min-height: 0;
  padding: 14px var(--gutter);
  gap: 14px;
  flex-wrap: nowrap;
}
.brand {
  gap: 10px;
}
.brand-monogram {
  font-size: 27px;
  letter-spacing: -4px;
  padding: 7px 11px 8px 6px;
}
.brand-name {
  font-size: 22px;
}
.brand-descriptor {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 1.25px;
}
.header nav {
  margin-left: auto;
  gap: 0;
  flex: none;
}
.header nav > a:not(.nav-outline) {
  display: none;
}
.header .nav-outline {
  padding: 11px 0;
  font-size: 13px;
}

/* Abertura ------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.hero-copy {
  padding: 44px var(--gutter) 36px;
}
.hero-copy h1 {
  max-width: 11ch;
  margin-bottom: 22px;
}
.intro {
  max-width: none;
}
.intro p {
  max-width: 36rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-secondary {
  margin-top: 18px;
}
.hero-bottom {
  margin-top: 30px;
  padding: 16px 0;
  gap: 16px;
  line-height: 1.55;
  font-size: 10px;
  letter-spacing: 1.4px;
}
.hero-bottom span {
  max-width: 190px;
}
.hero-image {
  min-height: 0;
  aspect-ratio: 4/5;
}
.hero-image img {
  object-position: 52% center;
}
.hero-image figcaption {
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-size: 18px;
}
.motion-enabled .hero-copy {
  transform: none;
  opacity: 1;
}
.motion-enabled .hero-image {
  clip-path: none;
}
.motion-enabled .hero-image img {
  transform: translateY(var(--hero-y, 0px)) scale(1.1);
}

/* Declaração ---------------------------------------------------------------- */
.statement {
  display: block;
  padding-top: 56px;
  padding-bottom: 56px;
}
.statement .eyebrow {
  margin: 0 0 18px;
}
.statement h2 {
  max-width: none;
  font-size: clamp(30px, 8.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.5px;
}
.statement h2 br {
  display: none;
}
.statement > div > p {
  max-width: none;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
}

/* Estudo de cor: texto, depois a imagem que se pinta uma vez ao entrar. ------ */
.colour-story {
  height: auto;
  padding: 64px 0 60px;
}
.colour-pin {
  position: static;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.colour-copy {
  margin: 0 var(--gutter);
  max-width: none;
}
.colour-copy h2 {
  font-size: clamp(40px, 11vw, 52px);
  margin-bottom: 16px;
}
.colour-copy > p:last-child {
  max-width: 38rem;
  font-size: 16px;
  line-height: 1.7;
}
.colour-stage {
  position: relative;
  inset: auto;
  overflow: visible;
  background: transparent;
  display: block;
}
.colour-stage > img.neutral-room {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  transform: none;
}
.terracotta-reveal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.terracotta-reveal img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  transform: none;
}
.reveal-rule {
  bottom: auto;
  height: 125vw;
  box-shadow: 0 0 14px #fff8;
}
.reveal-handle {
  top: 62.5vw;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  font-size: 18px;
}
.colour-stage:after {
  display: none;
}
.colour-stage figcaption {
  position: static;
  display: block;
  max-width: none;
  padding: 14px var(--gutter) 0;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #c9c5bb;
}
.colour-index {
  position: static;
  order: 3;
  margin: -8px var(--gutter) 0;
  font-size: 10px;
}

/* Serviços ------------------------------------------------------------------ */
.section-heading {
  display: block;
  margin-bottom: 32px;
}
.section-heading h2 {
  width: auto;
}
.service-grid,
.service-pair {
  grid-template-columns: 1fr;
}
.service-grid article,
.service-grid article + article {
  padding: 26px 0;
  border-left: 0;
  border-bottom: 1px solid var(--rule);
}
.service-grid h3 {
  margin: 14px 0 14px;
}
.service-grid p {
  max-width: none;
}

/* Palco "presença." --------------------------------------------------------- */
.portfolio {
  padding: 64px var(--gutter);
}
.portfolio-title {
  text-align: left;
  margin-bottom: 26px;
}
.portfolio-title .eyebrow {
  justify-content: flex-start;
}
.image-stage {
  height: auto;
  min-height: 0;
  aspect-ratio: 4/5;
  clip-path: none;
}
.image-stage > img {
  transform: none;
}
.stage-word {
  opacity: 1;
  transform: translate(-50%, -50%);
  font-size: clamp(56px, 17vw, 84px);
}
.motion-enabled .stage-word {
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.35s;
}
.motion-enabled .image-stage.is-in .stage-word {
  opacity: 1;
}
.stage-caption {
  padding: 18px;
  font-size: 10px;
  letter-spacing: 1.2px;
}
.portfolio-bottom {
  gap: 16px;
  font-size: 10px;
  line-height: 1.6;
}
.portfolio-bottom .text-link {
  font-size: 13px;
  white-space: nowrap;
}

/* Inspirações: mesmo trilho nativo, em cartões de retrato -------------------- */
.inspiration-rail {
  padding: 64px 0 56px;
}
.rail-pin {
  gap: 28px;
}
.rail-heading {
  display: block;
  padding: 0 var(--gutter);
}
.rail-heading h2 {
  font-size: clamp(38px, 10.5vw, 50px);
}
.rail-heading > p {
  max-width: none;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
}
.rail-window:after {
  width: 56px;
}
.rail-viewport {
  scroll-padding: 0 6vw;
  cursor: auto;
}
.rail-track {
  gap: 14px;
  padding: 0 6vw;
}
.rail-card {
  flex: 0 0 78vw;
  height: auto;
  min-height: 0;
  aspect-ratio: 4/5;
}
.rail-card img {
  transform: none;
}
.rail-card span {
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: block;
}
.rail-card strong {
  font-size: clamp(30px, 8.5vw, 40px);
}
.rail-card span em {
  display: inline-block;
  margin: 14px 0 0;
}
.rail-controls button {
  min-height: 44px;
}

/* Orçamento ----------------------------------------------------------------- */
.process {
  display: block;
}
.process-lead {
  position: static;
}
.process-lead .section-heading {
  margin-bottom: 22px;
}
.process-intro {
  max-width: none;
  margin-bottom: 0;
}
.process-lead .primary-button {
  margin-top: 24px;
  margin-bottom: 40px;
}
.process-grid {
  gap: 34px;
  padding: 0;
}
.process-grid article {
  min-height: 0;
  padding-top: 24px;
}
.process-grid h3 {
  margin: 16px 0 12px;
  font-size: 32px;
}
.process-grid p {
  max-width: none;
}
.process-grid article:before {
  transform: scaleX(1);
}
.motion-enabled .process-grid article:before {
  transform: scaleX(0);
}
.motion-enabled .process-grid article.is-in:before {
  transform: scaleX(1);
}

/* A empresa / Onde atendemos / Dúvidas / Contato ---------------------------- */
.about {
  grid-template-columns: 1fr;
  gap: 26px;
}
.about > div:first-child {
  position: static;
}
.since {
  font-size: 64px;
}
.about-text {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}
.coverage {
  grid-template-columns: 1fr;
  gap: 30px;
}
.coverage h2 {
  font-size: clamp(48px, 13vw, 64px);
}
.coverage:before {
  clip-path: none;
}
.coverage-copy {
  padding: 0;
}
.state {
  font-size: 55px;
}
.faq {
  grid-template-columns: 1fr;
  gap: 26px;
}
.faq > div:first-child {
  position: static;
}
.faq > div > p:not(.eyebrow) {
  max-width: none;
}
.faq-list summary {
  padding: 20px 30px 20px 0;
  font-size: 16px;
}
.faq-list details p {
  margin-right: 12px;
}
.contact {
  grid-template-columns: 1fr;
  gap: 28px;
}
.contact-actions {
  width: 100%;
}
.contact-phone {
  font-size: 22px;
}

/* Rodapé -------------------------------------------------------------------- */
footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 44px var(--gutter);
}
footer .brand {
  gap: 10px;
}
.footer-links {
  gap: 6px 18px;
}
footer > a:last-child {
  justify-self: start;
  margin-top: 4px;
}

/* Inspirações (páginas) ----------------------------------------------------- */
.page-intro,
.collection-intro {
  display: block;
  padding-top: 44px;
  padding-bottom: 36px;
}
.page-intro h1,
.collection-intro h1 {
  font-size: clamp(44px, 12.5vw, 58px);
}
.page-intro .lead,
.collection-intro .lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
}
.breadcrumb {
  margin-bottom: 26px;
}
.project-index {
  padding: 0 var(--gutter) 56px;
}
.collection-grid {
  display: block;
}
.project-card,
.project-2,
.project-3 {
  padding: 0;
  margin-bottom: 46px;
}
.project-card .story-image,
.project-1 .story-image,
.project-2 .story-image {
  height: auto;
  max-height: none;
  aspect-ratio: 4/5;
}
.project-card .story-image img {
  height: 100%;
}
.project-1 .project-description {
  display: block;
}
.project-description {
  padding: 22px 0;
}
.project-description > p,
.project-1 .project-description > p {
  max-width: none;
  margin-top: 12px;
  font-size: 16px;
}
.project-open {
  left: 18px;
  bottom: 14px;
}
.project-gallery {
  padding: 0 var(--gutter) 40px;
}
.gallery-heading {
  display: block;
}
.gallery-heading .eyebrow {
  margin-bottom: 8px;
}
.gallery-heading > p:last-child {
  margin: 0 0 20px;
}
.gallery-track {
  gap: 14px;
}
.gallery-slide {
  flex-basis: 86%;
}
.gallery-slide:last-child {
  margin-right: 14%;
}
.gallery-picture {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3/2;
}
.gallery-slide figcaption {
  display: block;
  font-size: 14px;
  line-height: 1.7;
}
.gallery-slide figcaption span {
  display: block;
}
.gallery-controls {
  gap: 25px;
  margin-top: 8px;
}
.story-chapter {
  grid-template-columns: 1fr;
  gap: 14px;
}
.story-chapter h2 {
  margin-bottom: 20px;
}
.story-chapter > div > p {
  font-size: 16px;
  line-height: 1.75;
}
.choice-context {
  margin: 20px 0 34px;
}
.choice-list article {
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 26px 0;
}
.choice-list h3 {
  font-size: 28px;
}
.swatch {
  grid-column: 2;
  width: 60px;
  height: 24px;
}
.detail-story {
  grid-template-columns: 1fr;
  gap: 34px;
}
.detail-crop {
  height: auto;
  aspect-ratio: 3/2;
}
.detail-crop figcaption {
  position: static;
  display: block;
  padding: 12px 0 0;
  color: var(--muted);
  text-shadow: none;
  font-size: 12px;
}
.detail-crop figcaption span {
  color: var(--muted);
}
.detail-story h2 {
  margin-bottom: 18px;
}
.story-ending h2 {
  font-size: clamp(42px, 11.5vw, 56px);
}
.story-cta {
  margin: 28px auto 30px;
}
.story-cta-title {
  font-size: 26px;
}
.story-ending .story-cta-button {
  width: 100%;
  justify-content: center;
}
.motion-enabled .project-card .story-image img,
.motion-enabled .detail-crop img,
.motion-enabled .case-cover img {
  transform: none;
}
.motion-enabled .project-card:hover .story-image img {
  transform: scale(1.03);
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 19px;
  }
  .brand-descriptor {
    letter-spacing: 1px;
  }
  .header .nav-outline {
    font-size: 12px;
  }
  .hero-bottom {
    font-size: 9px;
  }
}
