/* Shared type system: Syne for expressive headings, Jakarta Sans for reading. */
:root {
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --font-reading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --weight-display: 700;
  --weight-reading: 400;
  --leading-display: 1.08;
  --leading-copy: 1.68;
  --tracking-display: -.047em;
  --tracking-card: -.03em;
  --type-hero: clamp(3rem, 5.25vw, 5.8rem);
  --type-section: clamp(2rem, 3.25vw, 3.25rem);
  --type-project: clamp(2rem, 3.6vw, 3.75rem);
  --type-card: clamp(1.125rem, 1.4vw, 1.375rem);
  --type-body: clamp(1rem, .96rem + .18vw, 1.125rem);
  --type-small: .8125rem;
  --header-height: 80px;
}
body { font-family: var(--font-reading); }
main section[id] { scroll-margin-top: calc(var(--header-height) + 24px); }
main section h2 {
  font-size: var(--type-section);
}
main section:not(#hero-section):not(#projetos) h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
main section:not(#hero-section):not(#projetos) h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.22;
  letter-spacing: var(--tracking-card);
  text-wrap: balance;
}
main section h3, main section h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--type-card);
  line-height: 1.22;
  letter-spacing: -.03em;
}
main .font-light { font-weight: var(--weight-reading); }
main section p.font-light, main .faq-content {
  font-size: var(--type-body);
  line-height: var(--leading-copy);
}
main #processo p.font-light { font-size: .9375rem; }
.site-reel h1 {
  font-family: var(--font-display);
  font-size: var(--type-hero);
  max-width: 15ch;
  font-weight: var(--weight-display);
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.site-reel__actions { flex-wrap: wrap; column-gap: 1.5rem; row-gap: .5rem; }
.site-reel__primary { min-height: 48px; }
.site-reel__copy { font-size: var(--type-body); line-height: 1.65; }
.site-kicker, .site-reel__meta { font-size: .75rem; line-height: 1.6; }
.site-kicker::before { flex-shrink: 0; }
.portfolio-head h2 { max-width: 18ch; }
#projetos .portfolio-head h2 .kinetic-word { display: inline-block; margin-right: .35em; }
.portfolio-head > *, .portfolio-feature > * { min-width: 0; }
.portfolio-feature h3 {
  font-size: var(--type-project);
  font-weight: var(--weight-display);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.portfolio-case h3 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.portfolio-head p { font-size: var(--type-body); line-height: var(--leading-copy); }
.portfolio-feature .portfolio-feature__eyebrow { font-size: var(--type-small); line-height: 1.55; letter-spacing: .12em; }
.portfolio-feature .portfolio-feature__counter {
  font-family: var(--font-reading);
  font-size: var(--type-small);
  line-height: 1.5;
  letter-spacing: .1em;
  color: #9eabb6;
}
.portfolio-showcase.is-scroll-driven {
  height: calc(100svh - var(--header-height) - 24px);
  min-height: 0;
}
.portfolio-feature__screen { align-self: center; }
.portfolio-swipe-hint { display: none; }
.portfolio-mobile-controls { display: none; }
#main-header > div:first-child { height: var(--header-height); }
#mobile-menu { max-height: calc(100svh - var(--header-height)); overflow-y: auto; }
#mobile-menu-btn { min-width: 44px; min-height: 44px; }
#mobile-menu a { min-height: 44px; align-content: center; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #D9A441;
  outline-offset: 5px;
}
@media (min-width: 861px) and (max-width: 1199px) {
  .site-reel__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .site-reel h1 { max-width: 16ch; font-size: clamp(2.75rem, 4.7vw, 3.5rem); }
  #main-header nav, #main-header .hidden.lg\:inline-flex { display: none; }
  #mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  #mobile-menu:not(.hidden) { display: block; }
}
@media (max-width: 860px) {
  .portfolio-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .portfolio-head p { max-width: 38rem; }
  .portfolio-showcase { overflow: visible; background: transparent; }
  .portfolio-mobile-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .6rem 1rem 1.25rem; }
  .portfolio-mobile-controls > button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgb(217 164 65 / .34); border-radius: 50%; color: #f4f3ef; background: linear-gradient(145deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); font: 500 1.2rem/1 'Plus Jakarta Sans', sans-serif; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease; }
  .portfolio-mobile-controls > button:not(:disabled):active { background: rgb(217 164 65 / .16); border-color: #D9A441; }
  .portfolio-mobile-controls > button:disabled { opacity: .38; }
  .portfolio-mobile-controls__status { display: flex; align-items: center; justify-content: center; gap: .75rem; min-width: 76px; }
  .portfolio-mobile-controls__indicators { display: flex; align-items: center; gap: .4rem; }
  .portfolio-mobile-controls__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / .34); transition: width .2s ease, background-color .2s ease; }
  .portfolio-mobile-controls__dot[aria-current="true"] { width: 20px; background: #D9A441; }
  .portfolio-mobile-controls__count { color: #aeb8c0; font: 600 .68rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .08em; white-space: nowrap; }
  .portfolio-pin { display: flex; gap: 1rem; width: 100%; height: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 1rem 1rem; }
  .portfolio-pin::-webkit-scrollbar { display: none; }
  .portfolio-feature { position: relative; inset: auto; flex: 0 0 min(88vw, 760px); display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 1.5rem; min-height: 0; height: auto; padding: 2rem; scroll-snap-align: start; }
  .portfolio-feature__screen { margin-top: 0; }
  .portfolio-feature h3 { max-width: 100%; }
  .portfolio-feature__screen img { aspect-ratio: 1.35; }
}
@media (max-width: 600px) {
  .portfolio-feature { flex-basis: 88vw; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .portfolio-feature__screen { width: 100%; margin-top: .5rem; }
}
@media (min-width: 541px) and (max-width: 860px) {
  .site-reel__inner { padding-inline: clamp(2rem, 6vw, 3rem); gap: 1.5rem; }
  .site-reel h1 { max-width: 18ch; font-size: clamp(3rem, 6.5vw, 3.75rem); }
  .site-reel__stage { height: 54vw; min-height: 360px; }
}
@media (max-width: 540px) {
  .site-reel h1 { font-size: clamp(2.5rem, 10.3vw, 3rem); max-width: 100%; }
  .site-reel__inner { padding-inline: 1.5rem; padding-top: 104px; }
  .site-kicker { font-size: .6875rem; letter-spacing: .09em; }
  .site-reel__meta { font-size: .6875rem; gap: .75rem; }
  .portfolio-head h2 { font-size: var(--type-section); line-height: 1.12; }
  .portfolio-feature { padding: 2rem 1.25rem 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  #main-header, a, button { transition: none; }
}

/* Compact Hero composition; all other sections retain their existing layout. */
#hero-section .site-reel {
  background-blend-mode: normal;
}
#hero-section .site-reel::after {
  content: ''; position: absolute; inset: auto 0 0; height: 72px;
  pointer-events: none;
  background: linear-gradient(transparent, #08090c);
}
#projetos .portfolio-head { align-items: center; }
#projetos .portfolio-head h2 {
  font-size: var(--type-section); font-weight: var(--weight-display);
  line-height: var(--leading-display); letter-spacing: var(--tracking-display); max-width: 18ch;
}
#projetos .portfolio-head > div { padding-right: 12px; }
#projetos .portfolio-head p { font-size: var(--type-body); line-height: var(--leading-copy); }
#hero-section .site-reel__inner { gap: clamp(1.5rem, 2.5vw, 2.5rem); }
#hero-section .site-reel__stage { min-width: 0; }
#hero-section .site-reel__stage::before { width: 100%; right: 0; }
@media (min-width: 861px) {
  #hero-section .site-reel__inner { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  #hero-section .site-reel__stage { height: clamp(460px, 72svh, 640px); min-height: 460px; }
  #hero-section .site-reel__meta { margin-top: 1.75rem; }
}
@media (min-width: 1200px) {
  #hero-section .site-reel h1 { font-size: clamp(3rem, 5vw, 5.2rem); }
}
@media (min-width: 541px) and (max-width: 860px) {
  #hero-section .site-reel__stage { height: 46vw; min-height: 310px; }
  #hero-section .site-reel__inner { gap: .75rem; }
}
@media (max-width: 540px) {
  #hero-section .site-reel__meta { margin-top: 1.6rem; }
  #hero-section .site-reel__stage { height: 76vw; min-height: 270px; margin-top: .5rem; }
}
@media (min-width: 861px) and (max-height: 760px) {
  #hero-section .site-reel__inner {
    min-height: 100svh;
    padding: calc(var(--header-height) + 20px) clamp(2rem, 4vw, 4rem) 24px;
    gap: clamp(1.25rem, 2vw, 2rem);
  }
  #hero-section .site-reel h1 {
    max-width: 16ch;
    margin: .8rem 0;
    font-size: clamp(2.65rem, 4.7vw, 3.5rem);
    line-height: 1.01;
  }
  #hero-section .site-reel__copy { line-height: 1.5; }
  #hero-section .site-reel__actions { margin-top: 1rem; }
  #hero-section .site-reel__meta { margin-top: 1rem; }
  #hero-section .site-reel__stage { height: clamp(320px, 58svh, 420px); min-height: 320px; }
}


/* Reduced-motion users still get a horizontal, manually navigable project rail. */
@media (prefers-reduced-motion: reduce) {
  .portfolio-showcase { height: auto; min-height: 0; overflow: visible; }
  .portfolio-pin { display: flex; gap: 1rem; width: 100%; height: auto; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 0 1rem 1rem; }
  .portfolio-feature { position: relative; inset: auto; flex: 0 0 100%; height: auto; min-height: 0; overflow: visible; scroll-snap-align: start; }
}
/* Acabamento das seções editoriais fora do Hero e do portfólio principal. */
main > section:not(#hero-section):not(#projetos):not(#depoimentos-futuros) {
  padding-block: clamp(3.5rem, 5.6vw, 5rem) !important;
}

main > section:not(#hero-section):not(#projetos):not(#depoimentos-futuros) .text-xs.font-bold.uppercase.tracking-widest {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .08em;
  text-wrap: balance;
}

#primeira-impressao .grid > div {
  padding: clamp(1.5rem, 2.25vw, 2rem);
}
#primeira-impressao .grid > div p.text-sm,
#primeira-impressao .grid > div ul.text-sm {
  font-size: .9375rem;
  line-height: 1.62;
}
#primeira-impressao .grid > div li { line-height: 1.58; }
#primeira-impressao .max-w-3xl.mb-16,
#beneficios > div:first-child,
#processo > div:first-child,
#faq > div:first-child {
  margin-bottom: clamp(2rem, 3.5vw, 3rem) !important;
}

/* Os rótulos dos cinco estudos ganham leitura e distância da moldura decorativa. */
#projetos .portfolio-case--demo { padding: 2rem; }
#projetos .portfolio-case--demo .portfolio-case__label {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .1em;
}
#projetos .portfolio-case--demo h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.2;
  letter-spacing: var(--tracking-card);
  text-wrap: balance;
}

/* Etapas do processo: corpo confortável e títulos com respiro consistente. */
#processo .grid > div {
  padding: clamp(1.5rem, 2vw, 1.875rem);
}
#processo .grid > div p.text-xs {
  font-size: 1rem;
  line-height: 1.6;
}
#demonstracao > div > p.text-xs {
  font-size: .8125rem;
  line-height: 1.55;
}

@media (max-width: 600px) {
  #projetos .portfolio-case--demo {
    min-height: 232px !important;
    padding: 1.75rem;
  }
  #projetos .portfolio-case--demo .portfolio-case__label { font-size: .75rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
  #processo .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* Preserve screenshot proportions in both gallery modes. */
#projetos .portfolio-feature__screen { padding:0; border:0; border-radius:0; background:none; box-shadow:none; min-width:0; }
#projetos .portfolio-feature__screen::before,#projetos .portfolio-feature__screen::after { content:none; }
#projetos .project-capture { display:block; color:#c4d6d8; text-decoration:none; }
#projetos .project-capture img { display:block; width:100%; height:auto; aspect-ratio:8/5; object-fit:contain; border-radius:5px; box-shadow:none; }
#projetos .project-capture span { display:flex; min-height:44px; align-items:center; justify-content:flex-end; font-size:.875rem; }
#projetos .project-capture:hover span { text-decoration:underline; }
#projetos .portfolio-pin:focus-visible { outline:2px solid #D9A441; outline-offset:2px; }
#projetos .portfolio-feature__counter { margin-top:1rem; }
@media(min-width:861px) {
  #projetos .portfolio-feature { grid-template-columns:minmax(0,.64fr) minmax(0,1.36fr); padding:clamp(20px,2.5vw,40px); gap:clamp(20px,3vw,48px); }
  #projetos .is-scroll-driven .project-capture img { max-height:calc(100svh - var(--header-height) - 155px); }
}
@media(max-width:860px) {
  #projetos .portfolio-feature { flex-basis:100%; padding:1.25rem .75rem .75rem; }
  #projetos .portfolio-pin { scroll-padding-inline:1rem; }
}
dialog#demo-modal[open]{width:100%;height:100dvh;max-width:none;max-height:none;color:inherit;border:0;overflow-y:auto}#demo-modal>div{max-height:100%;overflow:auto}#demo-modal>div>button{min-width:44px;min-height:44px}

/* SEO mobile-fit recovery: keep the restored brand headline inside the viewport. */
@media (max-width: 540px) {
  #hero-section .site-reel h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.15rem, 8.5vw, 2.8rem);
    line-height: 1.02;
    overflow-wrap: normal;
  }
}

/* SEO mobile content-width recovery: keep the approved hero copy within its column. */
@media (max-width: 540px) {
  #hero-section .site-reel__content,
  #hero-section .site-reel__copy {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* SEO headline fit: preserve the approved Hero proportions with the requested H1. */
@media (min-width: 861px) {
  #hero-section .site-reel h1 {
    width: 100%;
    max-width: 17ch;
    font-size: clamp(3rem, 4.45vw, 4.5rem);
    line-height: 1.02;
  }
}

/* Primeira Impressão: experiência cinematográfica guiada pelo scroll */
#primeira-impressao.primeira-impressao-cinema {
  position: relative;
  min-height: 100svh;
  padding: 0 !important;
  overflow: clip;
  isolation: isolate;
  color: #f5f2eb;
  background: #0b1013;
}
.primeira-impressao-cinema__stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(ellipse at 62% 55%, #273238 0, #151c20 38%, #0b1013 78%);
}
.primeira-impressao-cinema__backdrop,
.primeira-impressao-cinema__video,
.primeira-impressao-cinema__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.primeira-impressao-cinema__video {
  z-index: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .65s ease;
  background: transparent;
}
.primeira-impressao-cinema__stage.is-ready .primeira-impressao-cinema__video { opacity: 1; }
.primeira-impressao-cinema__shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(7 11 13 / .76) 0%, rgb(7 11 13 / .49) 34%, rgb(7 11 13 / .12) 75%, rgb(7 11 13 / .18) 100%), linear-gradient(0deg, rgb(7 11 13 / .54), transparent 35%, rgb(7 11 13 / .24));
}
.primeira-impressao-cinema__ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 64px) clamp(22px, 6vw, 96px) clamp(24px, 3vw, 44px);
  pointer-events: none;
}
.primeira-impressao-cinema__nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.primeira-impressao-cinema__brand { display: inline-flex; flex-direction: column; color: #f5f2eb; text-decoration: none; font: 700 1.05rem/1 Syne, sans-serif; letter-spacing: .08em; }
.primeira-impressao-cinema__brand small { margin-top: 6px; color: rgb(245 242 235 / .62); font: 500 .58rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .22em; }
.primeira-impressao-cinema__nav nav { display: flex; gap: clamp(18px, 3vw, 44px); color: rgb(245 242 235 / .78); font-size: .82rem; }
.primeira-impressao-cinema__nav-cta { padding: 12px 18px; border: 1px solid rgb(245 242 235 / .44); border-radius: 999px; color: #f5f2eb; font-size: .76rem; text-decoration: none; pointer-events: auto; transition: background .2s ease, color .2s ease; }
.primeira-impressao-cinema__nav-cta:hover { color: #111719; background: #f5f2eb; }
.primeira-impressao-cinema__copy { width: min(620px, 58vw); margin: auto 0; padding-block: clamp(24px, 5vh, 54px); }
.primeira-impressao-cinema__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: rgb(245 242 235 / .76); font-size: .68rem; font-weight: 700; letter-spacing: .16em; }
.primeira-impressao-cinema__eyebrow i { width: 24px; height: 1px; background: #e5e1d8; }
.primeira-impressao-cinema__copy h2 { max-width: 10ch; margin: 0; color: #f7f5ef; font: 600 clamp(3rem, 6.2vw, 6rem)/.99 Syne, sans-serif; letter-spacing: -.065em; text-wrap: balance; }
.primeira-impressao-cinema__copy p { max-width: 44ch; margin: 22px 0 28px; color: rgb(245 242 235 / .82); font-size: clamp(.95rem, 1.2vw, 1.125rem); line-height: 1.65; }
.primeira-impressao-cinema__button { display: inline-flex; align-items: center; gap: 24px; padding: 15px 19px; border-radius: 999px; color: #111719; background: #f5f2eb; font-size: .84rem; font-weight: 700; text-decoration: none; pointer-events: auto; }
.primeira-impressao-cinema__button span { font-size: 1.15rem; }
.primeira-impressao-cinema__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgb(245 242 235 / .64); font-size: .64rem; font-weight: 700; letter-spacing: .15em; }
.primeira-impressao-cinema__foot b { margin-left: 8px; color: #f5f2eb; font-size: 1rem; }
.primeira-impressao-cinema__concept-tag { position: absolute; z-index: 3; right: clamp(20px, 3vw, 42px); bottom: 88px; color: rgb(245 242 235 / .68); font-size: .62rem; letter-spacing: .08em; }
@media (max-width: 760px) {
  .primeira-impressao-cinema__stage { align-items: stretch; }
  .primeira-impressao-cinema__shade { background: linear-gradient(180deg, rgb(7 11 13 / .64), rgb(7 11 13 / .22) 42%, rgb(7 11 13 / .5)); }
  .primeira-impressao-cinema__ui { padding: max(22px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); }
  .primeira-impressao-cinema__nav { gap: 12px; }
  .primeira-impressao-cinema__nav nav { display: none; }
  .primeira-impressao-cinema__brand { font-size: .94rem; }
  .primeira-impressao-cinema__brand small { font-size: .52rem; }
  .primeira-impressao-cinema__nav-cta { padding: 10px 12px; font-size: .65rem; white-space: nowrap; }
  .primeira-impressao-cinema__video { inset: 50% 0 auto; height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%); }
  .primeira-impressao-cinema__copy { width: 100%; margin: auto 0; padding: 26vh 0 22vh; }
  .primeira-impressao-cinema__eyebrow { gap: 8px; margin-bottom: 16px; font-size: .56rem; letter-spacing: .1em; }
  .primeira-impressao-cinema__eyebrow i { width: 18px; flex: 0 0 18px; }
  .primeira-impressao-cinema__copy h2 { max-width: 11ch; font-size: clamp(2.65rem, 11vw, 4rem); }
  .primeira-impressao-cinema__copy p { max-width: 34ch; margin: 16px 0 20px; font-size: .9rem; line-height: 1.5; }
  .primeira-impressao-cinema__button { padding: 13px 15px; font-size: .76rem; }
  .primeira-impressao-cinema__foot { font-size: .52rem; letter-spacing: .1em; }
  .primeira-impressao-cinema__concept-tag { right: 18px; bottom: 28px; font-size: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  .primeira-impressao-cinema__video { transition: none; }
  .primeira-impressao-cinema__nav-cta { transition: none; }
}

/* Apresentação Norte em moldura 16:9 compacta, mantendo o palco e o scrub existentes. */
main > section#primeira-impressao.primeira-impressao-cinema:not(#hero-section):not(#projetos):not(#depoimentos-futuros) { padding: 0 !important; }
#primeira-impressao .primeira-impressao-cinema__stage {
  box-sizing: border-box;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(8px, 1.1vh, 14px) 24px;
  place-items: center;
}
#primeira-impressao .primeira-impressao-cinema__backdrop { z-index: 0; }
#primeira-impressao .primeira-impressao-cinema__layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(8px, 1vh, 14px);
}
#primeira-impressao .primeira-impressao-cinema__section-heading {
  width: min(90%, 1240px, max(320px, calc(177.78svh - 231px)));
  color: #f5f2eb;
}
#primeira-impressao .primeira-impressao-cinema__section-heading > span { display: block; margin-bottom: 8px; }
#primeira-impressao .primeira-impressao-cinema__section-heading h2 {
  max-width: none;
  margin: 0;
  font: 700 clamp(1.7rem, 2.7vw, 2.4rem)/1.12 Syne, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
#primeira-impressao .primeira-impressao-cinema__section-heading p {
  max-width: 68ch;
  margin: 10px 0 0;
  color: rgb(226 232 240 / .78);
  font: 400 clamp(.9rem, 1.15vw, 1rem)/1.55 'Plus Jakarta Sans', sans-serif;
}
#primeira-impressao .primeira-impressao-cinema__frame {
  position: relative;
  width: min(90%, 1240px, max(320px, calc(177.78svh - 231px)));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / .28);
  border-radius: clamp(12px, 1.4vw, 20px);
  background: #11191d;
  box-shadow: 0 24px 70px rgb(0 0 0 / .38), 0 0 0 1px rgb(255 255 255 / .035) inset;
}
#primeira-impressao .primeira-impressao-cinema__video,
#primeira-impressao .primeira-impressao-cinema__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#primeira-impressao .primeira-impressao-cinema__video {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
}
#primeira-impressao .primeira-impressao-cinema__shade { z-index: 1; }
#primeira-impressao .primeira-impressao-cinema__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: clamp(16px, 2.3vw, 30px);
  transition: none;
}
#primeira-impressao .primeira-impressao-cinema__copy { width: min(52%, 500px); padding-block: 0; }
#primeira-impressao .primeira-impressao-cinema__eyebrow { margin-bottom: 12px; font-size: clamp(.52rem, .7vw, .66rem); }
#primeira-impressao .primeira-impressao-cinema__copy h2 {
  max-width: 12ch;
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  letter-spacing: -.05em;
}
#primeira-impressao .primeira-impressao-cinema__copy p {
  max-width: 36ch;
  margin: 12px 0 16px;
  font-size: clamp(.72rem, 1vw, .95rem);
  line-height: 1.5;
}
#primeira-impressao .primeira-impressao-cinema__button { padding: 11px 15px; font-size: clamp(.65rem, .8vw, .76rem); }
#primeira-impressao .primeira-impressao-cinema__nav nav { gap: clamp(12px, 2vw, 28px); font-size: clamp(.6rem, .8vw, .75rem); }
#primeira-impressao .primeira-impressao-cinema__nav-cta { padding: 9px 13px; font-size: clamp(.58rem, .72vw, .68rem); }
#primeira-impressao .primeira-impressao-cinema__brand { font-size: clamp(.8rem, 1vw, .95rem); }
#primeira-impressao .primeira-impressao-cinema__foot { font-size: clamp(.48rem, .62vw, .58rem); }
#primeira-impressao .primeira-impressao-cinema__concept-tag { right: 18px; bottom: 14px; font-size: .55rem; }
@media (max-width: 760px) {
  #primeira-impressao.primeira-impressao-cinema { min-height: 100svh; }
  #primeira-impressao .primeira-impressao-cinema__stage { padding: 24px 0; background: linear-gradient(180deg, #0b1013 0%, #0c0f12 58%, #080a0d 100%); }
  #primeira-impressao .primeira-impressao-cinema__layout { gap: 18px; }
    #primeira-impressao .primeira-impressao-cinema__section-heading,
  #primeira-impressao .primeira-impressao-cinema__frame { width: calc(100% - 24px); }
  #primeira-impressao .primeira-impressao-cinema__frame { max-width: max(320px, calc(177.78svh - 231px)); }
  #primeira-impressao .primeira-impressao-cinema__section-heading h2 { max-width: 20ch; font-size: clamp(1.55rem, 7vw, 2.2rem); }
  #primeira-impressao .primeira-impressao-cinema__section-heading p { margin-top: 7px; font-size: .84rem; }
  #primeira-impressao .primeira-impressao-cinema__frame { border-radius: 12px; }
  #primeira-impressao .primeira-impressao-cinema__ui { padding: 10px 12px; }
  #primeira-impressao .primeira-impressao-cinema__nav { gap: 8px; }
  #primeira-impressao .primeira-impressao-cinema__nav nav { display: none; }
  #primeira-impressao .primeira-impressao-cinema__brand { font-size: .62rem; letter-spacing: .06em; }
  #primeira-impressao .primeira-impressao-cinema__brand small { margin-top: 3px; font-size: .4rem; }
  #primeira-impressao .primeira-impressao-cinema__nav-cta { padding: 6px 8px; font-size: .45rem; }
  #primeira-impressao .primeira-impressao-cinema__copy { width: min(62%, 290px); margin: auto 0; }
  #primeira-impressao .primeira-impressao-cinema__eyebrow { margin-bottom: 5px; font-size: .34rem; letter-spacing: .06em; }
  #primeira-impressao .primeira-impressao-cinema__eyebrow i { width: 10px; flex: 0 0 10px; }
  #primeira-impressao .primeira-impressao-cinema__copy h2 { max-width: 11ch; font-size: clamp(1rem, 4.9vw, 1.45rem); }
  #primeira-impressao .primeira-impressao-cinema__copy p { margin: 5px 0 7px; font-size: clamp(.48rem, 2vw, .62rem); line-height: 1.35; }
  #primeira-impressao .primeira-impressao-cinema__button { gap: 8px; padding: 6px 8px; font-size: .46rem; }
  #primeira-impressao .primeira-impressao-cinema__button span { font-size: .7rem; }
  #primeira-impressao .primeira-impressao-cinema__foot { font-size: .35rem; letter-spacing: .05em; }
  #primeira-impressao .primeira-impressao-cinema__concept-tag { right: 8px; bottom: 5px; font-size: .34rem; }
}
@media (prefers-reduced-motion: reduce) {
  #primeira-impressao .primeira-impressao-cinema__ui { transition: none; }
}

/* Encosta a seção cinematográfica ao final do portfólio sem mexer nos cartões. */
#projetos { padding-bottom: clamp(1.25rem, 2.2vw, 2rem) !important; }
#projetos .portfolio-showcase { margin-bottom: clamp(.75rem, 1.4vw, 1.25rem) !important; }

/* Match the approved Hero headline gradient on the primary header CTA. */
#main-header .header-cta-gradient {
  background: linear-gradient(90deg, #C87B45 0%, #E6B35B 100%);
  color: #101316;
}
#main-header .header-cta-gradient:hover { filter: brightness(1.06); }
.header-logo-frame {
  border: 1px solid transparent;
  background: linear-gradient(#0D0F13, #0D0F13) padding-box, linear-gradient(90deg, #C87B45 0%, #E6B35B 100%) border-box;
}
.header-logo-frame { position: relative; isolation: isolate; }
.header-logo-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, #C87B45 0%, #D9A441 52%, #E6B35B 100%);
  -webkit-mask-image: url("/sites/assets/jsa-symbol-white-96.png");
  mask-image: url("/sites/assets/jsa-symbol-white-96.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: scale(1.14);
}
.header-logo-frame > img { position: relative; z-index: 1; }
.header-logo-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
    background-image: linear-gradient(108deg, transparent 42%, #C87B45 46%, #E6B35B 50%, #C87B45 54%, transparent 58%);
    background-size: 200% 100%;
  background-position: 100% center;
  -webkit-mask-image: url("/sites/assets/jsa-symbol-white-96.png");
  mask-image: url("/sites/assets/jsa-symbol-white-96.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.header-logo-frame.is-tracing::after {
  animation: header-logo-trace-sweep 5s linear .35s infinite;
}
@keyframes header-logo-trace-sweep {
  0%, 8% { opacity: 0; background-position: 100% center; }
  12% { opacity: .95; background-position: 100% center; }
  42% { opacity: .95; background-position: 0% center; }
  48%, 100% { opacity: 0; background-position: 0% center; }
}
@media (prefers-reduced-motion: reduce) {
  .header-logo-frame.is-tracing::after { animation: none; opacity: 0; }
}

/* On narrow screens, vertical page scroll also advances the project rail laterally. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  #projetos .portfolio-showcase.is-mobile-scroll-driven {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: min(620px, calc(100svh - var(--header-height) - 24px));
    min-height: 420px;
    overflow: hidden;
  }
  #projetos .portfolio-showcase.is-mobile-scroll-driven .portfolio-pin {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
  }
  #projetos .portfolio-showcase.is-mobile-scroll-driven .portfolio-feature {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  #projetos .portfolio-showcase.is-mobile-scroll-driven .portfolio-mobile-controls {
    flex: 0 0 58px;
    margin-block: 0 .5rem;
  }
}

/* Compacta apenas a entrada cinematográfica em tablet e celular. */
@media (max-width: 860px) {
  #primeira-impressao.primeira-impressao-cinema {
    min-height: auto;
    scroll-margin-top: 12px;
  }
  #primeira-impressao .primeira-impressao-cinema__stage {
    min-height: 82svh;
    padding: calc(var(--header-height) + 12px) 0 24px;
    place-items: start center;
  }
  #primeira-impressao .primeira-impressao-cinema__layout {
    gap: clamp(10px, 1.4svh, 14px);
  }
}

/* Palco cinematográfico mais compacto em tablets: mantém espaço para o conteúdo 16:9 sem a grande sobra inferior. */
@media (min-width: 601px) and (max-width: 1023px) {
  #primeira-impressao .primeira-impressao-cinema__stage { min-height: 68svh; }
}

/* Ajustes locais da auditoria: alvo de toque maior sem aumentar visualmente os indicadores. */
@media (max-width: 860px) {
  .portfolio-mobile-controls__dot,
  .portfolio-mobile-controls__dot[aria-current="true"] { display:inline-grid; width:24px; height:24px; min-width:24px; min-height:24px; padding:0; place-items:center; background:transparent; }
  .portfolio-mobile-controls__dot::before { content:""; width:7px; height:7px; border-radius:999px; background:rgb(255 255 255 / .42); transition:width .2s ease, background-color .2s ease; }
  .portfolio-mobile-controls__dot[aria-current="true"]::before { width:20px; background:#D9A441; }
}
#demonstracao p.text-xs.text-slate-500,
#site-footer .site-footer__copyright { color:#8290a0; }

/* Rodapé mobile: navegação distribuída em uma grade clara e equilibrada. */
@media (max-width: 767px) {
  #site-footer .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 520px;
    gap: 14px 12px;
    text-align: center;
  }

  #site-footer .site-footer__copyright {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  #site-footer .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    column-gap: 10px;
    row-gap: 12px;
  }
}
/* Primeiro quadro do vídeo, apresentado enquanto a mídia é carregada. */
#primeira-impressao .primeira-impressao-cinema__poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:0; }
#primeira-impressao .primeira-impressao-cinema__video { z-index:1; }

/* Compacta o palco nos dispositivos menores sem alterar vídeo ou enquadramento.
   O espaço adicional da rolagem continua sob controle do ScrollTrigger. */
@media (max-width: 1023px) {
  #primeira-impressao .primeira-impressao-cinema__stage { min-height: 0; }
}


/* Mobile viewport height: let the Hero follow its content instead of stretching into an empty svh block. */
@media (max-width: 860px) {
  #hero-section .site-reel,
  #hero-section .site-reel__inner { min-height: auto; }
}

/* Mobile spacing pass: reduce repeated vertical padding while retaining all content and scroll-driven behavior. */
@media (max-width: 860px) {
  #projetos { padding-top: 48px !important; padding-bottom: 48px !important; }
  #projetos .portfolio-head { padding-bottom: 24px !important; }
  #projetos .portfolio-showcase { margin-top: 24px !important; margin-bottom: 8px !important; }

  #beneficios,
  #demonstracao,
  #processo,
  #recursos,
  #faq { padding-top: 44px !important; padding-bottom: 44px !important; }

  #beneficios > .max-w-3xl,
  #processo > .max-w-3xl { margin-bottom: 24px !important; }
  #recursos > .max-w-3xl { margin-bottom: 32px !important; }
  #faq > div:first-child { margin-bottom: 24px !important; }

  #beneficios .benefit-art-card { min-height: 360px !important; }
  #beneficios > .grid > .editorial-dark-card { padding: 24px !important; }
  #processo .process-step { padding: 20px !important; }
  #processo > .grid { row-gap: 16px !important; }
  #demonstracao > .rounded-3xl { padding: 24px !important; }
}

/* Keep horizontal project cards readable while reducing unused pin runway on short screens. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  #projetos .portfolio-showcase.is-mobile-scroll-driven {
    height: min(560px, calc(100svh - var(--header-height) - 24px));
  }
}
/* Specificity matches the existing editorial section-spacing rule so these mobile overrides take effect. */
@media (max-width: 860px) {
  main > section#projetos { padding-top: 48px !important; padding-bottom: 48px !important; }
  main > section:not(#hero-section):not(#projetos):not(#depoimentos-futuros) {
    padding-block: 44px !important;
  }
}
/* Second mobile rhythm pass: close the remaining gaps between content sections. */
@media (max-width: 860px) {
  main > section#projetos { padding-block: 36px !important; }
  main > section:not(#hero-section):not(#projetos):not(#depoimentos-futuros) {
    padding-block: clamp(32px, 4vw, 36px) !important;
  }
  main > section#beneficios > .max-w-3xl,
  main > section#processo > .max-w-3xl { margin-bottom: 20px !important; }
  main > section#recursos > .flex.flex-wrap { margin-bottom: 0 !important; }
}
/* Mobile/tablet: one project per step, horizontal swipe, no vertical pin. */
@media (max-width: 860px) {
  main > section#projetos { padding-bottom: 12px !important; }
  #projetos .portfolio-showcase { margin-bottom: 0 !important; }
  #projetos .portfolio-feature { flex-basis: 100% !important; }
}
@media (max-width: 860px) {
  #projetos .portfolio-pin { display: block; overflow: hidden; padding: 0; touch-action: pan-y; }
  #projetos .portfolio-feature { flex: none; width: 100%; }
  #projetos .portfolio-feature[hidden] { display: none !important; }
}

/* Aproxima a demonstração cinematográfica do portfólio em telas pequenas. */
@media (max-width: 860px) {
  #primeira-impressao .primeira-impressao-cinema__stage {
    padding: 8px 0 16px !important;
  }
  #projetos { padding-bottom: 8px !important; }
  #projetos .portfolio-intro { padding-bottom: 8px !important; }
  #projetos .portfolio-mobile-controls { margin-bottom: 8px !important; }
}
