.hero-tools-wrap {
  position: absolute;
  inset: auto 0 15px;
  pointer-events: none;
}
.hero-tools { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; }
.hero-tools .hero-motion-toggle, .hero-watch {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #ffffff78;
  border-radius: 5px;
  color: #fff;
  background: #101010da;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}
.hero-watch { border-color: var(--orange); }
.hero-watch:hover { color: var(--black); background: var(--orange); }
.hero--motion .hero-copy {
  padding-inline: var(--section-inset);
  padding-bottom: max(98px, min(9vw, 132px));
}
.hero--motion::after {
  background: linear-gradient(0deg, #141414, transparent 32%),
    linear-gradient(90deg, #101010f0, #101010d1 33%, #101010b3 61%, #10101035);
}
.hero--motion .hero-line { color: var(--orange); }
main {
  --section-inset: clamp(0px, calc((100vw - 32rem) * .11), 7%);
  --display-size: clamp(2.1rem, 8.5vw, 7.875rem);
  --heading-size: clamp(1.8rem, 4.4vw, 3rem);
  --body-size: clamp(1.0625rem, 2.15vw, 1.5rem);
  --body-leading: 1.8;
  --section-padding: clamp(56px, 8vw, 116px);
  --section-edge: #141414;
  background: var(--section-edge);
}
.manifesto {
  --shot-width: clamp(570px, 64vw, 1140px);
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(330px, 34vw, 570px);
  padding-block: clamp(78px, 15vw, 240px);
}
.filmstrip, .manifesto::after { position: absolute; inset: 0; pointer-events: none; }
.filmstrip {
  display: flex;
  mask-image: linear-gradient(to bottom,
    transparent, #0003 4%, #000b 9%, #000 13% 85%, #000b 91%, #0003 96%, transparent);
}
.filmstrip-track { display: flex; gap: 8px; height: 100%; }
.filmstrip figure { flex: 0 0 var(--shot-width); width: var(--shot-width); height: 100%; }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; }
.manifesto::after {
  content: "";
  z-index: 1;
  background: linear-gradient(#14141426, #14141426),
    linear-gradient(90deg, #101010b0, #101010c9 42%, #1010108c);
}
.manifesto-content { z-index: 2; padding-inline: var(--section-inset); }
.manifesto-content p {
  max-width: 55ch;
  font-size: clamp(1.125rem, 2.4vw, 1.75rem);
  color: #e5e5e5;
  line-height: 1.6;
}
.manifesto-content strong { color: var(--white); }
.manifesto-line { margin-top: 17px; }
.manifesto-line strong { color: var(--orange); }
.manifesto-content .filmstrip-credit {
  margin-top: 22px;
  color: var(--muted);
  font-size: .75rem;
}
.motion-control {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ffffff65;
  border-radius: 5px;
  background: #161616ed;
  color: var(--white);
  font-size: .83rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}
.motion-control:hover { border-color: var(--orange); }

.portfolio--posters { position: relative; isolation: isolate; padding-block: var(--section-padding); }
.portfolio-background, .portfolio-background::after, .portfolio-background img { position: absolute; inset: 0; }
.portfolio-background { overflow: hidden; z-index: -1; pointer-events: none; }
.portfolio-background img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-background img:nth-child(2) { opacity: 0; transition: opacity 1.5s ease; }
.portfolio-background img:nth-child(2).is-visible { opacity: 1; }
.portfolio-background::after {
  content: "";
  background: linear-gradient(0deg, var(--section-edge), #1414140d 18% 85%, var(--section-edge)),
    linear-gradient(90deg, #101010df, #101010ad);
}
.portfolio--posters .section-heading {
  margin-bottom: 30px;
  padding: 0 var(--section-inset) 24px;
  border-bottom: 1px solid #ffffff35;
}
.portfolio--posters .section-heading p { max-width: 76ch; font-size: clamp(1.0625rem, 2.2vw, 1.5625rem); line-height: 1.8; }
.portfolio--posters .section-heading .portfolio-lead {
  margin-block: clamp(22px, 3vw, 38px) 20px;
  color: var(--white);
  font-size: var(--heading-size);
  font-weight: 700;
  line-height: 1.2;
}
.poster-carousel { position: relative; }
.poster-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: clamp(12px, 2vw, 26px);
}
.poster-strip.can-drag :is(.poster-card, .poster-image) { cursor: grab; }
.poster-strip.is-dragging { scroll-snap-type: none; user-select: none; }
.poster-strip.is-dragging :is(.poster-card, .poster-image) { cursor: grabbing; }
.poster-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 12px;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}
.poster-image {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid #ffffff35;
  border-radius: 5px;
  background: var(--surface);
}
.poster-image img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:hover .poster-image, .poster-card:focus-visible .poster-image { border-color: var(--orange); }
.poster-note {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 4px 7px;
  background: #101010ea;
  border-radius: 3px;
  color: var(--white);
  font-size: .71rem;
}
.poster-label { display: grid; align-content: start; padding-block: 4px; container-type: inline-size; }
.poster-label h3 {
  font-size: clamp(.8rem, 8.4cqi, 1.375rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.poster-label p { margin-top: 6px; color: var(--orange); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.poster-description { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.poster-arrow, .gallery-bar button, .dialog-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--white);
  border: 1px solid #ffffff55;
  border-radius: 5px;
  background: var(--surface);
  font-size: 1.55rem;
  cursor: pointer;
  line-height: 1;
}
.poster-arrow {
  position: absolute;
  z-index: 1;
  top: var(--poster-arrow-center, 50%);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #141414ed;
  font-size: 1.85rem;
}
.poster-arrow[data-poster-step="-1"] { left: -14px; }
.poster-arrow[data-poster-step="1"] { right: -14px; }
.poster-arrow[aria-disabled="true"] { opacity: .46; cursor: default; }
.poster-arrow:not([aria-disabled="true"]):hover, .gallery-bar button:hover, .dialog-close:hover { border-color: var(--orange); }
.gallery-bar button:disabled { opacity: .38; cursor: default; }

.institution { position: relative; padding-block: var(--section-padding); }
.institution > .wrap, .contact > .wrap { padding-inline: var(--section-inset); }
.institution .section-heading, .contact .section-heading { margin-bottom: clamp(22px, 3vw, 40px); }
.institution .section-heading h2, .portfolio--posters .section-heading h2, .contact h2 {
  color: var(--orange);
  font-size: var(--heading-size);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.1;
  text-wrap: balance;
}
:is(.portfolio--posters, .frame-triade, .frame-luxury, .frame-masterplan, #nosso-time, .institution--partners) .section-heading h2 {
  font-size: var(--display-size);
  text-transform: uppercase;
}
.frame-masterplan { --display-size: clamp(2rem, 7.4vw, 6.5rem); }
.institution .section-heading p, .contact .section-heading p {
  max-width: 70ch;
  margin-top: 18px;
  font-size: var(--body-size);
  line-height: var(--body-leading);
}
.institution .section-heading h3, .institution-copy h3 {
  margin-top: clamp(20px, 3vw, 38px);
  font-size: var(--heading-size);
  font-weight: 500;
  line-height: 1.2;
}
.institution--dna, .frame-triade .section-heading, .frame-essencia, .frame-historia { text-align: center; }
:is(.institution--dna, .frame-triade, .frame-essencia, .frame-historia) :is(.institution-copy, .section-heading p) { margin-inline: auto; }
.institution--dna .institution-copy, .frame-essencia .institution-copy, .frame-historia .section-heading p { max-width: 900px; }
#nosso-time .section-heading p, .institution--partners .section-heading p { font-size: clamp(1.0625rem, 1.55vw, 1.125rem); line-height: 1.6; }
.with-frame {
  background-color: var(--section-edge);
  background-image: linear-gradient(0deg, var(--section-edge), #14141405 17% 83%, var(--section-edge)),
    linear-gradient(90deg, #141414ee, #141414cc 50%, #141414a0), var(--section-frame);
  background-position: center, center, var(--section-position, center);
  background-size: cover;
}
.frame-triade > .wrap { padding-inline: clamp(0px, 2vw, 3%); }
.frame-triade { --section-frame: url("assets/fundos/triade.webp"); }
.frame-luxury { --section-frame: url("assets/fundos/human-luxury.webp"); }
.frame-masterplan { --section-frame: url("assets/fundos/masterplan.webp"); }
.frame-essencia { --section-frame: url("assets/fundos/essencia.webp"); }
.frame-historia { --section-frame: url("assets/fundos/historia.webp"); }
.institution-copy { max-width: 70ch; color: var(--muted); font-size: var(--body-size); line-height: var(--body-leading); }
.institution-copy p + p { margin-top: 25px; }
.institution-copy h3 { margin-bottom: 20px; color: var(--white); }
.institution-copy h4 { margin: 25px 0 12px; color: var(--orange); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.frame-luxury .institution-copy strong { color: var(--orange); }
.institution-callout {
  margin-top: 24px;
  padding: 15px 18px;
  border-left: 3px solid var(--orange);
  background: #181818df;
}
.institution-callout h4 { margin-top: 0; color: var(--orange); }
.institution-callout p { font-size: 1rem; line-height: 1.7; color: var(--white); }
.triad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.triad-grid article, .institution .method-steps li {
  padding: 19px 20px;
  border: 1px solid #ffffff2b;
  border-radius: 6px;
  background: #181818e8;
}
.triad-grid h3, .institution .method-steps h4 { color: var(--orange); font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 9px; }
.triad-grid p, .institution .method-steps p { color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.triad-grid article { border-left: 3px solid var(--orange); }
.institution .section-label { margin-bottom: 8px; color: var(--white); font-weight: 700; }
.institution--partners { background: #202020; }
.profiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1000px;
}
.profile-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  grid-row: 2;
  gap: 10px;
}
.profile-controls [data-profile] {
  width: clamp(46px, 6vw, 65px);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 3px solid #676767;
  border-radius: 50%;
  background: #181818;
  cursor: pointer;
}
.profile-controls [data-profile]:is([aria-pressed="true"], :hover) { border-color: var(--orange); }
.profile-controls img { width: 100%; height: 100%; object-fit: cover; object-position: center 33%; }
.profile-panel {
  display: grid;
  grid-template-columns: minmax(125px, 240px) minmax(0, 1fr);
  grid-column: 1;
  grid-row: 1;
  align-items: start;
  gap: clamp(14px, 3vw, 32px);
}
.profile-panel > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 2px solid var(--orange); border-radius: 7px; }
.profile-panel h3 { color: var(--orange); font-size: clamp(1.25rem, 2.65vw, 1.75rem); line-height: 1.2; margin: 8px 0 6px; }
.profile-panel p { color: #e0e0e0; font-size: .9375rem; line-height: 1.7; }
.profile-panel .profile-role { color: var(--muted); font-weight: 600; font-size: 1rem; margin-bottom: 14px; }
.profile-panel .profile-detail { margin-top: 12px; }
.profile-detail strong { color: var(--white); }

.site-footer .footer-main { grid-template-columns: 1.15fr .85fr .8fr 1.2fr; }
.footer-manifesto { margin-bottom: 10px; max-width: 30ch; }
.site-footer .social-links img { filter: invert(1); }
.site-footer .footer-cta { margin-top: 12px; }
.site-footer .footer-cta:hover { color: var(--charcoal); text-decoration: none; }
.site-footer { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.clip-reel { padding-block: var(--section-padding); }
.clip-reel-inner { width: min(70%, 1320px); margin-inline: auto; }
.clip-reel h2 {
  margin-bottom: clamp(16px, 3vw, 30px);
  color: var(--orange);
  font-size: var(--heading-size);
  line-height: 1.15;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.clip-stage video {
  width: 100%;
  height: auto;
  aspect-ratio: 2.39;
  object-fit: contain;
  background: #080808;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.clip-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; margin-top: 10px; }
.clip-description { max-width: 66ch; margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.65; }
.clip-description strong { color: var(--white); }
.clip-status { margin-top: 12px; color: var(--muted); }
.contact { padding-block: var(--section-padding); border-top: 0; background: linear-gradient(#141414, #222 35%, #222); text-align: center; }
.contact-inner { display: grid; justify-items: center; justify-content: center; gap: 0; }
.contact .section-heading { margin-bottom: 28px; }
.contact h2 { color: var(--white); }
.contact .section-heading p { margin-inline: auto; }
.frame-historia .button, .contact .button, .site-footer .footer-cta {
  max-width: 100%;
  font-size: clamp(.875rem, 1.25vw, 1rem);
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}
.site-footer .footer-cta { padding-inline: 16px; }

.quick-links {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  gap: 7px;
}
.quick-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 2px 9px #0008;
}
.quick-link:hover, .quick-link[href="#topo"] { background: var(--orange); color: var(--black); }
.quick-whatsapp { background: #176b45; }
.quick-whatsapp svg { width: 23px; height: 23px; }

body:has(dialog[open]) { overflow: hidden; }
.preview-dialog {
  padding: 0;
  width: min(980px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--charcoal);
  color: var(--white);
}
.preview-dialog::backdrop { background: #000c; }
.dialog-box { position: relative; padding: clamp(16px, 3vw, 30px); }
.dialog-box h2 { font-size: clamp(1.4rem, 4vw, 2.35rem); line-height: 1.15; padding-right: 46px; }
.dialog-close { position: absolute; top: 11px; right: 11px; }
.dialog-note { color: var(--muted); font-size: .93rem; margin-block: 8px 14px; max-width: 65ch; }
.dialog-note a { color: var(--orange); }
.preview-dialog video { width: 100%; max-height: 53dvh; height: auto; border-radius: 5px; background: #101010; }
.gallery-stage {
  display: grid;
  place-items: center;
  background: #101010;
  border-radius: 5px;
  min-height: 110px;
  overflow: hidden;
  touch-action: pan-y;
}
.gallery-stage img { width: 100%; height: auto; max-height: 50dvh; object-fit: contain; }
.gallery-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 0 13px; }
.gallery-bar p { color: var(--muted); text-align: center; font-size: .87rem; }
.dialog-actions { border-top: 1px solid var(--line); padding-top: 13px; }

@media (max-width: 1160px) {
  .poster-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(184px, 29%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 5px 4px 12px;
    scrollbar-width: thin;
  }
  .poster-card { scroll-snap-align: start; }
  .site-footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .manifesto { --shot-width: min(92vw, 620px); }
  .clip-reel-inner { width: calc(100% - 2 * var(--gutter)); }
  .manifesto::after {
    background: linear-gradient(90deg, #101010cb, #101010a6);
  }
  :is(.portfolio--posters, .frame-luxury, .frame-masterplan, #nosso-time, .institution--partners) .section-heading { text-align: center; }
  .frame-luxury .institution-copy > :is(p, h3) { text-align: center; }
}
@media (max-width: 620px) {
  .poster-strip { grid-auto-columns: minmax(145px, 63%); }
  .triad-grid { grid-template-columns: 1fr; }
  .profile-controls { grid-row: 1; }
  .profile-panel { grid-row: 2; grid-template-columns: 1fr; }
  .profile-panel > img { width: min(180px, 55%); }
  .site-footer .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .hero-tools .hero-motion-toggle, .hero-watch { font-size: .75rem; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-background img:nth-child(2) { transition: none; }
}

.montage-actions { margin-top: 12px; }

.gallery-copy {
  max-width: 67ch;
  margin: 0 auto 17px;
}
.gallery-caption {
  color: var(--muted);
  font-size: .85rem;
  font-style: italic;
}
.gallery-title { margin-top: 12px; font-size: 1.1rem; }
.gallery-context {
  margin-top: 7px;
  font-size: .95rem;
}
